---
title: "CSV Column Extractor"
method: POST
path: "/api/v1/tools/csv-column-extractor"
tags: ["tools"]
---

# CSV Column Extractor

`POST /api/v1/tools/csv-column-extractor`

## Request

- Base URL: `https://toolforte.com`
- URL: `https://toolforte.com/api/v1/tools/csv-column-extractor`
- Auth: HTTP bearer

Keep, drop or reorder the columns of a CSV. Columns are named by header text or by 1-based position, and the order they are asked for is the order they come back in, so the same call also reorders. The delimiter is detected when not given, quoted fields holding commas and line breaks survive, and the result is either CSV or one value per line.

## Request body

- object
  - `csv` string
  - `columns` string[]
  - `exclude` boolean
  - `delimiter` string
  - `firstRowHeader` boolean
  - `format` string

## Response `200`

Successful result

- object
  - `ok` boolean
  - `data` object
    - `result` string
    - `headers` string[]
    - `columns` integer
    - `rows` integer
    - `delimiter` string

## Other responses

- `400`: Missing or invalid request fields
- `401`: Invalid or missing API key
- `429`: Monthly plan limit reached

---

[API](https://skmtc.dev/toolforte/apis/toolforte-api.md) · [All operations](https://skmtc.dev/toolforte/apis/toolforte-api/llms.txt) · [OpenAPI document](https://skmtc.dev/toolforte/apis/toolforte-api/revisions/4d814d484dfc?raw)
