Skip to main content
Real-time access to structured Google News results without blocks or CAPTCHAs.

Get Your API Key

Sign in at hasdata.com, go to your account settings, and copy your API key. All requests must include your key in the x-api-key header.

Make Your First Request

curl --request GET \
  --url https://api.hasdata.com/scrape/google/news \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <your-api-key>'

API Parameters

ParameterDefault ValueRequiredDescription
q-NoFree-text query as used on news.google.com. Not allowed with topicToken, storyToken, or publicationToken.
gl-NoThe two-letter country code for the country you want to limit the search to.
hl-NoThe two-letter language code for the language you want to use for the search.
topicToken-NoToken for a Google News topic such as World, Business, or Technology. Not allowed with q, storyToken, or publicationToken.
sectionToken-NoToken for a sub-section under a topic, for example Business → Economy. Use only when topicToken or publicationToken is present.
publicationToken-NoToken for a specific publisher such as CNN or BBC. Not allowed with q, storyToken, or topicToken.
storyToken-NoToken for a single news story cluster (the “Full coverage” page).
so-NoSort order for articles in a story. Use only with storyToken.
I