48

Google deprecated the old RSS feed URL format December 1st 2017 (deprecation notice), in addition to that they dropped the button in the Google News interface to generate a RSS URL (news mentioning this change).

This means that there is no public or documented method of generating a new RSS link. The only documentation they have is out of date since they changed the interface.

What is the new format for generating a RSS feed for a Google News topic?

Robin Andersson
  • 5,150
  • 3
  • 25
  • 44
  • 1
    Well it seems today they completely broke the old feeds. Now they are all giving files that have the `NFE/5.0` opposed to the `NFE/1.0` tag. Super annoying since these come in a different format. – gattsbr Nov 27 '18 at 17:16
  • 1
    The links google provides in it's rss news feed is now censored. – gattsbr Nov 25 '19 at 18:27

6 Answers6

109

Found an up-to-date library (1) that uses Google News RSS.

The URL new format seems to be:

Top news:

https://news.google.com/news/rss

By major topic:

https://news.google.com/news/rss/headlines/section/topic/{topic}

Where {topic} is one of the following values: WORLD NATION BUSINESS TECHNOLOGY ENTERTAINMENT SPORTS SCIENCE HEALTH

By any/custom topic:

Once at https://news.google.com, browse to the desired topic, for example this. Identify the topic ID in its URL, e.g. CAAqIQgKIhtDQkFTRGdvSUwyMHZNR056T1hFU0FtVnVLQUFQAQ, and use the format:

https://news.google.com/rss/topics/{id}?hl={lang}

In the format above, essentially rss/ is added after https://news.google.com/.

By geolocation:

https://news.google.com/news/rss/headlines/section/geo/{location}

Not sure about the formatting for the {location} parameter

By search query:

New link: https://news.google.com/rss/search?q={query}
Old link: https://news.google.com/news/rss/search/section/q/{query}

Where the {query} parameter is a free text search

Specifying country and language:

For example if you wish to have news in Swedish and located from Swedish sources, add the following query string to the URL to change country and language to sv-SE: ?hl=sv&gl=SE&ceid=SE%3Asv

Asclepius
  • 57,944
  • 17
  • 167
  • 143
Robin Andersson
  • 5,150
  • 3
  • 25
  • 44
  • any REST API if you know any? – Neelam Pursnani Dec 03 '18 at 10:14
  • @NeelamPursnani I don't know of any REST-API I'm afraid. Only found this by digging around in someone elses source code. – Robin Andersson Dec 03 '18 at 18:42
  • 1
    That's awesome, now I can read google news without ads! For Hebrew I use: https://news.google.com/news/rss/?hl=he&gl=IL&ceid=IL%3Ahe – Noam Manos Dec 14 '18 at 09:41
  • The geolocation seems to support some free form location string. E.g. `https://news.google.com/news/rss/headlines/section/geo/SanFrancisco` and `https://news.google.com/news/rss/headlines/section/geo/California` both works. – yegle Feb 10 '19 at 19:11
  • 3
    The project you are linking to is mine. If I remember correctly, I figured out the URL formats by simple guess work. However, Google has dropped the geolocation method in the mean time and it stopped working. I am not sure whether there's a replacement. Also, the "Old link" version for the search query works fine for me. – NichtJens Jun 05 '19 at 17:27
  • 1
    For specifying a phrase in a search query, e.g. "global warming", I specify it as global%20warming using %20 as the separator. – Asclepius Jul 11 '19 at 19:26
  • 1
    can you pull the image ? I just saw there is no image tag in the rss :( – raian Apr 09 '20 at 16:03
  • Does anyone know how to sort the rss results by date? Is there an attribute that I can add to the url to make this happen? Thanks everyone. – anthonyCam Jul 29 '20 at 21:32
  • If the RSS yields no result, try adding `hl={lang}` to the URL parameters. – Otiel Feb 19 '21 at 15:23
9
  1. Requests to the Geo endpoint seem to be working again.

    e.g. https://news.google.com/news/rss/headlines/section/geo/{place_name}

  2. Also, if you use the non-geo search, you can specify a 7-day window by adding +when:7d to your search.

    e.g. https://news.google.com/rss/search?q={key_words}+when:7d

Eric McLachlan
  • 3,132
  • 2
  • 25
  • 37
5

This options isn't valid anymore: https://news.google.com/news/rss/headlines/section/topic/{topic} produces Error 500.

This seems to work: https://news.google.com/news?cf=all&hl=en&pz=1&ned=us&q=astronomy&output=rss

The Geolocation mentioned above still works too. You can also specify city and state: https://news.google.com/news/rss/headlines/section/geo/DenverCo

SuperBart
  • 69
  • 1
  • 4
  • I had investigated the URL schemes when writing the [code linked to in the other answer](https://github.com/NichtJens/GoogleNewsRSS2OPML). While some things have changed in the mean time, it seems that currently your answer is wrong: Topics work fine with the given scheme. However, geo location is broken. I also think topics and search queries do not produce the same result, so your equating the both is not correct. – NichtJens Jun 05 '19 at 17:31
  • 1
    It is valid if you write the topic in CAPITALS :) – David Riha Aug 05 '19 at 13:27
4

Updated Google RSS News Feed
You can try this as well.
https://news.google.com/rss?hl=en-NG&gl=NG&ceid=NG:en

  • where did you find the documentaton for the options like hl g etc – PirateApp Jul 04 '19 at 16:56
  • 2
    I actually did not use any documentation. I just enter this URL into my browser `https://news.google.com/news/rss`. The result is the above URL which I posted. I guess it was just reformated.@PirateApp – Ayotunde Olubiyo Jul 06 '19 at 13:49
1

I was also looking for documentation. This is the best article I found.

https://blog.newscatcherapi.com/google-news-rss/

If using search you can also specify not to include articles with a certain keyword.

e.g. if I wanted to search for pages that contain the word "apple" with out the word "pie" you can specify

q=apple%20-pie

or in full

https://news.google.com/rss/search?q=apple%20-pie&hl=en-GB&gl=UK&ceid=GB:en

Daniel
  • 505
  • 6
  • 8
-1

The RSS feed for top stories is the simplest one. Just append RSS to the https://news.google.com and you get the RSS feed of the top stories of your location.

https://news.google.com/rss

Know more

MD SHAYON
  • 7,001
  • 45
  • 38