The Google News API for headlines as JSON

Search Google News and get headlines as JSON, each with a source and a publication date. Filter by time range to keep results fresh.

Google News API at a glance

This API searches Google News and returns headlines as JSON. Send a POST request with a query, then read each article from the articles array. Run the example below to see the exact shape.

Endpoint
POST /v1/data/google/news
Authentication
API key as Authorization: Bearer wh_…
Stage
Stable
Output
An articles array with position, title, url, source, source_url, date and published_date
Search controls
Query, num_results, language, country, time_range and sort_by
Time range values
hour, day, week, month or year, as a rolling window
Source
One Google News RSS feed per request, cached for 5 minutes
Results per request
1 to 500 requested. One feed typically returns up to 100.
Credit weight
1. See the pricing page for current rates.

One request, structured JSON.

This request searches the past week for artificial intelligence regulation. The response below shows two of the three articles returned. Copy the request to try it yourself.

POST /v1/data/google/news
curl -X POST "https://api.datablue.dev/v1/data/google/news" \
  -H "Authorization: Bearer wh_..." \
  -H "Content-Type: application/json" \
  -d '{
    "query": "artificial intelligence regulation",
    "num_results": 3,
    "time_range": "week",
    "sort_by": "date",
    "language": "en",
    "country": "us"
  }'
Response (trimmed to 2 of 3 articles)
{
  "success": true,
  "query": "artificial intelligence regulation",
  "total_results": "3",
  "articles": [
    {
      "position": 1,
      "title": "Senator proposes select committee on AI as Democrats hope to move quickly to regulate it",
      "url": "https://news.google.com/rss/articles/CBMi3wFBVV95cUxPVUxEbDByUzRBdDVDVUpaQ1dzSm40eFJJQmlPUVVfVzdMRWtCRjE4Z0c4SEhMUUZqWWwtbGtvc1RSQmMwaDVsYVFfTWI5cmJ4NldNbFpyb0QzMjE1VUVVbkV4YWxMeEYyaDk1Mk1JbV82RGFQUHF3OG53QkJvOF9yUTk4NHNqZzdCeDRvUk1nUEhLXzdTSlhZZU9TZ0FkVFNFRUVPamxDUUN3MmtZRE5wbjdQTGhrR3dKZWRYWll1X19RZTk5Ym1HUTkxSm9IX2lVZWE2dUU3SUJ3ZWFWVmpJ?oc=5",
      "source": "The Washington Post",
      "source_url": "https://www.washingtonpost.com",
      "rank": 1,
      "date": "Sat, 21 Nov 2026 06:07:43 GMT",
      "published_date": "2026-11-21T06:07:43+00:00"
    },
    {
      "position": 2,
      "title": "AI industry braces for tougher oversight under incoming Democratic Congress",
      "source": "KFXL",
      "source_url": "https://foxnebraska.com",
      "rank": 2,
      "date": "Sat, 21 Nov 2026 05:05:36 GMT",
      "published_date": "2026-11-21T05:05:36+00:00"
    }
  ],
  "related_searches": []
}

What an article returns.

Each article arrives as one object with named fields.

Headline and rank

Every article has a title and a position. Position follows the order of the feed.

Publisher

The source field names the publisher of each article. The source_url field holds the publisher’s site address. Match both to your own publisher lists.

Story link

The url field is a Google News RSS redirect link, not the publisher page itself. Treat it as a pointer to the story.

Dates

The date field keeps the feed’s original date string. The published_date field gives that moment as an ISO timestamp. Sort on published_date when you need exact ordering.

Related searches

The response also carries a related_searches array. It came back empty in our sample. Check that it exists before you read it.

Options that shape your search.

Only the query field is required to run a search. Add the rest when you need tighter results.

Search query

Set query to your search, from 1 to 2048 characters. Use plain keywords that match the headlines you want.

Result count

Ask for 1 to 500 articles with num_results. One request reads a single feed, so it typically returns up to 100 articles overall. Expect fewer when the feed holds fewer. Keep num_results low while you test a new query.

Time range

Set time_range to narrow results to a rolling window. The window runs from one hour up to 365 days. Pair it with sort_by set to date for newest first.

Sort order

Relevance keeps the source order of the feed. Set sort_by to date when freshness matters more than rank.

Language and country

Language sets the hl code, while country sets the gl code for geo targeting of results. Language defaults to en, so set it for other languages. Set country to a code such as us or uk.

Reserved fields

Four token fields are reserved and unsupported. A supplied value returns HTTP 422 instead of results. Leave topic_token and its three siblings out of your requests.

What teams build with it.

Fresh headlines power brand alerts and market research.

Brand monitoring

Search your company name with time_range set to day. Send new headlines to your team each morning.

Competitor tracking

Search a competitor by name with sort_by set to date. Count articles per source each week to spot coverage shifts.

Research datasets

Run the same query on a schedule to build a headline dataset on one topic. Store the title and published_date for every row.

Regional coverage

Run one query for each country code you care about. Compare which publishers lead each country’s feed.

Why use an API instead of reading the feed yourself.

Each request reads one Google News RSS feed. DataBlue parses the feed into JSON fields and your code never handles XML at all. Your parser reads the articles array and nothing else.

The catalogue says results are cached for 5 minutes. Plan your polling interval around that window. Schedule jobs about every 5 minutes at the fastest.

The links in url are Google redirects, so resolve them in your pipeline when you need the publisher page. Start with three articles to learn the shape, then scale the job once the links look right.

Your first News search in a minute.

Sign up, get a key and run one search.

  1. Create an account

    Sign up to get your API key.

  2. Send a search

    POST your query to /v1/data/google/news with a Bearer key. Add time_range or sort_by to narrow it.

  3. Read the articles

    Loop over the articles array and read each field off the object with no parsing. Pair published_date with every title you save.

Google News API questions.

Short answers about data and billing before you start.

It turns a Google News search into structured JSON. Each article comes back as one object in the articles array of the JSON response body.

Send a POST request to /v1/data/google/news with your query and a Bearer token for your key. Add time_range or sort_by to narrow the feed.

Each article carries a title and a source. Dates arrive as feed text and as an ISO timestamp. Compare it with the sample response above.

Set num_results anywhere between 1 and 500. One feed typically returns up to 100, so expect fewer than you ask for on large values.

It returns headlines and metadata, not full article text. The url field is a Google redirect link.

Each search reads one Google News RSS feed. Results are cached for 5 minutes, so a repeat call inside that window returns cached data.

The token fields are reserved and unsupported. A supplied value returns HTTP 422, so leave those fields out of your request body. Add the topic words to query to filter by subject.

Language sets the hl code, while country sets the gl code for geo targeting of results.

This API is marked stable in the catalogue. Build against the documented fields and read the changelog before you ship any upgrade to production.

This API has a credit weight of 1. Check the pricing page for current rates.

Run a Google News search in a minute.

Create an account and copy your key from the dashboard. Then run the example request with your own news query.

Start free