Mediastack Search News
mediastack_search_newsSearch news articles by keywords. Optionally filter by category (business, technology, science, health, sports, entertainment, general), country (ISO2 codes), or language. Returns headlines, descriptions, sources, and published dates.
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": {
"_apiKey": "your-mediastack-api-key",
"keywords": "artificial intelligence"
},
"name": "mediastack_search_news"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results to return (1-100, default 25) | |
| _apiKey | Yes | Mediastack API key | |
| keywords | Yes | Search keywords (e.g., "artificial intelligence", "climate summit") | |
| countries | No | Comma-separated ISO2 country codes (e.g., "us,gb,de") | |
| languages | No | Comma-separated language codes (e.g., "en,es,fr") | |
| categories | No | Comma-separated categories: business, technology, science, health, sports, entertainment, general |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of articles returned in this response | |
| total | Yes | Total number of matching articles available | |
| articles | Yes | List of news articles matching the search criteria |