134

As part of a Project I'm working on I've been instructed to implement Google News API into a Web Application.

However, I've checked the Google News API site, and I see the following message:

Important: The Google News Search API has been officially deprecated as of May 26, 2011. It will continue to work as per our deprecation policy, but the number of requests you may make per day may be limited.

I've checked SO Questions but I've not been able to find a question related to the News API.

  • What should I use now that Google News API is redundant?
  • Is it the Custom Search API?
  • And if so, how can I make this relevant for just News Results for a particular query for my Web Application?

I've checked the Google News RSS, but this uses HTML in the description which won't work for my requirements as I just need the text.

Community
  • 1
  • 1
Curtis
  • 101,612
  • 66
  • 270
  • 352
  • 2
    You can used R's tm.plugin.webmining package to extract news and text from GoogleNews (and others). More info @ https://cran.r-project.org/web/packages/tm.plugin.webmining/index.html – BlueMoon93 Jan 10 '16 at 17:02
  • If you are looking for an API to crawl news from multi sources, you could consider Newsriver (https://newsriver.io). It's a very recent API to retrieve structured online news articles. Newsriver covers a large number of sources, and it's fully configurable. – Elia Palme May 06 '16 at 12:07
  • 1
    Try Faroo: http://www.faroo.com/hp/api/api.html – koppor Jul 19 '16 at 21:35
  • 1
    You can use a third party solution like this API: https://serpapi.com/news-results – Hartator Sep 04 '18 at 02:38
  • You can check for contextualwebsearch: https://rapidapi.com/contextualwebsearch/api/web-search?endpoint=5b8644c1e4b09cbc25b00140. – Sumit A Jan 14 '19 at 08:33
  • Answer to the similar question about Google News scraping with code example: https://stackoverflow.com/a/61015947/1291371 – ilyazub Apr 03 '20 at 16:29
  • You can try this service from Rapid API rapidapi.com/anju.313/api/google-trends, But this is a paid service. Thanks – VoidA313 Mar 29 '21 at 07:23
  • Aylien provides a News API that gives you access to NLP-enriched news articles from 80,000+ news sources: https://aylien.com/product/news-api/demo – parsa Jan 26 '22 at 12:02
  • You can extract URLs from the RSS feed and then extract the rest of the content (title, description, image) from the news source URL. – Tomás Cot Aug 07 '22 at 13:53

3 Answers3

99

Depending on your needs, you want to use their section feeds, their search feeds

http://news.google.com/news?q=apple&output=rss

or Bing News Search.

http://www.bing.com/toolbox/bingdeveloper/

nambrot
  • 2,551
  • 2
  • 19
  • 31
  • The Google News RSS uses HTML in the `description` to display an image positioned next to the text. This won't work for my requirements as its too restrictive with the design I need to meet. I need the description to just be text, no HTML. – Curtis Nov 02 '11 at 15:46
  • 4
    as you pointed out, google news api is deprecated so eitheir you do the work of stripping down the HTML or you use the Bing API. THere are not many alternatives – nambrot Nov 02 '11 at 20:35
  • Cheers @nambrot, sorry its just I have to stick to requirements from the client. I'm currently seeing whether a switch to Bing would be okay! – Curtis Nov 03 '11 at 09:21
  • what i am saying is you could strip down the html if it is that important to use google news. its non-commercial use only though – nambrot Nov 03 '11 at 15:35
  • Ah right, I wasn't aware of that cheers! – Curtis Nov 03 '11 at 15:36
  • 3
    cool, Can you tell what are the parameters(e.g. location etc) which we can pass to the google news url? http://news.google.com/news?q=apple&output=rss – Nitin Sawant Nov 12 '12 at 06:22
  • i'm also wondering if i can filter by time/date. – chovy Dec 19 '13 at 01:44
  • any way to get next page results? – Lokanath Jul 08 '16 at 02:45
  • 8
    web.archive.org URL for search parameters: http://web.archive.org/web/20150204025359/http://blog.slashpoundbang.com/post/12975232033/google-news-search-parameters-the-missing-manual (@BrownyLin) – koppor Jul 19 '16 at 05:02
  • For those who wish to fetch google trends , Please use this service from Rapid API https://rapidapi.com/anju.313/api/google-trends – VoidA313 Mar 29 '21 at 07:06
  • Aylien provides a News API that gives you access to NLP-enriched news articles from 80,000+ news sources: https://aylien.com/product/news-api/demo – parsa Jan 24 '22 at 10:21
12

I'm running into the same issue with one of my own apps. So far I've found the only non-deprecated way to access Google News data is through their RSS feeds. They have a feed for each section and also a useful search function. However, these are only for noncommercial use.

As for viable alternatives I'll be trying out these two services: Feedzilla, Daylife

Justin Lucas
  • 2,301
  • 14
  • 22
2

Looks like you might have until the end of 2013 before they officially close it down. http://groups.google.com/group/google-ajax-search-api/browse_thread/thread/6aaa1b3529620610/d70f8eec3684e431?lnk=gst&q=news+api#d70f8eec3684e431

Also, it sounds like they are building a replacement... but it's going to cost you.

I'd say, go to a different service. I think bing has a news API.

You might enjoy (or not) reading: http://news.ycombinator.com/item?id=1864625

NotMe
  • 87,343
  • 27
  • 171
  • 245