---
title: Convert JSON to CSV API
slug: json-to-csv
url: https://apyhub.com/apyhub/service/json-to-csv
provider: ApyHub
categories: [Developer Tools, File Conversion]
tags: [json-conversion, csv-conversion, data-export, file-conversion, data-transformation]
auth: api_key
---

# Convert JSON to CSV API

Convert JSON objects, arrays, files, or URLs into CSV. Get inline text, a downloadable file, or a pre-signed S3 URL for exports.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/convert/json-url/csv-raw` | What it does Converts the JSON document available at the supplied URL into CSV and returns the conv… | 50 |
| POST | `/convert/json-url/csv-file` | What it does Converts JSON fetched from a public URL into a downloadable CSV file. Query Parameter(… | 50 |
| POST | `/convert/json-url/csv-url` | What it does Converts JSON content from a publicly accessible URL into a CSV file and returns a pre… | 50 |
| POST | `/convert/json-file/csv-file` | What it does Converts an uploaded JSON file into a downloadable CSV file. You send the JSON file in… | 50 |
| POST | `/convert/json-raw/csv-raw` | What it does Converts a raw JSON object or a non-empty array of JSON objects in the request body in… | 50 |
| POST | `/convert/json-file/csv-raw` | What it does Converts an uploaded JSON file into CSV and returns the converted content inline in th… | 50 |
| POST | `/convert/json-file/csv-url` | What it does Converts an uploaded JSON file into a CSV file and returns a pre-signed S3 URL for the… | 50 |
| POST | `/convert/json-raw/csv-file` | What it does Converts a raw JSON payload into a downloadable CSV file. The request body must be eit… | 50 |
| POST | `/convert/json-raw/csv-url` | What it does Converts a raw JSON payload into a CSV file and returns a pre-signed S3 URL where the… | 50 |

## About

## What it does
JSON to CSV converts JSON objects, JSON arrays, or JSON files into CSV output. You can send raw JSON in the request body, upload a JSON file, or point the service at a public JSON URL, then choose whether you want the result inline, as a downloadable file, or as a pre-signed S3 URL.

Use JSON to CSV when you need to flatten API responses, export records for spreadsheets, or move structured data into tools that expect comma-separated values. The raw-body endpoints accept either a JSON object with at least one property or a non-empty array of JSON objects. The file and URL endpoints accept JSON input from an uploaded file or a public URL, and the file-based responses return a downloadable CSV binary.

If you need a URL-based workflow, the signed-URL variants return an object with a `data` field containing a pre-signed S3 URL to the converted file. If you prefer to handle the output directly in your app, use the inline endpoints, which return the CSV as a string.

JSON to CSV is a practical fit for reporting pipelines, lightweight ETL jobs, admin exports, and any integration where tabular output is easier to store or review than nested JSON.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/json-to-csv
