Google News
Google News lets you list articles by category or run a free-text search. All endpoints are read-only GET requests and return public Google News data.
Base URL: https://api.pullbay.com/
Endpoints
GET /google-news/category
List top articles for a Google News category
—
GET /google-news/search
Search Google News articles by query
maxItems (one-shot)
Get News By Category
Returns top news articles for a given Google News category. languageCode selects the locale edition (e.g. US:en, GB:en).
Request
GET /google-news/category
Authorization: Bearer YOUR_API_KEYParameters
category
string
Yes
News category. One of business, entertainment, health, latest, science, sport, technology, world
languageCode
string
No
Locale edition code, e.g. US:en, GB:en, DE:de, JP:ja
Example
curl -G "https://api.pullbay.com/google-news/category" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d category=technology \
-d languageCode=US:enResponse
Credit cost: dynamic, returned in pricing.creditsCharged. Cost scales with the number of articles returned, not the number of requests.
Search News
Returns articles matching query. Set resolveUrl=yes to follow Google's redirect and return the publisher's direct URL instead of the news.google.com link.
Request
Parameters
query
string
Yes
Search query, 1–500 characters
languageCode
string
No
Locale edition code, e.g. US:en, GB:en, DE:de, JP:ja
resolveUrl
boolean
No
true to resolve the publisher URL instead of the Google News redirect link
maxItems
integer
No
One-shot bulk pull, 1–100 results
Example
Response
Credit cost: dynamic, returned in pricing.creditsCharged. Using maxItems to pull more results in one call costs proportionally more than a smaller pull.
Object schemas
GoogleNewsArticle object
title
string
Article headline
articleUrl
string
Link to the article on news.google.com (or the resolved publisher URL when resolveUrl=true)
publishedAt
string (date-time)
Publication timestamp
imageUrl
string, nullable
Thumbnail image URL, often a relative /api/attachments/... path
source
string
Publisher/outlet name
sourceIconUrl
string
Favicon URL for the publisher
author
string, nullable
Byline, when available
Errors
All non-2xx responses share the same envelope:
400
Bad request — missing/invalid parameters
402
Insufficient credits
404
No articles found
Category and Language Codes
categoryaccepts one ofbusiness,entertainment,health,latest,science,sport,technology,world.languageCodecombines a 2-letter country code and a language/locale tag, separated by a colon (e.g.US:en,GB:en,BR:pt-419,JP:ja). Pass the pair exactly as listed — country and language aren't independent fields here.If
languageCodeis omitted, results default to theUS:enedition.
Resolving Publisher URLs
By default,
articleUrlpoints to anews.google.com/read/...redirect link, not the original publisher page.Set
resolveUrl=trueon/google-news/searchto have Pullbay follow that redirect server-side and return the final publisher URL instead./google-news/categorydoes not exposeresolveUrl— itsarticleUrlis always the Google News redirect link.
Last updated