APITube Help Center

How to Search News in Plain English

Describe the news you need, then inspect the generated filters

Kent Hudson

Written by Kent Hudson

August 22, 2026

Updated October 16, 2026

Open this example in the API Playground ↗

How to search news in plain English

Put a sentence in prompt to generate news filters. Use 3–500 characters, then inspect meta.prompt to check how the request was interpreted. The feature requires Basic or above.

curl -G "https://api.apitube.io/v1/news/everything" \
  --data-urlencode "prompt=Tesla and Elon Musk news in English for the last 10 days" \
  --data-urlencode "api_key=YOUR_API_KEY"

Send the key through api_key or X-API-Key; a POST JSON body also accepts prompt. Check the generated conditions rather than assuming a sentence always produces the same filters you would choose.

prompt is available on Basic, Professional and Corporate. Free and Starter return 403 ER0706 without a charge. You can also write supported filters directly; see title search.

What does the prompt parameter do?

It turns a description into ordinary API filters, then returns normal search results. You can still set sorting, pagination, field selection and export options.

Generated conditions can include headline terms, recognized entities, categories, topics, industries, sources, authors, language, publisher country, dates, sentiment and supported flags.

Multi-value selections use up to three values. Broad category selection uses top-level categories; a narrower subject may become a topic or headline term. Review the output for long lists or specific subjects.

How do I see which filters my prompt produced?

Read meta.prompt:

{
  "meta": {
    "prompt": {
      "text": "positive Tesla coverage from German publishers this month",
      "applied": {
        "organization.name": "Tesla",
        "source.country.code": "de",
        "sentiment.overall.polarity": "positive",
        "published_at.start": "NOW/MONTH"
      },
      "ignored": [
        { "field": "topic.id", "value": "electric vehicles", "reason": "not_found" }
      ],
      "cached": true
    }
  }
}

applied lists generated filters used in the request. ignored lists generated conditions that were not used and their reasons. Explicit parameters remain part of the request separately. cached reports whether a saved interpretation was reused.

Relative dates, such as NOW-10DAY or NOW/MONTH, stay relative when you repeat a prompt. Use explicit dates when you need a fixed period.

Why was part of my prompt ignored?

  • not_found: a name was not recognized. An entity may fall back to a headline term. Look up the entity if exact matching matters.
  • explicit_param: your explicit parameter took priority.
  • unsupported_on_endpoint: that endpoint cannot use the condition.
  • invalid_date: the requested period could not be read.
  • title_too_long: the headline terms exceeded the title length limit.
  • title_window_clamped: the generated headline search was narrowed to the 31-day limit.

Which endpoints accept a prompt?

Use prompt with Everything, Top Headlines, Local, Count, Trends, category, topic, industry and entity news, SSE or WebSocket. Raw accepts date bounds, sort.order and per_page; other generated conditions are reported as unsupported.

Article, Story, Fact Check and suggest routes ignore prompt, without an interpretation charge.

SSE applies the generated filters without a meta.prompt JSON response. WebSocket reports expanded filters in its subscribed message.

How much does a prompt cost?

A new interpretation costs two credits in addition to the endpoint’s normal charge. Reusing the same normalized wording within 24 hours avoids that interpretation charge. Differences in case or repeated spaces do not make a new wording. Check meta.prompt.cached.

Which plans include the prompt parameter?

Planprompt
FreeNo — 403 ER0706
StarterNo — 403 ER0706
BasicYes
ProfessionalYes
CorporateYes

Plan and available funds still apply. An account without funds can return 402. See plan comparisons.

How is this different from Ask News and the MCP server?

prompt is for a news request from your code and returns the usual API response with interpretation details. Ask News provides a dashboard conversation. MCP connects news tools to a compatible assistant.

See the prompt reference for parameters and response fields.

Common Questions

What do errors ER0706, ER0800, ER0801 and ER0802 mean?

403 ER0706 means the plan excludes prompt. 400 ER0800 means the sentence is outside 3–500 characters. 502 ER0801 means a temporary interpretation failure, without charge. 400 ER0802 means no usable generated filters remained, including after explicit overrides.

Read the HTTP status and message too, since ER codes can be reused in other contexts. See the error-code guide.

Can I mix a prompt with normal filters?

Yes. Explicit parameters win and conflicting generated values appear in ignored with explicit_param. Use explicit values for conditions that must be exact.

Does the prompt search inside the article body?

No. It builds supported filters. General wording can become headline terms, but cannot enable body-text search.

Can a prompt invent a category or entity that does not exist?

Generated names are checked against recognized references. Still inspect applied and ignored: a name can fail to resolve or become a broader headline search. Use explicit IDs for exact selections.

Why did my prompt return no articles?

Review generated and explicit filters, especially entity names and dates. Try fewer conditions, or send the intended filters directly to find which one removes the matches.


Related Articles