Blog / API guides

News API Options: Google News and Search as JSON

A news API should give you four things per article: the headline, the publisher, the publish time and the link. GET /v1/google-news/news returns all four as named fields, with the date in ISO 8601, for 1 credit a query. A general web search endpoint such as Google Search or Bing also costs 1 credit and finds news pages, but it returns no structured publish date or publisher, so it fits when you need pages about a topic rather than a dated news feed.

What should a news API return?

A news API is useful when every item answers four questions without parsing: what's the headline, who published it, when, and where is it. Those four fields let you deduplicate by link, sort and window by time, group by outlet and show a readable list. Anything else, such as a snippet, a thumbnail or a topic label, helps, but a feed missing one of the four needs extra work on every item.

The date is the field that separates a news API from a search API. A relative label like 2 days ago changes meaning depending on when you read it, so you need an absolute timestamp with a time zone to store. The publisher matters for the same reason: a domain tells you the site, while a publisher name lets you group several domains or show the outlet the way readers know it.

Use this as your checklist when you compare any news source, including the three below:

Need Why it matters What to look for
Headline Display, keyword filters A title field, not text parsed from HTML
Publisher Grouping, source weighting A publisher name, not only a domain
Publish time Sorting, date windows, "new since last run" An absolute timestamp with an offset
Link Deduplication, fetching the full article The publisher's URL

What does the Google News endpoint return?

The Google News endpoint returns one item per article in news_results, and in the recorded response every item has all four fields from the checklist. title is the headline, source.name the publisher, iso_date the publish time in ISO 8601 with an offset, and link the article's URL. Each item also has snippet, a relative date label, thumbnail URLs and two kinds of token. A successful call costs 1 credit.

curl "https://api.perceptlayer.com/v1/google-news/news?q=technology" \
  -H "X-API-Key: $API_KEY"

This is the recorded response, trimmed to the second article and the first section link:

{
  "news_results": [
    …
    {
      "position": 2,
      "title": "How did AI discover the internet's massive cyber-security risk?",
      "link": "https://www.bbc.com/news/videos/cq0ld7e0jg2eo",
      "type": "article",
      …
      "iso_date": "2026-10-22T12:17:44+00:00",
      "published_at": "2026-10-22 12:17:44 UTC",
      "date": "today",
      …
      "source": {
        "name": "BBC",
        …
      },
      "story_token": "CBMiWEFVX3lxTFBkQ0VLSmdYNkk0TzVBZGtlU3piaFlGejFNemlncTZRTWR2MjFlNDhpWWNiVnJMYk5PRUo3eHJ2YlppUmtoLW5FbERMTFNBZ2xkMVhzNmpFWXU",
      "related_publications": [
        {
          "title": "BBC",
          …
          "publication_token": "CAAqIAgKIhpDQklTRFFnTWFna0tCMkppWXk1amIyMG9BQVAB"
        }
      ]
    }
  ],
  "menu_links": [
    {
      "title": "U.S.",
      "link": "https://news.google.com/topics/CAAqIggKIhxDQkFTRHdvSkwyMHZNRGxqTjNjd0VnSmxiaWdBUAE?hl=en-US&gl=US&ceid=US%3Aen",
      "topic_token": "CAAqIggKIhxDQkFTRHdvSkwyMHZNRGxqTjNjd0VnSmxiaWdBUAE"
    },
    …
  ]
}

Store iso_date, not date. In the same response, the first article's date reads 2 days ago while its iso_date is 2026-10-20T15:59:45+00:00; only the second value means the same thing next week. The endpoint's News page lists all eleven optional parameters.

How do topic and source tokens appear in the response?

The response carries three kinds of token, and the endpoint accepts parameters with the same names. Section links sit in menu_links[], each with a title and a topic_token. Each article has a story_token, and each entry in its related_publications[] has a publication_token. The endpoint takes topic_token, story_token and publication_token as optional string parameters.

