How a Google News SERP request works

Google News indexes current articles, press releases, and editorial coverage across global publishers. Because Google deprecated its official Google News API in 2011 and restricts raw RSS endpoints, modern applications query live news results through an authenticated SERP API endpoint.

Send an HTTP POST request to /v1/search with engine: "google" and type: "news" to retrieve a structured snapshot of Google News results:

curl https://api.serqo.io/v1/search \
  -H "x-api-key: $SERP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "q": "artificial intelligence regulation",
    "engine": "google",
    "type": "news",
    "gl": "us",
    "hl": "en",
    "tbs": "qdr:w"
  }'

Use q for your search query, gl for the country market (e.g. us, gb, de), and hl for the interface language (e.g. en, zh-CN). The optional tbs parameter filters news by publication timeframe, such as qdr:h (past hour), qdr:d (past 24 hours), qdr:w (past week), or qdr:m (past month).

Google News API code examples: Python, Node.js, and PHP (Official SDKs)

Here are practical code snippets using Serqo's official SDKs to query Google News and parse the returned articles with built-in parameter serialization and type safety.

Python SDK (pip install serqo)

import os
from serqo import Serqo

serqo = Serqo(api_key=os.environ["SERP_API_KEY"])

response = serqo.search({
    "q": "semiconductor chips",
    "engine": "google",
    "type": "news",
    "gl": "us",
    "hl": "en",
    "tbs": "qdr:d"
})

articles = response.get("data", {}).get("results", [])
for article in articles:
    print(f"[{article.get('position')}] {article.get('title')}")
    print(f"  Source: {article.get('source')} | Date: {article.get('date')}")
    print(f"  URL: {article.get('url')}\n")

Node.js / TypeScript SDK (npm install serqo-sdk)

import { Serqo } from 'serqo-sdk';

const serqo = new Serqo({ apiKey: process.env.SERP_API_KEY! });

const response = await serqo.search({
  q: 'electric vehicles',
  engine: 'google',
  type: 'news',
  gl: 'us',
  hl: 'en',
  tbs: 'qdr:w',
});

response.data.results.forEach((article) => {
  console.log(`${article.position}. ${article.title}`);
  console.log(`   ${article.source} · ${article.date}`);
  console.log(`   ${article.url}`);
});

PHP SDK (composer require serqo-io/serqo-php)

<?php
require __DIR__ . '/vendor/autoload.php';

use Serqo\Client;

$client = new Client(getenv('SERP_API_KEY'));

$response = $client->search([
    'q' => 'cloud computing security',
    'engine' => 'google',
    'type' => 'news',
    'gl' => 'us',
    'hl' => 'en',
    'tbs' => 'qdr:d',
]);

$articles = $response['data']['results'] ?? [];
foreach ($articles as $article) {
    echo "[{$article['position']}] {$article['title']}\n";
    echo "Source: {$article['source']} | Date: {$article['date']}\n";
    echo "Link: {$article['url']}\n\n";
}
?>

Google News API rate limits, quotas, and pagination

Developers frequently encounter rate limiting and scraping blocks when attempting to fetch news directly from Google. Understanding quota mechanics helps ensure your monitoring pipelines run without interruption.

Official Google limitations vs. SERP API

Google discontinued its official News API search service in 2011. While Google maintains an unofficial RSS feed URL (news.google.com/rss), scraping it at scale triggers IP-level HTTP 429 rate limits, cookie requirements, and CAPTCHA challenges. An authenticated SERP API routes requests through dedicated proxy infrastructure and returns clean JSON without IP blocks.

Rate limits and concurrency

Serqo plans include per-second QPS limits and credit quotas. When your application exceeds the allowed concurrency, the API returns an HTTP 429 RATE_LIMIT_EXCEEDED response with a Retry-After header indicating the backoff window. Built-in proxy pool rotation and server-side request pooling ensure individual user requests do not trip upstream engine bans.

Credit consumption and caching

