Go to example tasks

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.

Try for free
Dataset Transformer: Filter, Dedupe, JSON to CSV
Dataset Transformer: Filter, Dedupe, JSON to CSVhumble-echidna/dataset-transform
Magnitude
Place
Latitude
Longitude
+2 fields
Text
Number
Boolean
List
Object

Input

Or: file URL or upload (CSV, JSON, JSONL or Excel):https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.geojson
JSON: path to the list of rows:features
Flatten nested objects:true
Fields to keep (and rename):properties.mag -> magnitude+5
Also save as a file:csv

Output fields

Magnitude
Place
Latitude
Longitude
Depth (km)
Details

How it works

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.

Image

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

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay