Get Top Headlines
get_top_headlinesFetch top news headlines filtered by country, category, or keywords. Use this to quickly see the leading stories for any region or topic.
Instructions
Get top news headlines by country and category.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Keywords to search in article headlines. | |
| country | No | 2-letter ISO 3166-1 country code (default: "us"). | us |
| category | No | News category: "business", "entertainment", "general", "health", "science", "sports", or "technology". | |
| page_size | No | Number of results to return (default: 10, max: 100). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | The search query (if provided) | |
| country | Yes | Country code used for the request | |
| articles | No | Top headline articles | |
| category | No | Category filter (if provided) | |
| total_results | No | Total number of results available |