NewsAPI
Search news articles and blogs, top headlines by country, category or source, and news sources
Beta v0.1.0 Node.js 4 actions
About
A Graphrt plugin for NewsAPI.org v2. It searches news articles and blog posts from tens of thousands of sources, reads top headlines by country, category or source, and lists the sources. Every operation is a read, a workflow node and an agent tool.
What it can do
- search_articles: /v2/everything with keywords and operators, fields to match (search_in), sources, domains to include or exclude, date range, language and sort order, paginated with limit/cursor
- get_top_headlines: breaking headlines by country, category, sources or query, paginated
- list_sources: source ids for sources, by category, language or country
- api_request: any other NewsAPI path (GET only for agents)
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Search articles
news-api.search_articles - Top headlines
news-api.get_top_headlines - List news sources
news-api.list_sources - NewsAPI request
news-api.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
NEWSAPI_API_KEYRequiredAPI key, sent as the X-Api-Key header (never in the URL)
How to use it
In Graphrt Desktop
- Open Plugins and search for NewsAPI.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install news-api workflow.yaml
- id: news type: news-api.search_articles query: '"Bank Indonesia" AND (rupiah OR inflation)' language: en from: "2026-11-01" sort_by: publishedAt limit: 20