Docs

CSV Validator

Check CSV for duplicate headers, ragged rows, and type inference.

Overview

Validates CSV structure: duplicate headers, ragged rows, and per-column type/null/unique stats.

Features

  • Duplicate header detection.
  • Ragged row detection.
  • Per-column stats.

Use cases

  • Validating a vendor export.
  • Catching structural issues.

API reference

POST /api/v1/tools/csv-validate

Validate CSV structure: duplicate headers, ragged rows, type inference, and per-column null/unique stats.

Returns: A validity flag, a list of structural issues, and per-column statistics (type, nulls, unique count).

Parameters

NameTypeRequiredDefaultDescription
input string Yes — The CSV to validate.

Example

curl -X POST https://data-migration-tools.com/api/v1/tools/csv-validate \
  -H "Content-Type: application/json" \
  -d '{"input":"id,name\n1,Ada\n2,Grace\n3,"}'

See the full API reference for all examples and error codes.