Each successful Google News SERP request deducts credits based on engine and target country tier. If a query is requested repeatedly within the configured cache window (such as identical monitoring checks), cache hits consume zero credits under default pricing rules. If an upstream search encounters a transient failure or timeout, reserved credits are automatically refunded to your balance.

Pagination with nextStart

Google News returns results in pages of approximately 10 to 20 articles. Check data.pagination.hasNext in the API response: when true, send the next request with start: data.pagination.nextStart while keeping all other query parameters unchanged. Because news index rankings shift in real time, set a practical upper page limit (e.g. 3 to 5 pages) rather than paginating indefinitely.

Unofficial Google News API alternative: why use JSON over RSS?

Many legacy news monitoring tools rely on Google News RSS XML feeds. However, an unofficial Google News SERP API provides significant operational advantages for production applications:

  1. Precise geographic and language targeting: Set exact gl country markets and hl languages. Google News RSS often misidentifies server IP geolocation.
  2. Time range filtering: Pass standard Google tbs parameters (e.g. qdr:h, qdr:d, qdr:w) to retrieve breaking coverage without manual client-side timestamp filtering.
  3. Rich extracted attributes: RSS feeds often truncate snippets and mangle publisher metadata. Serqo extracts verified destination URLs, publisher names, relative publication dates, article snippets, and preview thumbnails into strongly-typed JSON fields.
  4. No IP bans or headless browser overhead: Avoid maintaining Chromium instances, residential proxy pools, and anti-bot bypass scripts.

Read and normalize returned article fields

Extracted articles are returned in the data.results array. Depending on the search layout, fields can include:

Build a reliable news monitoring workflow

  1. Define precise queries: Use brand names, executive names, product keywords, or specific event phrases. Avoid single-word generic terms that return high-noise headlines.
  2. Set consistent request parameters: Keep gl, hl, and tbs identical across consecutive collection cycles so result snapshots remain comparable.
  3. Store snapshots with collection timestamps: Save the raw response alongside the exact request timestamp. Deduplicate articles by normalized destination URL.
  4. Handle optional fields defensively: Not every news card includes a thumbnail or snippet. Write parsers that gracefully handle null or missing optional properties.
  5. Implement exponential backoff: If network timeouts or HTTP 429 status codes occur, retry with jittered exponential backoff rather than immediate burst requests.

What a news SERP API does and does not provide

A Google News SERP API provides a point-in-time snapshot of the public search results page. It does not provide full-text article scraping, paywall bypassing, continuous WebSocket push notifications, or guaranteed historical archives. For comprehensive media intelligence, use SERP news snapshots as the discovery layer, then retrieve and parse full article text from original publisher sources.

Frequently asked questions

What are the rate limits and quotas for Google News API?

Unlike the deprecated official Google News API that enforces strict IP-level 429 blocks, Serqo provides flexible per-second QPS limits and credit-based quotas. Requests that exceed your tier limit return HTTP 429 with retry headers, and cache hits consume zero credits under default settings.

How do I query the Google News API in PHP?

Send an HTTP POST request to https://api.serqo.io/v1/search using PHP's curl extension with engine set to google and type set to news. Pass your query in q, target market in gl, and authentication key in the x-api-key header to receive decoded JSON results.

Why use an unofficial Google News SERP API instead of Google RSS feeds?

Google deprecated its official News API in 2011 and frequently blocks or restricts Google News RSS requests with captchas and rate limits. An unofficial SERP API queries Google News in real time across different geographic locations (gl) and languages (hl), returning clean, structured JSON with article titles, source names, publication snippets, thumbnails, and verified links.

Can I filter Google News results by past hour, day, or week?

Yes. Pass Google's standard time filter parameter tbs in your request body, such as qdr:h for the past hour, qdr:d for the past 24 hours, qdr:w for the past week, or qdr:m for the past month.

For parameter details and schema specifications, review the Google News API reference and the Google SERP API guide.