How to Export News for Data Pipelines (JSONL, Parquet)
Download article records for data and analytics tools
Written by Jacob Partington
August 23, 2026
Updated October 16, 2026
How to export news for data pipelines (JSONL, Parquet)
Use export=jsonl to download one article object per line, or export=parquet for a file with typed columns. Both use your existing news filters and require a paid plan.
curl "https://api.apitube.io/v1/news/everything?title=tesla&export=jsonl&api_key=YOUR_API_KEY" -o results.jsonl
How do I export to JSONL (JSON Lines)?
Add export=jsonl to your request:
curl "https://api.apitube.io/v1/news/everything?language.code=en&export=jsonl&api_key=YOUR_API_KEY" -o news.jsonl
The download is named results.jsonl, with content type application/x-ndjson. Each line contains one complete article object, without the outer results wrapper. Nested objects and arrays stay intact.
export=ndjson returns the same file. You can read it one line at a time with tools such as jq, or import it into BigQuery, Snowflake or another data tool.
How do I export to Parquet?
Add export=parquet:
curl "https://api.apitube.io/v1/news/everything?category.id=medtop:04000000&export=parquet&api_key=YOUR_API_KEY" -o financial_news.parquet
The download is named results.parquet, with content type application/octet-stream. It has 29 fixed columns:
- Text fields, including
idandpublished_at, are strings. Convert dates or IDs after import if your tool needs another type. is_duplicate,is_freeandis_breakingare booleans.read_time,sentences_count,paragraphs_count,words_countandcharacters_countare 64-bit integers.
Column names use underscores, such as published_at. Nested fields, including categories, topics, industries, entities, sentiment, media, links and keywords, are JSON strings. Parse those strings when you need their contents.
Parquet works with tools such as pandas, DuckDB, Spark and Athena.
JSONL vs Parquet: which should I use?
Choose JSONL when you need complete article objects with nested fields. Choose Parquet when you want typed columns for analysis. For spreadsheets, see how to export news to CSV or Excel.
How many articles does one export return?
One export contains one page. per_page defaults to 100, or your plan’s maximum if lower. The maximum is 250 on Professional and Corporate, 200 on Basic or 50 on Starter. A larger value returns 400 ER0171.
Use page to download more results:
curl "https://api.apitube.io/v1/news/everything?title=tesla&per_page=250&page=2&export=jsonl&api_key=YOUR_API_KEY" -o news_page2.jsonl
Follow the pagination guide to collect multiple pages. Each page costs the same as its JSON request; the format adds no charge.
Common Questions
- Which endpoints support JSONL and Parquet export?
- What is the difference between jsonl and ndjson?
- Does the export keep nested fields like entities and sentiment?
- What other export formats are available?
Which endpoints support JSONL and Parquet 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.
Count and trends endpoints return JSON. See the official parameter reference for search options.
What is the difference between jsonl and ndjson?
There is no difference. Both return the same line-delimited JSON file.
Does the export keep nested fields like entities and sentiment?
Yes. JSONL keeps their original structure. Parquet stores them as JSON strings that you can parse after import.
What other export formats are available?
The API also supports CSV, TSV, XLSX, XML and RSS. Leave out export, or use export=json, for the usual JSON response.