Skip to main content
POST
/
api
/
google
/
news
/
topics
/
geo
/google/news/topics/geo
curl --request POST \
  --url https://api.anysite.io/api/google/news/topics/geo \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "location": "<string>",
  "count": 2,
  "timeout": 300,
  "hl": "en-US",
  "gl": "US",
  "ceid": "US:en"
}
'
[
  {
    "@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
location
string
required

Place name to get local news for

Minimum string length: 1
Example:

"New York"

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

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