Fetch latest news headlines by country and category
Retrieve a list of current news articles filtered by specific country and topic for monitoring or aggregation.
How it works
Read-onlyResearch and knowledge
The agent uses the AllNewsAPI MCP server to call the headlines endpoint. It accepts parameters for country code (e.g., 'us', 'gb') and optional category (e.g., 'technology', 'business'). The agent retrieves the JSON response containing article metadata and presents the headlines to the user. Before acting, ensure the user specifies the desired region and topic to narrow down the results effectively.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
Prompt for Fetch latest news headlines by country and category
Fetch the latest technology headlines from the United States using the AllNewsAPI.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
Our news aggregator will feature: Country-based news filtering (244 countries supported) Category selection (business, technology, sports, entertainment, and more)Building a News Aggregator App with AllNewsAPI - AllNewsAPI Blog | AllNewsAPI