Convert a JSON API response to a CSV file
Turn nested JSON from an API into flat rows: pick the list inside the response, flatten nested fields, rename the columns you need and get a CSV file. This example converts the USGS feed of the last day's earthquakes. Swap in your own JSON URL and fields.
Input
Output fields
Sign up on Apify or log in
The Dataset Transformer: Filter, Dedupe, JSON to CSV Actor is ready to run with the inputs already set for "Convert a JSON API response to a CSV file". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Convert a JSON API response to a CSV file" task
The Dataset Transformer: Filter, Dedupe, JSON to CSV Actor will start running based on the input automatically. You can also change all the input fields, like or: file url or upload (csv, json, jsonl or excel), JSON: path to the list of rows, and more, to match your specific use case.
Receive the "Convert a JSON API response to a CSV file" output
Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as magnitude, place, latitude, and more.
Integrate into your workflow
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Convert a JSON API response to a CSV file" task via API.

Integrate "Convert a JSON API response to a CSV file" into your workflow
Connect "Convert a JSON API response to a CSV file" with 100+ integrations, or run it via API or MCP.
Webhook
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay