Data Processing 2026-03-09

Export API Data: Format JSON → Convert to CSV → Diff Changes

Transform raw API JSON data into stakeholder-ready spreadsheets. Format the data, convert to CSV, then diff versions to track changes. A complete data export pipeline.

The Problem

Your stakeholders want API data in Excel or Google Sheets but the API returns minified JSON. You need to clean up the structure, convert to CSV, and track what changed since last week's export. Doing this manually takes 20 minutes every time.

Why This Matters

Data export pipelines are one of the most repeated developer tasks. Building a manual workflow using these three tools takes under 5 minutes and produces a clean, version-tracked spreadsheet — without writing a single line of code.

Step-by-Step Instructions

1

Format and clean the JSON response

Paste the raw API JSON into the JSON Formatter. Pretty-print it and verify the structure. Check that the data is an array of flat objects — nested objects will need to be flattened before CSV conversion.

2

Convert the JSON array to CSV

Copy the formatted JSON array and paste it into the JSON to CSV Converter. It auto-detects column headers from object keys. Download the CSV or copy it directly into Google Sheets.

3

Diff this export against last week's

Paste last week's CSV in the left panel and this week's in the right panel of the Diff Checker. Instantly see which records were added, modified, or removed.

Try It Now — JSON Formatter

Open full page →
JSON Formatter — Live Demo

All processing happens in your browser — no data is sent to any server.

Before & After Example

Minified API JSON (impossible to turn into a report)
[{"id":1,"name":"Alice","plan":"pro","mrr":49,"churn":false},{"id":2,"name":"Bob","plan":"starter","mrr":9,"churn":true},{"id":3,"name":"Carol","plan":"pro","mrr":49,"churn":false}]
Clean CSV ready for Google Sheets
id,name,plan,mrr,churn
1,Alice,pro,49,false
2,Bob,starter,9,true
3,Carol,pro,49,false

Frequently Asked Questions

What if my JSON has nested objects?

Use the JSON Formatter to inspect the nesting depth. For one level of nesting, the JSON to CSV converter will flatten it automatically. For deeper nesting, manually restructure the data in the formatter to flatten it first.

How do I automate this pipeline in Python?

Use requests to fetch the API, json to parse, and csv.DictWriter or pandas.DataFrame.to_csv() to export. For diff tracking, store snapshots and use difflib or compare DataFrames with pandas.

Can I import the CSV directly into Google Sheets?

Yes. In Google Sheets, use File → Import → Upload, select the CSV, and choose 'Replace spreadsheet' or 'Insert new sheet'. For recurring exports, use Google Sheets' built-in IMPORTDATA formula with a public URL endpoint.

Related Workflows

Try all 3 tools in this workflow

Each tool is free, runs in your browser, and requires no signup.

Related Workflow Guides