AnswerLine Sign in Start free

Engines

Google News API

Google News results for any query, country and interface language, up to ten pages deep.

Coming soon. The endpoint and fields below are the documented contract; requests are not accepted yet.

Price

3 credits per async request, 5 synchronous.

+2 per extra page (pages 2–10)

Endpoint

POST /v1/monitor/google/news

Or queue it with POST /v1/async/task and taskType: "GOOGLE_NEWS".

Request

curl -X POST "https://api.answerline.dev/v1/monitor/google/news" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"electric vehicle battery","country":"FR","hl":"fr"}'

Request options

* required. Nested fields are written with a dot, e.g. include.markdown.

FieldTypeDescription
query * string The search query to execute on Google News
country string ISO 3166-1 alpha-2 country code for localized news results
gl string Alternative to `country`, using Google's own parameter name for the result geography. Same ISO 3166-1 alpha-2 codes, accepted in either case (`us` or `US`), and must be a country the endpoint supports — see `GET /v1/countries`. Provide `country` or `gl`; sending both with different values is a `400`.
hl string Interface language, as Google's own `hl` parameter (e.g. `en`, `de`, `pt-BR`). Free-form and case-insensitive — Google owns the list of codes. Overrides the language answerline derives from the country, so the interface language and the result geography can differ.
device "desktop" | "mobile" | "ios" | "android" Device the search is run from. 'desktop' returns the desktop news SERP; 'ios' (Safari on iPhone), 'android' (Chrome on Android) and 'mobile' (alias for 'android') all return the mobile news SERP.
pages integer Number of news results pages to scrape (1-10)
include object Optional flags for including additional response data
include.html boolean Include raw HTML response from Google News

What you get back

Field in resultTypeDescription
newsResultsobject[]News articles from Google News

Full field definitions are in the API reference.

Other engines