Skip to main content
POST
/
api
/
google
/
news
/
articles
/
search
/google/news/articles/search
curl --request POST \
  --url https://api.anysite.io/api/google/news/articles/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "keyword": "<string>",
  "count": 2,
  "timeout": 300,
  "hl": "en-US",
  "gl": "US",
  "ceid": "US:en",
  "exact_phrase": "<string>",
  "exclude_words": "<string>",
  "website": "reuters.com"
}
'
[
  {
    "@type": "GoogleNewsArticle",
    "web_url": "<string>",
    "source": "<string>",
    "source_url": "<string>",
    "published_at": "<string>",
    "snippet": "<string>",
    "guid": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
keyword
string
required

Search keyword or phrase

Minimum string length: 1
Example:

"tesla"

count
integer
required

Max number of articles to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
hl
string
default:en-US

Interface language code

Minimum string length: 2
gl
string
default:US

Country code of the news edition

Minimum string length: 2
ceid
string
default:US:en

Country:language edition id

Minimum string length: 2
exact_phrase
string | null

Match this exact phrase

exclude_words
string | null

Space-separated words to exclude

website
string | null

Restrict to a single publisher domain

Example:

"reuters.com"

period
enum<string> | null

Restrict to articles from this time window

Available options:
1h,
1d,
7d,
30d,
1y

Response

Successful Response

@type
string
default:GoogleNewsArticle
web_url
string | null
source
string | null
source_url
string | null
published_at
string | null
snippet
string | null
guid
string | null