How to export your API logs
Download filtered request history as CSV or JSON
Written by Brian Hollis
June 28, 2026
Updated October 16, 2026
How to export your API logs
Open Logs, set the filters you want, click Export, and choose CSV or JSON. The download includes matching requests for the selected workspace and mode, up to 100,000 rows. Exporting uses no API credits.
Exported files are not masked. They can contain API keys sent in request URLs or parameters, so keep the files private.
How do you export your logs?
- Set the date range, type, status, key, and search filters.
- Click Export in the toolbar.
- Choose CSV or JSON.
The filename is api-logs-<date>.csv or api-logs-<date>.json, using the end date of your selected range.
To include more history, clear filters or widen the date range before exporting. See how to view and search request logs.

What’s the difference between the CSV and JSON export?
CSV has six columns, in this order: created_at, request_type, api_key_id, cost, uri, and params. Parameters appear as JSON text in a cell. Commas, quotes, and line breaks are escaped for spreadsheets.
JSON includes the complete records, with those fields plus status, latency_ms, ip, country, and result_count.
Choose CSV for a compact spreadsheet. Use JSON if you need response codes, timings, location, or article counts for analysis.
Does the export include all my logs or just the filtered view?
It uses the current filters, workspace, and Test/Live mode. If more than 100,000 rows match, the download contains the newest 100,000 and includes the response header X-Truncated: 100000.
Split larger histories into smaller date ranges and export each one. See track your usage and quota to compare usage totals.
Is my API key safe in the exported file?
The file does not mask secrets like the on-screen view does. If a request used api_key=... in the URL or parameters, the full value can appear in uri and params.
Check the file before sharing it and replace any secrets. If a live key has been exposed, regenerate it. Sending keys in the X-API-Key header keeps them out of the request URL.
Who can export logs, and does it cost anything?
All workspace roles can export: owner, admin, member, and viewer. Exports cost no requests or credits and do not use your News API rate limit.
The workspace audit log records exports as logs.export, including the format, row count, date range, and whether the file was truncated.
Common Questions
- What columns are in the CSV export?
- Why does my export look incomplete?
- Does exporting logs use any of my quota?
- Is my API key hidden in the file?
What columns are in the CSV export?
created_at, request_type, api_key_id, cost, uri, and params. Choose JSON for status, latency, IP, country, and result counts.
Why does my export look incomplete?
Check your filters, date range, workspace, and mode. The other limit is 100,000 rows per file. For more, export smaller date ranges separately.
Does exporting logs use any of my quota?
No. Log exports use no API requests or credits.
Is my API key hidden in the file?
No. A key sent in the URL or parameters can appear in plain text. Keep the file private, remove secrets before sharing, and replace any exposed keys.