fetch_news_articles
Retrieve news articles from WorldNewsAPI by specifying search text, date range, and result limit. Returns article details as a list of dictionaries for analysis or integration.
Instructions
Fetches news articles from the WorldNewsAPI based on specified parameters
and returns them as a list of dictionaries.
Args:
query_text (str): The text to search for in news articles
earliest_date (str): Earliest publication date in YYYY-MM-DD format
latest_date (str): Latest publication date in YYYY-MM-DD format
max_results (int): Maximum number of results to return
Returns:
list: A list of dictionaries containing article details
Input Schema
Name | Required | Description | Default |
---|---|---|---|
earliest_date | No | 2025-04-17 | |
latest_date | No | 2025-04-23 | |
max_results | No | ||
query_text | No | politics |
Input Schema (JSON Schema)
{
"properties": {
"earliest_date": {
"default": "2025-04-17",
"title": "earliest_date",
"type": "string"
},
"latest_date": {
"default": "2025-04-23",
"title": "latest_date",
"type": "string"
},
"max_results": {
"default": 5,
"title": "max_results",
"type": "string"
},
"query_text": {
"default": "politics",
"title": "query_text",
"type": "string"
}
},
"title": "fetch_news_articlesArguments",
"type": "object"
}