Docs / API reference

POST/v1/data/google/news

Google News

Search a single Google News RSS feed for headlines, sources, publication dates, and Google RSS redirect URLs. Rich fields are returned only when exposed by the source. Results are cached for 5 minutes.

Execution model

Live request

Runtime depends on endpoint, target, pagination, rendering mode, and active plan limits.

Credit weight

Live catalog

Current weights are managed from the Data API Weights admin table and shown on pricing before use.

Google News Endpoint

Search a single Google News RSS feed for headlines, sources, publication dates, and Google RSS redirect URLs.

Getting Started

Send your API key as a bearer token. Start with the smallest request below.

Run Google News

Send the smallest useful request and read the structured response.

curl -X POST "https://api.datablue.dev/v1/data/google/news" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "artificial intelligence regulation",
  "num_results": 2,
  "time_range": "week",
  "sort_by": "date",
  "language": "en",
  "country": "us"
}'
Example response
{
  "success": true,
  "query": "artificial intelligence regulation",
  "total_results": "2",
  "time_taken": 0.74,
  "articles": [
    {
      "position": 1,
      "rank": 1,
      "title": "Artificial intelligence regulation: a policy roundup",
      "url": "https://news.google.com/rss/articles/EXAMPLE_ARTICLE_TOKEN_1?oc=5",
      "source": "Example News",
      "source_url": "https://news.example.com",
      "date": "Wed, 16 Sep 2026 09:00:00 GMT",
      "published_date": "2026-09-16T09:00:00+00:00"
    },
    {
      "position": 2,
      "rank": 2,
      "title": "Businesses prepare for artificial intelligence rules",
      "url": "https://news.google.com/rss/articles/EXAMPLE_ARTICLE_TOKEN_2?oc=5",
      "source": "Example Journal",
      "source_url": "https://journal.example.com",
      "date": "Tue, 15 Sep 2026 14:30:00 GMT",
      "published_date": "2026-09-15T14:30:00+00:00"
    }
  ],
  "related_searches": []
}

Options

Query and Target

Set the search term, identifier, or source URL that defines the request.

curl -X POST "https://api.datablue.dev/v1/data/google/news" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "web scraping tools",
  "num_results": 2,
  "time_range": "week",
  "sort_by": "date",
  "language": "en",
  "country": "us"
}'
Example response
{
  "success": true,
  "query": "artificial intelligence regulation",
  "total_results": "2",
  "time_taken": 0.74,
  "articles": [
    {
      "position": 1,
      "rank": 1,
      "title": "Artificial intelligence regulation: a policy roundup",
      "url": "https://news.google.com/rss/articles/EXAMPLE_ARTICLE_TOKEN_1?oc=5",
      "source": "Example News",
      "source_url": "https://news.example.com",
      "date": "Wed, 16 Sep 2026 09:00:00 GMT",
      "published_date": "2026-09-16T09:00:00+00:00"
    }
  ],
  "related_searches": []
}

Results and Pagination

Control how many records or pages are returned.

curl -X POST "https://api.datablue.dev/v1/data/google/news" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "artificial intelligence regulation",
  "num_results": 100,
  "time_range": "week",
  "sort_by": "date",
  "language": "en",
  "country": "us"
}'
Example response
{
  "success": true,
  "query": "artificial intelligence regulation",
  "total_results": "2",
  "time_taken": 0.74,
  "articles": [
    {
      "position": 1,
      "rank": 1,
      "title": "Artificial intelligence regulation: a policy roundup",
      "url": "https://news.google.com/rss/articles/EXAMPLE_ARTICLE_TOKEN_1?oc=5",
      "source": "Example News",
      "source_url": "https://news.example.com",
      "date": "Wed, 16 Sep 2026 09:00:00 GMT",
      "published_date": "2026-09-16T09:00:00+00:00"
    }
  ],
  "related_searches": []
}

Location and Language

Localize results with country, language, coordinates, or delivery-location fields.

curl -X POST "https://api.datablue.dev/v1/data/google/news" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "artificial intelligence regulation",
  "num_results": 2,
  "time_range": "week",
  "sort_by": "date",
  "language": "en",
  "country": "us"
}'
Example response
{
  "success": true,
  "query": "artificial intelligence regulation",
  "total_results": "2",
  "time_taken": 0.74,
  "articles": [
    {
      "position": 1,
      "rank": 1,
      "title": "Artificial intelligence regulation: a policy roundup",
      "url": "https://news.google.com/rss/articles/EXAMPLE_ARTICLE_TOKEN_1?oc=5",
      "source": "Example News",
      "source_url": "https://news.example.com",
      "date": "Wed, 16 Sep 2026 09:00:00 GMT",
      "published_date": "2026-09-16T09:00:00+00:00"
    }
  ],
  "related_searches": []
}

Filters and Sorting

Narrow or order the returned records.

