How to Return Only Specific Fields with fl
Keep just the article fields your application needs
Written by Kent Hudson
August 23, 2026
Updated October 16, 2026
How to return only specific fields with fl
Use fl to choose which article fields appear in a response. Send a comma-separated list such as fl=id,title,published_at. Use dots for nested values, for example source.domain.
curl "https://api.apitube.io/v1/news/everything?title=tesla&fl=id,title,published_at&api_key=YOUR_API_KEY"
Selecting fewer fields reduces the response size. You can also send your key in the X-API-Key header.
How does the fl parameter work?
Each article in results contains only the fields you request. With fl=id,title,published_at, a result looks like this:
{
"id": 1234567,
"title": "Tesla reports record quarterly deliveries",
"published_at": "2026-06-26T08:15:00.000Z"
}
fl applies to article objects. It does not remove the response’s status or pagination fields.
How to select nested fields with dot notation
Write the path to a value, such as source.domain or sentiment.overall.polarity:
curl "https://api.apitube.io/v1/news/everything?fl=id,source.domain,sentiment.overall.polarity&api_key=YOUR_API_KEY"
The response keeps the nested object structure:
{
"id": 1234567,
"source": { "domain": "reuters.com" },
"sentiment": { "overall": { "polarity": "positive" } }
}
You can mix top-level and nested fields: fl=title,author.name,source.bias. Add a source filter if you also want to restrict which publisher’s articles match.
Which endpoints support fl?
Use fl on article endpoints including /v1/news/everything, /v1/news/top-headlines, /v1/news/local, /v1/news/article, /v1/news/story/:id and category, topic, industry and entity listings. It also works on /v1/news/stream and /v1/news/ws.
curl "https://api.apitube.io/v1/news/top-headlines?fl=id,title,href,image&api_key=YOUR_API_KEY"
This example keeps the ID, title, link and main image from each headline result.
Common Questions
What happens if I request a field that does not exist?
Unknown fields are skipped. fl=id,foobar returns only id. If none of the names exist, each result is an empty object. Check spelling against the News API parameters reference.
Does fl reduce how many requests I am charged?
No. Field selection changes the response size, not the request charge. Retrieve only the fields you need to reduce downloads and simplify your application.
Can I use fl with CSV, XLSX and other exports?
Yes, but fixed-format exports keep their columns or elements. Unselected values may appear as empty cells or elements. For example, fl=id,title does not turn a CSV export into a two-column file. JSON article objects omit unselected keys.
Which errors can fl return?
HTTP 400 with ER0300 means fl is not a string. ER0301 means there are no usable field names, such as in fl=,,. Send a comma-separated string of field names.