Top Headlines
top_headlinesFetch current top news headlines from GNews (requires BYO API key). Optionally filter by category (general, world, nation, business, technology, entertainment, sports, science, health), country code, and language. Returns up to 100 articles with title, description, source, and publication date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Max articles to return (1-100, default 10) | |
| lang | No | Language code (e.g., "en"). Default: "en" | |
| _apiKey | Yes | GNews API key | |
| country | No | Country code (e.g., "us", "gb"). Omit for global | |
| category | No | News category: general, world, nation, business, technology, entertainment, sports, science, health |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| articles | Yes | List of top news headlines | |
| returned | Yes | Number of articles returned in this response | |
| total_articles | Yes | Total number of top headline articles |