Java Google Alerts API provides you with a lightweight library especially designed to help developers create, delete and update Google alerts within their applications.

Features

  • Latest update on 15/09/2016 (Version 2) - UTC +08:00 - Singapore Time
  • Supported Finance source
  • Fixed: Region issue
  • *Note: Please see the email that your Google Alert using
  • (maybe the email alert is using uppercase or lowercase)
  • So GAService("nnhiti@gmail.com", "pass") will different with GAService("NNHITI@gmail.com", "pass")
  • ----------------------------------------------------------------------------------------------------------------------
  • Required libraries
  • No required library
  • -
  • // First of all, we have to login.. return empty string if login successful else return an error string
  • GAService service = new GAService("yourEmail", "yourPassword");
  • service.doLogin();
  • // Get all alerts.
  • List<Alert> lstAlert = service.getAlerts();
  • // Get alert by deliver.
  • List<Alert> lstAlert = service.getAlertByDelivery(DeliveryTo.FEED);
  • // Get alert by id.
  • Alert alert = service.getAlertById(alertId);
  • // Get alert by search query.
  • List<Alert> lstAlert = service.getAlerts("Your Query");
  • // Create alert. return an alert id if created successful else return an error string
  • // Default deliver is email
  • Alert alert = new Alert();
  • alert.setHowMany(HowMany.ONLY_THE_BEST_RESULTS);
  • alert.setHowOften(HowOften.ONCE_A_DAY);
  • alert.setSearchQuery("Your Query");
  • alert.setDeliverTo(DeliverTo.FEED);
  • alert = service.createAlert(alert);
  • // Delete an alert.
  • service.deleteAlert(alertId);
  • // Delete list of alerts.
  • List<String> lstAlertId = new ArrayList<String>();
  • lstAlertId.add(alertId);
  • service.deleteAlert(lstAlertId);
  • // Update alert. return new alert id if updated successful else return an error string
  • AlertBean alert = new AlertBean();
  • alert.setId(editAlertId);
  • alert.setSearchQuery("your new query");
  • service.updateAlert(alert);
  • Appreciate if you can send to me an email when you have any ideas or need to improve/update
  • Ha Nguyen: nnhiti@gmail.com
  • Thanks so much.

Project Activity

See All Activity >

License

Creative Commons Attribution License

Follow Java Google Alerts API

Java Google Alerts API Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Java Google Alerts API!

Additional Project Details

Languages

English

Programming Language

Java

Registered

2013-09-04