How to Combine Multiple Filters in One Request
Use several filters together to narrow a news search
Written by Kent Hudson
June 27, 2026
Updated October 16, 2026
How to combine multiple filters in one request
Add filter parameters to the same request. An article must meet each condition: for example, English language, a chosen category and a publication date. List filters can accept several alternative values.
curl "https://api.apitube.io/v1/news/everything?language.code=en&category.id=medtop:15000000&published_at.start=2026-06-01&sort.by=published_at&per_page=50&api_key=YOUR_API_KEY"
This finds English Sport articles published since June 1, 2026, newest first, with up to 50 results per page. The page size must fit your plan. You can also send your key in the X-API-Key header.
How does APITube combine multiple filters?
Different filters usually combine with AND: both conditions must be true. For list filters such as language and category, comma-separated values mean OR: any listed value can match.
For example, language.code=en,fr&category.id=medtop:15000000 means “English or French, and Sport.” Check each parameter’s rules before using commas. A headline keyword search, for example, has its own matching rules.
How to combine filters in one request
Separate query parameters with &:
curl "https://api.apitube.io/v1/news/everything?source.domain=theguardian.com&language.code=en&category.id=medtop:15000000&sentiment.overall.polarity=positive&sort.by=relevance&per_page=25&api_key=YOUR_API_KEY"
This selects positive Sport articles in English from theguardian.com, then ranks the matches by relevance. For relevance to a headline term, also provide title.
Sorting changes the order; pagination chooses the page. The default order is newest first. Set a date range to restrict when articles were published, and use pagination to retrieve more matches.
What happens if one filter in the request is invalid?
An invalid filter can cause the entire request to return an error. For example, an unknown category.id returns HTTP 400 with ER0206; an unknown source.domain returns ER0214.
Check the HTTP status and error code before treating a response as “no results.” If a combined request fails, test the filters separately to find the bad value.
How to exclude results while combining filters
Supported ignore. parameters remove matches. For example, keep English Sport articles while excluding one publisher:
curl "https://api.apitube.io/v1/news/everything?language.code=en&category.id=medtop:15000000&ignore.source.domain=theguardian.com&api_key=YOUR_API_KEY"
ignore.category.id, ignore.language.code and ignore.source.domain accept lists like their inclusion versions. An unknown excluded domain returns ER0215. See how to exclude keywords or sources for more options. Not every filter has an ignore. version.
Does the order of filters in the URL matter?
No. Reordering distinct parameters does not change their meaning. Group them in a way that makes the request easy to read, such as subject first, then language and dates, then sorting and pagination.
Common Questions
- Do different filters use AND or OR?
- How many values can I pass to one filter?
- Why does my multi-filter request return an error?
- Can I sort and paginate a filtered request?
Do different filters use AND or OR?
Different filters generally use AND. Supported comma-separated lists use OR within that parameter. For example, an article can be English or French while also belonging to the Sport category.
How many values can I pass to one filter?
Common list filters, including language.code, category.id and source.domain, use up to three comma-separated values. Values after the third are ignored. Check the individual filter guide for exceptions.
Why does my multi-filter request return an error?
One of the parameters may have an invalid value. Read the error code, test that parameter on its own and then rebuild the combined request.
Can I sort and paginate a filtered request?
Yes. Add sort.by, sort.order, page and per_page. Maximum page sizes are 10 on Free, 50 on Starter, 200 on Basic and 250 on Professional or Corporate.