DEV Community

Алексей Спинов
Алексей Спинов

Posted on

Google News RSS: Get 100 Latest Articles on Any Topic (Free, No API Key)

Google News has an RSS feed that returns the latest 100 articles for any search query. No API key, no rate limits.

The URL Pattern

https://news.google.com/rss/search?q=electric+vehicles&hl=en
Enter fullscreen mode Exit fullscreen mode

Returns XML with: title, source name, publication date, link, description.

Node.js Example

const { parseStringPromise } = require('xml2js');

async function getGoogleNews(query, lang = 'en') {
  const url = `https://news.google.com/rss/search?q=${encodeURIComponent(query)}&hl=${lang}`;
  const res = await fetch(url);
  const xml = await res.text();
  const parsed = await parseStringPromise(xml);

  return (parsed.rss.channel[0].item || []).map(item => ({
    title: item.title[0],
    source: item.source?.[0]?._ || '',
    date: item.pubDate[0],
    link: item.link[0],
    description: (item.description?.[0] || '').replace(/<[^>]+>/g, '').substring(0, 200)
  }));
}

const news = await getGoogleNews('artificial intelligence');
console.log(`Found ${news.length} articles`);
news.slice(0, 3).forEach(n => console.log(`${n.source}: ${n.title}`));
Enter fullscreen mode Exit fullscreen mode

Multi-Language

Change hl= parameter:

  • hl=en English
  • hl=ru Russian
  • hl=zh-CN Chinese
  • hl=es Spanish
  • hl=fr French

Use Cases

  1. Market monitoring — track news about your industry
  2. Competitor alerts — get notified when competitors are mentioned
  3. Content curation — aggregate news for newsletters
  4. Sentiment tracking — what's the media saying about a topic?

More Free APIs


Need news monitoring or media analysis? $20 flat rate. Any industry, any language. Email: Spinov001@gmail.com | Hire me

Top comments (0)