canonical: https://jentic.com/apis/newsapi.org/newsapi

# News API

Jentic publishes the only available OpenAPI specification for News API, keeping it validated and agent-ready. News API searches and retrieves live articles from over 80,000 news sources worldwide, returning article titles, descriptions, URLs, source attribution, and publication timestamps. The API exposes three operations - full article search across the open web via /everything, breaking-news headlines filtered by country or category via /top-headlines, and a directory of supported sources via /top-headlines/sources. Authentication uses an X-Api-Key header tied to a NewsAPI.org account.

## For AI agents

Search and retrieve news articles from 80,000+ worldwide sources. Returns article metadata, source attribution, and publication timestamps for AI-assisted research and monitoring.

## Scope

Does not handle social media posts, full article body extraction, or sentiment analysis - use for news article search and headline retrieval only.

## Capabilities

- Search the live news index across 80,000+ sources by keyword, date range, language, and domain via GET /everything
- Retrieve breaking-news top headlines filtered by country, category, or source through GET /top-headlines
- Enumerate the supported news sources directory with country, language, and category metadata via GET /top-headlines/sources
- Filter articles by ISO date range to track coverage of an event over time
- Restrict results to a specific publisher domain to monitor a single outlet's output

## Use cases

### Brand and Competitor Monitoring

Marketing and PR teams use News API to track mentions of their brand, products, and competitors across worldwide press. GET /everything accepts keyword queries, date ranges, language filters, and source filters so a daily cron job can pull the previous day's mentions, deduplicate by URL, and feed them into an internal review queue. The 80,000+ source coverage means coverage in regional press is captured alongside major outlets.

Example prompt: Fetch all articles from the last 24 hours mentioning 'Acme Corp' in English and return titles, sources, and URLs

### Breaking-News Dashboards

Newsroom and trading-desk dashboards pull current top headlines via GET /top-headlines filtered by country and category. The endpoint returns the same set of headlines that NewsAPI's homepage surfaces, so a refresh every few minutes is sufficient for an editorial or market-watch view. Source attribution and publication timestamps are included on every article.

Example prompt: Get the top 20 business headlines for the United States and return them sorted by publication time

### Event Timeline Research

Analysts researching how an event was covered over time call GET /everything with a keyword query and successive date windows. By stepping the from and to parameters week by week, an agent can build a coverage timeline showing volume, language, and outlet distribution. This is useful for due-diligence reports, academic research, and post-incident reviews.

Example prompt: For the search term 'merger announcement Q1 2026', return article counts grouped by week between January and March

### Agent-Powered News Briefing

An AI agent uses News API through Jentic to generate morning briefings tailored to a user's interests. The agent queries GET /top-headlines for the user's country and categories, summarises the headlines, and formats a digest. Source attribution is preserved so the user can click through to the original article when something looks relevant.

Example prompt: Build a 5-bullet morning briefing covering the top US technology, business, and health headlines for the current day

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | /everything | Search the live news index by keyword, date, language, and source |
| GET | /top-headlines | Get current breaking-news headlines filtered by country or category |
| GET | /top-headlines/sources | List supported news sources with country, language, and category metadata |

## Key resources

- **Articles** — Search the full live news index by keyword, date, language, source, and domain
- **Top Headlines** — Retrieve current breaking-news headlines filtered by country, category, or source
- **Sources** — Enumerate the directory of supported news sources with country, language, and category metadata

## Why Jentic

- **Setup:** Wiring News API by hand means learning its API-key request header auth, building query strings against the /everything and /top-headlines endpoints, and handling result paging yourself. Through Jentic you install once, import the News API from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** News API is read-only search with filters in the query string rather than resource ids in the URL path, so scope your agent by operation: limit it to the operations it needs, such as searching everything or fetching top headlines, and leave the sources listing out if it is not required. You choose which of the three read operations it may call.
- **Credential handling:** Your News API key is stored once, encrypted, by your own Jentic One instance and injected into the API-key request header at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'search news articles about a topic' or 'get top headlines for a country', and Jentic returns the matching News API operation with its query parameter schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **GNews API** — GNews offers similar headline and article search across worldwide sources with a different free tier
- **Mediastack API** — Mediastack provides live and historical news from 7,500+ sources with country and language filters
- **Bing Search API** — Bing's search API covers web and news together; News API focuses only on news with stronger filtering

## FAQ

### Why is there no official OpenAPI spec for News API?

NewsAPI.org does not publish an OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call News API via structured tooling. It is validated against the live API and kept up to date. Get started with Jentic One, the self-hosted execution layer.

### What authentication does the News API use?

News API uses an API key passed in the X-Api-Key request header. Through Jentic the key sits in the encrypted vault and Jentic injects it on each call, so the raw key never enters the agent's prompt or response context.

### Can I search news articles by date range with the News API?

Yes. GET /everything accepts from and to query parameters in ISO-8601 format, so an agent can pull articles for a specific window. The /top-headlines endpoint, in contrast, returns only current breaking news and does not accept a date range.

### What is the difference between /everything and /top-headlines?

/everything searches the full historical news index and supports keyword queries, date ranges, language, source, and domain filters. /top-headlines returns the smaller, curated set of current breaking-news headlines and is filtered by country, category, or source. Use /everything for research and monitoring; use /top-headlines for live front-page feeds.

### How do I build a news monitoring agent with News API through Jentic?

Search Jentic for 'search news articles by keyword', load the GET /everything schema, and execute with your query string and date range. Jentic returns the structured article list - title, source, URL, publication timestamp - that the agent can summarise or store.

### Is News API free to use?

NewsAPI.org offers a free developer tier intended for non-commercial and prototype use, with paid plans for production usage and historical search depth. The API surface is identical across plans; what changes is request volume, the look-back window, and commercial-use rights.

### Can I limit what my agent is allowed to do with the News API?

Yes. News API is read-only search, so with your self-hosted Jentic One instance you scope the agent by operation, and your own rules decide which of the three read operations it may call. You can allow only what it needs, such as searching articles via GET /everything or fetching breaking-news headlines via GET /top-headlines, and leave the GET /top-headlines/sources directory out when it is not required. Because filters are passed in the query string rather than as resource IDs in the URL path, you control access at the operation level and the agent can only invoke the endpoints you permit.
