How to Exclude Keywords or Sources from News
Remove unwanted headlines, publishers, countries or bylines
Written by Kent Hudson
June 27, 2026
Updated October 16, 2026
How to exclude keywords or sources
Add ignore.* filters to remove articles from a search. Use ignore.title for headline terms, source exclusions for publishers and countries, or author exclusions for bylines. Combine them with the conditions that select your starting results.
curl "https://api.apitube.io/v1/news/everything?title=AI&ignore.title=layoffs,job losses&api_key=YOUR_API_KEY"
Send your key through api_key or X-API-Key.
How to exclude keywords from results
ignore.title checks headlines rather than article bodies:
curl "https://api.apitube.io/v1/news/everything?ignore.title=celebrity&api_key=YOUR_API_KEY"
Several terms exclude articles matching any of them:
curl "https://api.apitube.io/v1/news/everything?title=AI&ignore.title=layoffs,job losses&api_key=YOUR_API_KEY"
Recognized word variations can also be excluded. The total value must be 2–100 characters; invalid length returns 400 ER0008. A word found only in the article body does not trigger this headline exclusion.
How to exclude specific sources
Use domains or numeric source IDs, up to three values:
curl "https://api.apitube.io/v1/news/everything?ignore.source.domain=foxnews.com,nypost.com&api_key=YOUR_API_KEY"
ignore.source.domain requires recognized publishers. An unknown domain stops the request with 400 ER0215. Check spelling before adding it. See source filters.
How to exclude every source from a country
Use up to three two-letter publisher-country codes:
curl "https://api.apitube.io/v1/news/everything?ignore.source.country.code=fr,de&api_key=YOUR_API_KEY"
Invalid length returns ER0247; an unknown code returns ER0213, both with 400. This excludes publishers based in those countries, rather than every article about the countries.
How to exclude an author
Use a recognized byline in ignore.author.name:
curl "https://api.apitube.io/v1/news/everything?ignore.author.name=John Smith&api_key=YOUR_API_KEY"
Up to three names are accepted. An unknown name returns ER0205; each name must be 1–100 characters (ER0073). See author filters.
How exclusion combines with the rest of your query
Positive conditions select articles; exclusions remove matches from that set:
curl "https://api.apitube.io/v1/news/everything?title=AI&language.code=en&ignore.title=layoffs&ignore.source.domain=nypost.com&api_key=YOUR_API_KEY"
The result must satisfy every condition. See the parameter reference for other exclusion filters.
Common Questions
- Does ignore.title also search the article body?
- How many values can each ignore parameter take?
- What happens if I exclude a domain APITube doesn’t track?
- Can I include and exclude in the same request?
Does ignore.title also search the article body?
No. It only checks the headline.
How many values can each ignore parameter take?
Source domain, source ID, country code and author-name exclusions use up to three values; extras are dropped. ignore.title accepts multiple terms within its 100-character total limit.
What happens if I exclude a domain APITube doesn’t track?
The request returns 400 ER0215. Check the domain rather than assuming an unknown exclusion will be ignored.
Can I include and exclude in the same request?
Yes. For example, select a publisher with source.domain and exclude its headlines containing a term with ignore.title.