How to Export News to CSV or Excel
Download search results as a spreadsheet
Written by Jacob Partington
August 22, 2026
Updated October 16, 2026
How to export news to CSV or Excel
Add export=csv or export=xlsx to your news request to download a spreadsheet. Each article becomes one row with 29 columns. CSV and Excel exports require a paid plan.
curl "https://api.apitube.io/v1/news/everything?title=tesla&export=csv&api_key=YOUR_API_KEY" -o results.csv
How to export search results to CSV
Add export=csv to the search you want to download. Keep your usual filters:
curl "https://api.apitube.io/v1/news/everything?title=electric vehicle&language.code=en&export=csv&api_key=YOUR_API_KEY" -o ev_news.csv
The first row contains the column names. The API returns text/csv; charset=utf-8 and the filename results.csv.
How to export to Excel (XLSX)
Use export=xlsx to download an Excel workbook:
curl "https://api.apitube.io/v1/news/everything?category.id=medtop:04000000&export=xlsx&api_key=YOUR_API_KEY" -o financial_news.xlsx
The workbook has one sheet, Articles. The response uses application/vnd.openxmlformats-officedocument.spreadsheetml.sheet and the filename results.xlsx.
For a tab-separated file, use export=tsv. It returns text/tab-separated-values with the filename results.tsv.
What columns are in the exported file?
The 29 columns are ID, Href, PublishedAT, Title, Description, Body, Language, Author, Image, Categories, Topics, Industries, Entities, Source, Sentiment, Summary, Keywords, Links, Media, Story, IsDuplicate, IsAccessibleForFree, IsBreaking, ReadTime, SentencesCount, ParagraphsCount, WordsCount, CharactersCount and Translations.
Nested fields, such as Categories, Entities, Source and Sentiment, appear as JSON strings inside their cells. They do not expand into extra columns.
Which endpoints support CSV and Excel export?
Use either format with /v1/news/everything, /v1/news/top-headlines, /v1/news/local, /v1/news/story/:id, /v1/news/article, /v1/news/entity, /v1/news/category, /v1/news/topic or /v1/news/industry. Each uses the same columns.
How to control how many rows you get
An export contains one page of results. Set per_page to choose how many rows to request: up to 250 on Professional and Corporate, 200 on Basic or 50 on Starter. The default is 100, or your plan’s maximum if lower. Asking for more returns 400 ER0171.
Use page for the next file:
curl "https://api.apitube.io/v1/news/everything?title=tesla&per_page=250&page=2&export=csv&api_key=YOUR_API_KEY" -o results_page2.csv
See how to paginate through results and the official parameter reference.
Common Questions
- Is CSV or XLSX export available on every plan?
- How does export interact with field selection (fl)?
- What other export formats are available?
- What happens if I pass an unknown export value?
Is CSV or XLSX export available on every plan?
No. Both require a paid plan. A Free key returns 403 ER0706 for non-JSON formats.
How does export interact with field selection (fl)?
The spreadsheet keeps all 29 columns. Fields excluded by fl have empty cells. Leave out fl if you want all available values.
What other export formats are available?
You can also use TSV, XML, JSONL, NDJSON or Parquet, or turn your search into an RSS feed. Leave out export, or use export=json, for the default JSON response.
What happens if I pass an unknown export value?
The API returns JSON. It does not return an error for an unknown format.