We haven't recorded calls that pass these tokens back, so we don't describe what they return. The names match, which makes them the obvious thing to try: copy a topic_token from menu_links[] into the topic_token parameter in the playground on the Google News API page and look at the result before you build on it. Each such call is 1 credit, like any other.

When is a general search endpoint enough?

A general search endpoint is enough when you want pages about a subject and don't need a dated, per-publisher feed. Google Search and Bing both return ranked web results for a query at 1 credit a call, and news articles show up among them. What you give up is structure: neither recorded response has a publish-date field or a publisher field in the news sense.

Here is the recorded Google Search result, trimmed to its first organic result:

curl "https://api.perceptlayer.com/v1/google-search/search?query=best+restaurants+in+Berlin&hl=en&safe=off" \
  -H "X-API-Key: $API_KEY"
{
  "organic_results": [
    {
      "position": 1,
      "title": "The Best Restaurants in Berlin - Food Guide & Map",
      "link": "https://andershusa.com/best-restaurants-berlin-germany-guide/",
      …
      "snippet": "Dec 3, 2025 — …",
      …
    },
    …
  ],
  …
}

The date is there, but as the first words of snippet, in whatever format the page shows. The Bing response is flatter still: data[] items with position, title, description, url and domain, where one recorded description begins with Sep 14, 2026 ·. You'd have to parse dates out of free text, and not every result has one.

The Bing recording also shows why web results need a relevance check. For the query best web scraping api, the first two recorded results were an internet provider's home page and a dictionary entry for the word "best". A news endpoint scopes results to news articles; a web search returns whatever ranks.

Google Search has more levers worth testing. Its tbm parameter accepts the value nws among others, and the search-light endpoint takes sort (one of date, date:r, date:d) and dateRestrict. We haven't recorded those calls, so try them in the playground on the Google Search API page before you rely on them. SERP API: What It Returns and What a Query Costs covers the web search responses in more depth.

How do the three endpoints compare?

The three endpoints cost the same per call, so the choice comes down to the fields you get and how much parsing you're willing to do. Google News fills the whole checklist from the first section. Google Search and Bing fill two or three of the four, and the publish time is never a field.

Google News Google Search Bing
Endpoint GET /v1/google-news/news GET /v1/google-search/search GET /v1/bing/search
Required parameters None (q optional) query query
Headline title title title
Publisher source.name source, a name string domain only
Publish time iso_date, published_at Only inside snippet text, if shown Only inside description text, if shown
Link link link url
Extra structure story_token, publication_token, menu_links[].topic_token related_questions, related_searches, local_results results_on_page
Scope News articles The whole web The whole web
Cost 1 credit 1 credit 1 credit

One code path can read all three into the same four columns. This script uses only fields from the recorded responses and leaves the date empty where the endpoint has none:

import os
import requests

BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}


def get(path, params):
    r = requests.get(BASE + path, params=params, headers=HEADERS, timeout=30)
    r.raise_for_status()
    return r.json()


def google_news(q):
    for item in get("/v1/google-news/news", {"q": q})["news_results"]:
        yield item["title"], item["source"]["name"], item["iso_date"], item["link"]


def google_search(q):
    for item in get("/v1/google-search/search", {"query": q})["organic_results"]:
        yield item["title"], item.get("source"), None, item["link"]


def bing(q):
    for item in get("/v1/bing/search", {"query": q})["data"]:
        yield item["title"], item["domain"], None, item["url"]


for row in google_news("technology"):
    print(row)

Each function is one call and 1 credit. raise_for_status() stops on an error; a failed call costs nothing, and the errors docs list the codes you'll see in error.code.

Which one should you use?

