---
title: Convert JSON to CSV API
slug: convert-json-to-csv
url: https://apyverse.com/apyhub/service/convert-json-to-csv
provider: ApyHub
auth: api_key
---

# Convert JSON to CSV API

What it does JSON to CSV converts JSON objects and JSON arrays into CSV, so you can turn structured data into a flat table for spreadsheets, warehouses, and downstream tools. Send raw JSON, upload a .json file, or point the service at a public JSON URL, and choose an inline response, a downloadable…

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/convert/json-url/csv-file` | What it does Converts JSON fetched from a public URL into a downloadable CSV file. You provide the… | 50 |
| POST | `convert/json-file/csv-raw` | What it does Converts an uploaded JSON file into CSV and returns the CSV inline in the response. Th… | 50 |
| POST | `convert/json-url/csv-raw` | What it does Fetches a JSON file from the URL you provide in the request body and converts it to CS… | 50 |
| POST | `/convert/json-url/csv-url` | What it does Converts a JSON file available at a public URL into a CSV file and returns a pre-signe… | 50 |
| POST | `/convert/json-file/csv-file` | What it does Converts an uploaded JSON file into a downloadable CSV file. The request sends a JSON… | 50 |
| POST | `/convert/json-file/csv-url` | What it does Converts an uploaded JSON file into CSV and returns a pre-signed S3 URL for the conver… | 50 |
| POST | `/convert/json-raw/csv-raw` | What it does Converts a raw JSON body into CSV and returns the CSV inline in the response. The requ… | 50 |
| POST | `/convert/json-raw/csv-file` | What it does Converts a raw JSON body into a CSV file and returns the result as a downloadable bina… | 50 |
| POST | `/convert/json-raw/csv-url` | What it does Converts a raw JSON object or a non-empty array of JSON objects into CSV and returns a… | 50 |

## About

## What it does

JSON to CSV converts JSON objects and JSON arrays into CSV, so you can turn structured data into a flat table for spreadsheets, warehouses, and downstream tools. Send raw JSON, upload a `.json` file, or point the service at a public JSON URL, and choose an inline response, a downloadable file, or a pre-signed S3 URL.

Use JSON to CSV when you need to export API responses, normalize webhook payloads, or hand data off to analysts who expect CSV. The raw JSON endpoints accept either a single JSON object with at least one property or a non-empty array of JSON objects. The file and URL-based endpoints accept a JSON file with MIME type `application/json`, or a public URL that serves JSON with `application/json`, `text/plain; charset=UTF-8`, or a `.json` file content-disposition.

The output is either CSV text, a downloadable CSV file, or an object containing `data`, a pre-signed S3 URL to the converted file. Pick the response shape that fits your pipeline: stream the CSV directly into your app, let users download it, or store it in object storage for later processing.

## Usage

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