APITube Help Center

How to Filter News by Author

Select bylines by name or ID, or require author attribution

Tasha Tatum

Written by Tasha Tatum

June 26, 2026

Updated October 16, 2026

Open this example in the API Playground ↗

How to filter news by author

Use author.name for a recognized byline or author.id for its numeric ID. Up to three comma-separated values match with OR. Authors can be people or agencies such as Reuters.

curl "https://api.apitube.io/v1/news/everything?author.name=Reuters&api_key=YOUR_API_KEY"

Send your key through api_key or X-API-Key. Without author conditions, the search also includes unattributed articles.

What is the author.name parameter?

It selects recognized author names, each 1–100 characters. Invalid length returns 400 ER0071; an unknown name returns ER0204 and stops the request.

Copy a name or ID from an article’s author object to avoid guessing its spelling.

How to filter by one or more authors

Use a name or list:

curl "https://api.apitube.io/v1/news/everything?author.name=AFP,Reuters&api_key=YOUR_API_KEY"

Only the first three values are applied. Add language, dates or sorting as needed:

curl "https://api.apitube.io/v1/news/everything?author.name=Reuters&language.code=en&sort.by=published_at&sort.order=desc&api_key=YOUR_API_KEY"

How to filter by author ID instead of name

Use numeric IDs:

curl "https://api.apitube.io/v1/news/everything?author.id=12345,67890&api_key=YOUR_API_KEY"

IDs must be numeric and 1–20 characters. Invalid values return ER0064; invalid length returns ER0066. An ID without matching articles can return an empty list, so use a known ID rather than assuming any number is valid.

How to exclude specific authors

Use ignore.author.name or ignore.author.id:

curl "https://api.apitube.io/v1/news/everything?ignore.author.name=AFP,Reuters&api_key=YOUR_API_KEY"

Both accept up to three values. Unknown excluded names return ER0205. Invalid excluded IDs return ER0067, or ER0069 for length. Excluded names have the same 1–100-character limit (ER0073).

How to require or exclude an attributed author

Use has_author=1 for attributed articles, or 0 for articles without attribution:

curl "https://api.apitube.io/v1/news/everything?has_author=1&category.id=medtop:04000000&api_key=YOUR_API_KEY"

Other values return 400 ER0070. Combine this with a category filter for a subject-specific search. A byline indicates attribution rather than proving article quality.

What does the author object in the response contain?

Articles include author information:

{
    "author": {
        "id": 12345,
        "name": "Reuters"
    }
}

Reuse id or name in a follow-up search. An unattributed article has a null author ID. Add a source filter to select a publisher too.

Common Questions

How many authors can I filter by at once?

Three per inclusion or exclusion parameter. Extra values are dropped.

Should I use author.name or author.id?

Use a recognized name for readability or an ID copied from a response for a specific byline. An incorrect ID can still match nothing.

What error do I get for an unknown author?

An unknown name returns 400 ER0204, or ER0205 for exclusion. Check spelling or copy the ID from an article.

How do I find articles that have no author?

Use has_author=0. Use 1 for the opposite.


Related Articles