Pick by what the output feeds. If it's a feed, a timeline or an alert keyed on time, use the endpoint that gives you a timestamp field. If it's research on a topic where the page matters more than the date, a web search is fine and gives you a wider net.

  • News monitoring and alerts (brand mentions in the press, a competitor's announcements): use Google News. Deduplicate on link, window on iso_date, group on source.name. News Data for Event Detection shows how to turn those results into signals.
  • Following one section or one outlet: start with Google News and test the topic_token and publication_token values from a response in the playground.
  • Topic research for an agent (what's being written about X, from any kind of site): use Google Search. You also get related_questions and related_searches to widen the next query.
  • A second index or a cross-check: add the Bing API. Its results are a plain list, so filter them for relevance before you use them.
  • One publisher's own articles: if that publisher offers its own feed or API, use it; it's the simpler source for a single outlet.
  • Years of history or full article text: none of these. They return what search shows at the time of the call, so licensed archives or the publishers themselves fit better.

What does a news monitor cost?

A news monitor costs 1 credit per query per run on any of the three endpoints, so the bill is queries × runs × days. Failed calls cost nothing and return X-Credits-Used: 0, and every successful response carries X-Credits-Remaining, so a monitor can log its own balance as it goes.

Monitor Calls a month Credits Fits in
10 queries, 3 times a day 10 × 3 × 30 = 900 900 Starter pack (10,000); the 100 free credits cover the first 3 days
30 queries, 4 times a day 30 × 4 × 30 = 3,600 3,600 Starter pack (10,000)
50 queries, every hour 50 × 24 × 30 = 36,000 36,000 Build pack (50,000)
50 queries hourly on News, plus 50 daily on Search 36,000 + 1,500 37,500 Build pack (50,000)

Purchased credits last 12 months and there's no subscription; pricing shows what credits cost, and the credits docs explain the headers. On rate: free accounts get 1 request a second and paid accounts at least 5, so 50 queries an hour is far inside either. A 429 response carries Retry-After; the rate limit docs cover the rest.

If an agent is the caller, the same endpoints are tools through the MCP server at https://perceptlayer.com/mcp: search_endpoints finds them for free and call_endpoint runs them, spending credits only on success. The AI agents docs cover setup. To see the fields with your own query first, run q=technology in the playground on the Google News API page, then get a free API key when the shape fits.

APIs in this post

Frequently asked questions

Is there a free news API?

Every account gets 100 free credits once, after verifying an email address, with no credit card. A Google News call costs 1 credit, so that's 100 news queries, not a monthly allowance. Failed calls don't count. Beyond that, credits come in prepaid packs starting at 10,000; pricing has what they cost.

Does the Google News endpoint return the full article text?

No. Each item has a title, a short snippet and the link to the article on the publisher's site. To get the full text you'd fetch that page yourself, which is a separate step governed by the publisher's own terms. Read those before you store or republish anything beyond headlines and links.

Can I filter news results by date?

The Google News endpoint has no date parameter in its documentation, so filter on iso_date in your own code after the call. Google Search's search-light endpoint accepts sort and dateRestrict parameters, but we haven't recorded those calls; test them in the playground before you depend on them for date windows.

Which fields should I store from each news result?

Store link as the identity, iso_date for time, source.name for the publisher and title for display. Skip the relative date label, which changes as time passes, and don't key on position, which only numbers results within one response. Data is returned as found at the time of the call, so record when you fetched it.

What happens when a call fails?

You get an HTTP status and a JSON body with error.code, error.message and request_id, and the call costs nothing. Rate-limited (429) and unavailable (503) responses include a Retry-After header with the seconds to wait. When the balance runs out, calls return insufficient_credits (402) and nothing more is debited.

  1. Google News API: Search News Articles as JSON

    One GET call to /v1/google-news/news returns articles with title, link, source and ISO date as JSON for 1 credit. Parameters, a real response, cost.

  2. Google News Scraper or API: What You Get

    A Google News scraper vs a 1-credit news call: the recorded response with iso_date, source and story_token, and 4 credits per tracked query per day.

  3. DuckDuckGo Search API: Web Results as JSON

    DuckDuckGo's Instant Answer API returns topic summaries, not ranked links. GET /v1/duckduckgo/search returns organic results and paging at 1 credit per query.

Start with 100 free credits

No password to set. We email you a sign-in link, and your key works on every API.

No credit card. 100 free credits on signup.