Top Headlines
top_headlinesFetch current top news headlines from NewsAPI, filterable by country (ISO 2-letter), category (business/entertainment/health/science/sports/technology), publisher sources, or keyword q. Returns article title, description, source, URL, and published date.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"country": "us",
"category": "technology",
"pageSize": 10
},
"name": "top_headlines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | ||
| page | No | ||
| country | No | ||
| sources | No | ||
| category | No | ||
| pageSize | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | API response status | |
| articles | No | Array of article objects | |
| totalResults | No | Total number of results available |