---
title: Convert and Parse Raw CSV API
slug: convert-and-parse-raw-csv
url: https://apyhub.com/freedailypro/service/convert-and-parse-raw-csv
provider: FreeDailyPro
tags: [csv, data-conversion, converter, text-to-csv, data-formatting]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 1
atoms: 10
mcp: true
---

# Convert and Parse Raw CSV API

Easily parse CSV, convert it to JSON or build CSV from rows using the Convert and Parse Raw CSV API. Supports quoted fields and custom delimiters.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/freedailypro/convert-and-parse-raw-csv/text/csv` | What it does Converts data between CSV and structured formats, chosen with operation: parse turns C… | 10 |

## Endpoint reference

### CSV Parse, Build & Convert to JSON

`POST https://api.eu.apyhub.com/freedailypro/convert-and-parse-raw-csv/text/csv` · 10 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `rows` | body | array of array | no | Rows of cells. Example: `[["Ann","30"],["Bob","25"]]`. |
| `text` | body | string | no | CSV text to convert. Example: `name,age
Ann,30
Bob,25`. |
| `headers` | body | array of string | no | Column names. Example: `["name","age"]`. |
| `delimiter` | body | string | no | One character that separates cells. Default: `,`. Example: `;`. |
| `operation` | body | string | yes | The conversion to run. One of: parse, stringify, toJson. Example: `parse`. |

#### Quickstart

Convert CSV text into JSON with the required `operation` set to `toJson`.

```bash
curl -X POST "https://api.eu.apyhub.com/freedailypro/convert-and-parse-raw-csv/text/csv" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"operation":"toJson","text":"name,age\njohn,30\nleo,28"}'
```

#### What you'll get back

The live response to the request above:

```json
{
  "tool": "CSV converter client and server side from freedailypro",
  "result": [
    {
      "name": "john",
      "age": "30"
    },
    {
      "name": "leo",
      "age": "28"
    }
  ]
}
```

## About

## What it does
CSV Parser converts CSV text into structured data and builds CSV from structured data. Send a `body` object with an `operation` of `parse`, `toJson` or `stringify`.

- `parse` returns an object with `headers` and `rows`.
- `toJson` returns an array of objects keyed by the header names.
- `stringify` returns CSV text built from `headers` and `rows`.

Use it when you need to accept spreadsheet data from users, normalize it before storing it, or generate CSV for export without writing your own parser. Quoted cells, escaped quotes and line breaks inside quotes are handled, and you can set a single-character `delimiter` such as `;` or a tab. Every value is returned as a string, with no number or date detection.

CSV Parser fits import flows, admin panels, data migration jobs and simple ETL steps where you need to move between human-edited CSV and machine-friendly JSON.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

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