curl -X POST "https://api.datablue.dev/v1/data/google/news" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "artificial intelligence regulation",
  "num_results": 2,
  "time_range": "hour",
  "sort_by": "relevance",
  "language": "en",
  "country": "us"
}'
Example response
{
  "success": true,
  "query": "artificial intelligence regulation",
  "total_results": "2",
  "time_taken": 0.74,
  "articles": [
    {
      "position": 1,
      "rank": 1,
      "title": "Artificial intelligence regulation: a policy roundup",
      "url": "https://news.google.com/rss/articles/EXAMPLE_ARTICLE_TOKEN_1?oc=5",
      "source": "Example News",
      "source_url": "https://news.example.com",
      "date": "Wed, 16 Sep 2026 09:00:00 GMT",
      "published_date": "2026-09-16T09:00:00+00:00"
    }
  ],
  "related_searches": []
}

Additional Options

Set endpoint-specific options for this request.

curl -X POST "https://api.datablue.dev/v1/data/google/news" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "artificial intelligence regulation",
  "num_results": 2,
  "time_range": "week",
  "sort_by": "date",
  "language": "en",
  "country": "us",
  "topic_token": "example",
  "publication_token": "example",
  "section_token": "example",
  "so": "example"
}'
Example response
{
  "success": true,
  "query": "artificial intelligence regulation",
  "total_results": "2",
  "time_taken": 0.74,
  "articles": [
    {
      "position": 1,
      "rank": 1,
      "title": "Artificial intelligence regulation: a policy roundup",
      "url": "https://news.google.com/rss/articles/EXAMPLE_ARTICLE_TOKEN_1?oc=5",
      "source": "Example News",
      "source_url": "https://news.example.com",
      "date": "Wed, 16 Sep 2026 09:00:00 GMT",
      "published_date": "2026-09-16T09:00:00+00:00"
    }
  ],
  "related_searches": []
}

Response

Read success first, then consume the endpoint-specific records and pagination fields shown below.

Error Handling

Handle 401 for authentication, 422 for invalid input, 429 for limits, and retry only transient failures.

Parameters

NameTypeRequirementDescription
querystringRequiredNews search query (1-2048 characters).
num_resultsnumberOptionalMaximum requested articles (1-500). Results are source-limited to one feed, typically up to 100; actual results may be fewer.
languagestringOptionalLanguage code (hl parameter).
countrystringOptionalCountry code for geo-targeting (gl parameter, e.g. us, uk, in).
time_rangestringOptionalRolling time filter: "hour" (1 hour), "day" (1 day), "week" (7 days), "month" (30 days), or "year" (365 days).
sort_bystringOptional"relevance" preserves source order; "date" sorts newest first within the returned feed.
topic_tokenstringOptionalReserved and unsupported. Omit this field; a supplied value returns HTTP 422.
publication_tokenstringOptionalReserved and unsupported. Omit this field; a supplied value returns HTTP 422.
section_tokenstringOptionalReserved and unsupported. Omit this field; a supplied value returns HTTP 422.
sostringOptionalReserved and unsupported. Omit this field; a supplied value returns HTTP 422. Use sort_by instead.

Response fields

FieldTypeDescription
successbooleanWhether the source request completed. A valid empty search returns true with zero articles.
total_resultsstringNumber of returned articles, not the total number of articles indexed by Google.
articles[].urlstringGoogle RSS redirect URL as supplied by the source, not a resolved publisher URL. Example tokens below are illustrative placeholders.
articles[].source_urlstringOptional publisher homepage URL from the source.
articles[].published_datestringPublication time normalized to ISO 8601 UTC when the source date can be parsed.
articles[].snippetstringOptional excerpt only when the source includes actual summary text; linked headlines are not reported as summaries.
articles[].thumbnailstringOptional image URL only when the source feed exposes it.
articles[].authorsarrayOptional author names only when the source feed exposes them.
articles[].storiesarrayOptional related story titles, URLs, and publishers extracted from source headline clusters.
related_searchesarrayEmpty for the RSS search path; related article coverage appears in articles[].stories when available.
errorstringSafe failure message when the source request fails or returns an invalid feed.

Request and response

curl -X POST "https://api.datablue.dev/v1/data/google/news" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "artificial intelligence regulation",
  "num_results": 2,
  "time_range": "week",
  "sort_by": "date",
  "language": "en",
  "country": "us"
}'
Example response
{
  "success": true,
  "query": "artificial intelligence regulation",
  "total_results": "2",
  "time_taken": 0.74,
  "articles": [
    {
      "position": 1,
      "rank": 1,
      "title": "Artificial intelligence regulation: a policy roundup",
      "url": "https://news.google.com/rss/articles/EXAMPLE_ARTICLE_TOKEN_1?oc=5",
      "source": "Example News",
      "source_url": "https://news.example.com",
      "date": "Wed, 16 Sep 2026 09:00:00 GMT",
      "published_date": "2026-09-16T09:00:00+00:00"
    },
    {
      "position": 2,
      "rank": 2,
      "title": "Businesses prepare for artificial intelligence rules",
      "url": "https://news.google.com/rss/articles/EXAMPLE_ARTICLE_TOKEN_2?oc=5",
      "source": "Example Journal",
      "source_url": "https://journal.example.com",
      "date": "Tue, 15 Sep 2026 14:30:00 GMT",
      "published_date": "2026-09-15T14:30:00+00:00"
    }
  ],
  "related_searches": []
}