# Top Headlines News API

> Top Headlines News API is a paid API for AI agents from agents.openwebninja.com, paid per call via MPP, price unknown, status unknown (last checked 2026-10-14).

Fetches the latest top news headlines and stories for a given country and language via real-time web data.

## Facts

- Endpoint: GET https://agents.openwebninja.com/realtime-news-data/top-headlines?utm_source=zero.xyz
- Price: price unknown
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Provider: agents.openwebninja.com
- Website: https://agents.openwebninja.com
- Canonical page: https://www.zero.xyz/c/agents-openwebninja-com-top-headlines-news-api-e38cc9e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6W5i3TwXp6kl1VsGUlX4D

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agents-openwebninja-com-top-headlines-news-api-e38cc9e0
```

Example prompt: What are the top news headlines in the US right now? Grab up to 20 stories in English.

## When to prefer this

Choose this endpoint when you need real-time, country-specific top news headlines with rich metadata (authors, images, sub-articles, related topics) rather than keyword-based news search. It is ideal for building news briefings, monitoring current events for a specific country, or aggregating trending stories across multiple countries by making parallel calls. Prefer this over search-based news endpoints when you want the current editorial front-page selection rather than query-matched results.

## Known failure modes

- Invalid or unsupported country code returns empty data or error
- Unsupported language code may return no results or default to English
- Limit value outside 1-500 range returns validation error
- Real-time data unavailability causes empty or stale result sets
- Payment/authentication failure returns 402 or 401 error

## How this service works

Get the latest news headlines/top stories for a country.

## Output

Returns an array of news article objects, each containing the headline title, canonical article URL, optional snippet/excerpt, author names, publisher name and URL, lead image URL, thumbnail URL, and optionally a list of sub-articles with similar fields plus related Google News topic IDs and names.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "default": 500,
   "maximum": 500,
   "minimum": 1,
   "description": "Maximum number of news articles to return."
  },
  "country": {
   "type": "string",
   "description": "Country code. See all available country codes. Default: US"
  },
  "language": {
   "type": "string",
   "default": "en",
   "description": "The language to use for the results, specified as a 2-letter language code - see ISO 639-1 alpha-2."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "title",
     "link"
    ],
    "properties": {
     "link": {
      "type": "string",
      "description": "Canonical URL of the article."
     },
     "title": {
      "type": "string",
      "description": "Headline of the news article."
     },
     "authors": {
      "type": "array",
      "items": {
       "type": "string",
       "description": "A single author name."
      },
      "nullable": true,
      "description": "Author names credited on the article."
     },
     "snippet": {
      "type": "string",
      "nullable": true,
      "description": "Short excerpt of the article body."
     },
     "photo_url": {
      "type": "string",
      "nullable": true,
      "description": "URL of the article's lead image."
     },
     "source_url": {
      "type": "string",
      "nullable": true,
      "description": "Homepage URL of the source publisher."
     },
     "source_name": {
      "type": "string",
      "nullable": true,
      "description": "Publisher name of the source."
     },
     "sub_articles": {
      "type": "array",
      "items": {
       "type": "object",
       "required": [
        "title",
        "link"
       ],
       "properties": {
        "link": {
         "type": "string",
         "description": "Canonical URL of the sub-article."
        },
        "title": {
         "type": "string",
         "description": "Headline of the sub-article."
        },
        "authors": {
         "type": "array",
         "items": {
          "type": "string",
          "description": "A single sub-article author name."
         },
         "nullable": true,
         "description": "Author names credited on the sub-article."
        },
        "photo_url": {
         "type": "string",
         "nullable": true,
         "description": "URL of the sub-article's lead image."
        },
        "source_url": {
         "type": "string",
         "nullable": true,
         "description": "Homepage URL of the sub-article's source publisher."
        },
        "source_name": {
         "type": "string",
         "nullable": true,
         "description": "Publisher name of the sub-article's source."
        },
        "thumbnail_url": {
         "type": "string",
         "nullable": true,
         "description": "URL of the sub-article's thumbnail image."
        },
        "related_topics": {
         "type":
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agents-openwebninja-com-top-headlines-news-api-e38cc9e0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.openwebninja.com](https://www.zero.xyz/host/agents.openwebninja.com/llms.txt)
