APITube Help Center

How to Refine Your Title Search

Match the beginning, end or part of a headline

Kent Hudson

Written by Kent Hudson

June 27, 2026

Updated October 16, 2026

Open this example in the API Playground ↗

How to refine your title search

Use title_starts_with for a headline beginning, title_ends_with for an ending or title_pattern for a substring. Add these to /v1/news/everything alongside your language, source, date or other filters.

curl "https://api.apitube.io/v1/news/everything?title_starts_with=breaking&api_key=YOUR_API_KEY"

Send your key through api_key or X-API-Key.

How is title_pattern different from title?

An ordinary title word matches as a whole word. title_pattern can also match inside a longer word:

# whole-word match: finds the word "ai"
curl "https://api.apitube.io/v1/news/everything?title=ai&api_key=YOUR_API_KEY"

# substring match: also matches "email", "campaign", "detail"…
curl "https://api.apitube.io/v1/news/everything?title_pattern=ai&api_key=YOUR_API_KEY"

Use a specific substring to avoid unrelated results. Chinese and Japanese terms and some special title terms can already match as substrings in a regular title search.

How to match the start or end of a headline

Prefix and suffix filters apply to the entire headline, ignoring case:

# headlines that begin with "Apple"
curl "https://api.apitube.io/v1/news/everything?title_starts_with=Apple&api_key=YOUR_API_KEY"

# headlines that end with "2026"
curl "https://api.apitube.io/v1/news/everything?title_ends_with=2026&api_key=YOUR_API_KEY"

They can help find recurring headline formats, opening labels or endings such as a year.

What are the length limits and error codes?

  • title_starts_with: 2–100 characters, otherwise ER0009.
  • title_ends_with: 2–100 characters, otherwise ER0010.
  • title_pattern: 2–200 characters, otherwise ER0011.

These errors return 400. Regular title accepts 2–100 characters. All headline-filter requests also have a 31-day publication-window limit.

Do these parameters expand synonyms and word forms?

Yes. Known word variations can match as alternatives, so results may use more than the exact spelling you entered. If literal phrase wording matters, use a quoted title value instead.

Different filter parameters combine with AND. A result must satisfy every title condition and the other filters you send. See the parameter reference.

Common Questions

Which parameter should I use to match part of a word?

Use title_pattern. It matches substrings rather than requiring a whole word. See title search for ordinary keyword matching.

Are title_starts_with and title_ends_with case-sensitive?

No. Uppercase and lowercase versions match the same headline text.

Why did my title refinement return a 400 error?

Read the code and message. A value outside the parameter’s length limit is one cause; a publication window beyond 31 days is another.

Yes. All conditions must match. Use a quoted title for an exact phrase.


Related Articles