APITube Help Center

What Export Formats Are Available?

Download news as a spreadsheet, feed or data file

Jacob Partington

Written by Jacob Partington

August 23, 2026

Updated October 16, 2026

Open this example in the API Playground ↗

What export formats are available?

Add export to a news request to choose its format: CSV, TSV, Excel, XML, RSS, JSONL or Parquet. Your search filters stay the same. Without export, the API returns JSON.

Non-JSON formats require a paid plan. On Free, they return 403 ER0706. You can still use export=json or leave out the parameter.

curl "https://api.apitube.io/v1/news/everything?title=tesla&export=csv&api_key=YOUR_API_KEY" -o results.csv

Which export formats does APITube support?

Choose a value from this table. The response includes the matching Content-Type. Downloads also include a Content-Disposition header with the filename.

export valueOutputContent-Type
json (default)Standard paginated JSON responseapplication/json
csvComma-separated spreadsheet, results.csvtext/csv
tsvTab-separated spreadsheet, results.tsvtext/tab-separated-values
xlsxNative Excel workbook, sheet named Articlesapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
xmlNested XML document (served inline, without a Content-Disposition filename)application/xml
rssRSS 2.0 feed you can open in a readerapplication/xml
jsonlOne JSON object per line, results.jsonlapplication/x-ndjson
ndjsonAlias for jsonl — identical output, and the download is named results.jsonl tooapplication/x-ndjson
parquetTyped columnar file, results.parquetapplication/octet-stream

How do I change the export format?

Add export=<format> to your request. The file contains the articles that match your keywords, language, dates and other filters:

curl "https://api.apitube.io/v1/news/everything?category.id=medtop:04000000&export=xlsx&api_key=YOUR_API_KEY" -o financial_news.xlsx

An unknown format returns the usual JSON response. Send your API key through api_key or the X-API-Key header.

Which formats are flat, and which keep the full structure?

CSV, TSV, XLSX and Parquet put one article in each row, with 29 fixed columns. In spreadsheets, these 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 source and entities, are JSON strings inside a cell. Parquet uses names such as published_at and keeps separate types for strings, numbers and booleans.

XML and JSONL keep the nested article structure. JSONL writes one complete article object per line; ndjson is another name for the same format. For examples, see exporting news for data pipelines.

Which endpoints support export?

Use export 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.

These endpoints support the same formats. See the News API parameters documentation for search options.


Common Questions

How many articles does one export return?

Each export contains one page. Set per_page to choose the size: 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. A larger value returns 400 ER0171.

Use page to download more pages and combine the files:

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

Does exporting cost extra requests?

No. The endpoint costs the same as a JSON request. Choosing a file format adds no charge.

What’s the difference between JSONL and NDJSON?

There is no difference. export=jsonl and export=ndjson return the same file with the content type application/x-ndjson.

Which format should I choose?

  • JSON: use the response in an app.
  • CSV or XLSX: open articles in a spreadsheet.
  • TSV: use a spreadsheet with tabs between values.
  • RSS: subscribe to a search in a feed reader.
  • XML: send nested records to a system that accepts XML.
  • JSONL or Parquet: load articles into a data or analytics tool.

Related Articles