Data extraction

Extract structured data from CSV files

Upload CSV or TSV files and get structured JSON matching your schema. The API handles different delimiters, encoding issues, and messy real-world data.

How it works

1

Send your CSV file

Upload via the API or pass a URL. The API auto-detects the format.

2

Define your schema

Describe the fields you want as a JSON schema. The API maps your document to your structure.

3

Get structured JSON

Receive typed data with confidence scores and citations back to the source document.

Example request

curl -X POST https://dev.thedrive.ai/api/v1/extract \
  -H "X-API-Key: your_key" \
  -F "file=@document.csv" \
  -F 'schema={"columns": ["string"], "row_count": "number", "summary": "string"}'

CSV processing features

Delimiter detection

Auto-detects commas, tabs, semicolons, and other delimiters.

Encoding handling

Handles UTF-8, Latin-1, and other encodings without manual configuration.

Large file support

Processes large CSV files efficiently with streaming reads.

Start extracting from CSV files

Free tier includes 100 credits/month. No credit card required.