Get top news
{
"operation": "top",
"language": "en",
"country": "US"
}
Get news by keyword
{
"operation": "keyword",
"language": "en",
"country": "US",
"keyword": "sport"
}
Get news by major topic
{
"operation": "topic",
"language": "en",
"country": "US",
"topic": "WORLD"
} Available topics: WORLD, NATION, BUSINESS, TECHNOLOGY, ENTERTAINMENT, SPORTS, SCIENCE, HEALTH.
Get news by geo location
{
"operation": "location",
"language": "en",
"country": "US",
"location": "United States"
}
location can be name of city/state/country
location can be name of city/state/country
Get news by site
{
"operation": "site",
"language": "en",
"country": "US",
"site": "cnn.com"
}
site should be in the format of: "cnn.com"
Optimal
Put it down body json before "} "
"period": "7d"
- h = hours (eg: 12h)
- d = days (eg: 7d)
- m = months (eg: 6m)
- y = years (eg: 1y)
"max_results":"100"
# number of responses across a list url