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 thex-api-key
header.
Make Your First Request
API Parameters
Parameter | Default Value | Required | Description |
---|---|---|---|
q | - | No | Free-text query as used on news.google.com. Not allowed with topicToken , storyToken , or publicationToken . |
gl | - | No | The two-letter country code for the country you want to limit the search to. |
hl | - | No | The two-letter language code for the language you want to use for the search. |
topicToken | - | No | Token for a Google News topic such as World, Business, or Technology. Not allowed with q , storyToken , or publicationToken . |
sectionToken | - | No | Token for a sub-section under a topic, for example Business → Economy. Use only when topicToken or publicationToken is present. |
publicationToken | - | No | Token for a specific publisher such as CNN or BBC. Not allowed with q , storyToken , or topicToken . |
storyToken | - | No | Token for a single news story cluster (the “Full coverage” page). |
so | - | No | Sort order for articles in a story. Use only with storyToken. |