APITube Help Center

How to Get Top Headlines from the News API

Fetch important headlines from publishers with OPR 5 or higher

Kent Hudson

Written by Kent Hudson

June 26, 2026

Updated October 16, 2026

Open this example in the API Playground ↗

How to get top headlines

Call /v1/news/top-headlines for articles marked as important and published by sources with OPR 5 or higher. Results use the usual article fields and are newest first by default.

This request selects English headlines:

curl "https://api.apitube.io/v1/news/top-headlines?language.code=en&api_key=YOUR_API_KEY"

Send your key in api_key or the X-API-Key header.

What makes an article a top headline?

An article must meet both conditions:

  • It is marked important, such as breaking or high-significance news.
  • Its publisher has an Open PageRank score of at least 5.

Your own filters narrow those eligible articles further.

It adds those two conditions to the same filters available on /v1/news/everything. Sorting, pagination, facets, highlighting, and supported exports are available too.

You can reuse a search by changing its path to /v1/news/top-headlines. See Searching & Filtering News.

How to narrow top headlines by language, country or category

Use GET parameters or a POST JSON body. This example selects an IPTC category and sorts by relevance:

curl "https://api.apitube.io/v1/news/top-headlines?category.id=medtop:13000000&sort.by=relevance&sort.order=desc&api_key=YOUR_API_KEY"

Other common filters include:

  • language.code=en: English articles.
  • source.domain=bbc.com: a publisher.
  • published_at.start=2026-06-01: a start date.
  • category.id=medtop:13000000: a category ID. See how to filter news by category.

How are top headlines sorted, and can I change it?

The default is published_at descending, or newest first. Change it with sort.by and sort.order.

Sort options include relevance, engagement, quality, controversy, trust, and published_at. For example, sort.by=engagement&sort.order=desc puts the most-shared headlines first.

What does the top-headlines response look like?

You get the normal results list plus a headlines list containing titles:

{
  "status": "ok",
  "limit": 100,
  "page": 1,
  "has_next_pages": true,
  "request_id": "9f2c1e7a-4b3d-4c8e-a1f0-2d6b8c4e7a11",
  "headlines": [
    "Central bank holds rates steady amid inflation concerns",
    "Major automaker recalls 200,000 vehicles over a brake fault"
  ],
  "results": [
    {
      "id": 123456789,
      "href": "https://example.com/markets/central-bank-holds-rates",
      "published_at": "2026-06-26T09:15:00Z",
      "title": "Central bank holds rates steady amid inflation concerns",
      "language": "en",
      "source": {
        "id": 4232,
        "domain": "example.com",
        "rankings": { "opr": 7 }
      }
    }
  ]
}

Use headlines for a simple title list, or results for id, href, published_at, title, description, body, language, source, categories, entities, sentiment, and other fields. See the API response structure.

How much does a top-headlines request cost?

One credit if at least one article is returned. Empty results cost no credits.

Use page and per_page for more results. Maximum page sizes are 250 on Professional and Corporate, 200 on Basic, 50 on Starter, and 10 on Free. The default is 100 or your plan limit, whichever is lower. A larger value returns ER0171.

Common Questions

Can I call top-headlines with POST?

Yes. Send filters as a JSON body with Content-Type: application/json, or use GET parameters.

Only important articles from OPR-5+ sources qualify. For broader coverage, use /v1/news/everything. For a total without downloading articles, see how to count matching articles.

Why is the article content truncated?

Free plans and test keys return body previews. Use a live key on a paid plan for full bodies.

What errors can top-headlines return?

Common errors are 401 ER0201/ER0202 for a missing or invalid key, 402 ER0176 for no credits, and 429 ER0203 for exceeding the request rate. Live limits are 10 per minute on Free, 50 on Starter through Professional, and 200 on Corporate. Repeated violations can cause a temporary ban. Keep request_id for support.


Related Articles