APITube Help Center

How to run your first news search

Make a request, read the articles, and add your first filters

Kent Hudson

Written by Kent Hudson

June 28, 2026

Updated October 16, 2026

Open this example in the API Playground ↗

How to run your first news search

Send a request to https://api.apitube.io/v1/news/everything with your API key. Without filters, it returns the latest articles, newest first. Look in the response’s results field for the article list.

You can send your key as an api_key parameter or an X-API-Key header. Here are examples in curl, JavaScript, and Python:

curl -G "https://api.apitube.io/v1/news/everything" \
  --data-urlencode "api_key=YOUR_API_KEY"
const res = await fetch("https://api.apitube.io/v1/news/everything", {
    headers: { "X-API-Key": "YOUR_API_KEY" }
});
const data = await res.json();
console.log(data.results.map(a => a.title));
import requests

resp = requests.get(
    "https://api.apitube.io/v1/news/everything",
    headers={"X-API-Key": "YOUR_API_KEY"},
)
for article in resp.json()["results"]:
    print(article["title"])

You can add keywords, language, date, and sorting options to the same request. To try it without writing code, open Quickstart on your dashboard home page. It includes a ready-to-run request with your key filled in:

Dashboard home page with a Quickstart request and API key

What is the endpoint and how do you authenticate?

The main search URL is /v1/news/everything. Include your key in the X-API-Key header or the api_key parameter:

curl "https://api.apitube.io/v1/news/everything" \
  -H "X-API-Key: YOUR_API_KEY"

You can use GET with parameters in the URL, POST with a JSON body, or a combination of both. The same filters work in each case.

A missing key returns 401 ER0201; an invalid key returns 401 ER0202. A successful request returns HTTP 200.

How do you read the response?

The response is a JSON object with these fields:

  • status: "ok" when the request succeeds.
  • results: the articles.
  • page and limit: the current page and its result limit.
  • has_next_pages and next_page: whether more results are available and the URL for the next page.
  • request_id: an ID you can share with support when asking about a request.
  • export: links to the same search as CSV, XLSX, RSS, XML, TSV, Parquet, JSONL, or JSON.
{
  "status": "ok",
  "page": 1,
  "limit": 100,
  "has_next_pages": true,
  "next_page": "https://api.apitube.io/v1/news/everything?page=2",
  "results": [ "… article objects …" ],
  "request_id": "…"
}

Each article in results includes its headline, source, publication date, link, and language. It also includes details such as sentiment and the people or companies mentioned.

Add filters to /v1/news/everything. An article must match every filter you add. Start with one or more of these:

  • title: words in the headline.
  • language.code: a two-letter language code, such as en.
  • published_at.start and published_at.end: a date range.
  • source.domain: a publisher’s domain.

This example returns English articles with “electric vehicles” in the headline, ten per page:

curl -G "https://api.apitube.io/v1/news/everything" \
  --data-urlencode "title=electric vehicles" \
  --data-urlencode "language.code=en" \
  --data-urlencode "per_page=10" \
  --data-urlencode "api_key=YOUR_API_KEY"

The title filter searches headlines only. See how to search news by title for rules about multiple words, synonyms, and exact phrases. The official News API parameter reference lists all filters.

How many articles come back, and how do you get more?

Without per_page, you get up to 100 articles, limited by your plan. The maximum is 10 on Free, 50 on Starter, 200 on Basic, and 250 on Professional and Corporate. For example, Free returns ten per page even if you omit the parameter.

To fetch more articles, increase page to 2, then 3, and so on, or follow next_page from the response. Stop when has_next_pages is false.

For leading stories instead of a full search, use the top headlines endpoint.

Common Questions

Where do I get an API key?

Create an account and open API Keys in your dashboard. Copy a key into the X-API-Key header or api_key parameter. See how to check your API balance and remaining quota to track usage.

Why is the article text shortened or showing placeholder text?

Free plans and test keys return article body previews. To get full text, use a live key on a paid plan. See why your results are masked or placeholder text.

Does a search that finds nothing use up a request?

No. /v1/news/everything uses a request credit only when it returns at least one article. Empty searches and requests that fail with a 4xx error cost no credits. Test keys never spend your quota.

GET or POST — which should I use?

Either works. GET puts filters in the URL and is convenient for a browser or curl. POST puts them in a JSON body and can be easier for long queries. You can also combine URL and body parameters.


Related Articles