# CSV Profiler – Shape, Types & Quality Analysis

> CSV Profiler – Shape, Types & Quality Analysis is a paid API for AI agents from foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Profiles a caller-supplied CSV payload for row count, column count, inferred data types, missing values, uniqueness, and inconsistent row-width issues.

## Facts

- Endpoint: POST https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v1/csv/profile
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-profiler-shape-types-quality-analysis-a73d8b7e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oX25RRPW5VQz2nTKg0FWL

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability csv-profiler-shape-types-quality-analysis-a73d8b7e -d '<json body>'
```

Example prompt: Can you profile this CSV I'm about to upload and tell me the row count, column count, what types each column seems to be, whether there are any missing values, and if any rows have inconsistent widths?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call CSV profiling step before ingesting, transforming, or storing tabular data. It is well-suited for agent pipelines that need to validate CSV structure and quality without standing up a dedicated data profiling service. Prefer it over manual inspection or heavier ETL tools when a fast, structured quality summary is needed on a bounded (size-limited) CSV.

## Known failure modes

- CSV exceeds size or row bounds — returns error indicating payload is too large
- Malformed CSV that cannot be parsed — returns parse error with line indication
- Empty CSV with no rows — may return zeroed metrics or an error
- Missing required CSV body in POST request — returns 400 bad request
- Network timeout if CSV processing takes too long — returns timeout error

## How this service works

Pay-per-request evidence and data tools: CSV validation and reconciliation, DNS/email configuration evidence, and bounded official weather, earthquake, vehicle, company and study records. Exact USDC prices, explicit JSON contracts and source provenance. No mailbox, ownership, medical or safety guarantees.

## Output

Returns a JSON object with row_count, column_count, inconsistent_row_count, per-column inferred types, missing value counts, and uniqueness metrics for each column in the supplied CSV.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "columns": [
    {
     "name": "name",
     "examples": [
      "Ada",
      "Lin"
     ],
     "max_length": 3,
     "min_length": 3,
     "numeric_max": null,
     "numeric_min": null,
     "unique_count": 2,
     "inferred_type": "string",
     "null_or_empty_count": 0,
     "duplicate_nonempty_count": 0
    },
    {
     "name": "score",
     "examples": [
      "10"
     ],
     "max_length": 2,
     "min_length": 2,
     "numeric_max": 10,
     "numeric_min": 10,
     "unique_count": 1,
     "inferred_type": "integer",
     "null_or_empty_count": 1,
     "duplicate_nonempty_count": 0
    }
   ],
   "headers": [
    "name",
    "score"
   ],
   "delimiter": ",",
   "row_count": 2,
   "has_header": true,
   "column_count": 2,
   "input_sha256": "8d2f18a153292a78df165121ca2b8fb9989a2329356ae5e3ccd3749a8b1b3b70",
   "duplicate_headers": [],
   "inconsistent_rows": [],
   "inconsistent_row_count": 0
  },
  "service": "Foundry PAR-007",
  "version": "illustrative",
  "endpoint": "csv-quality-profile",
  "protocol": "x402-v2"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-profiler-shape-types-quality-analysis-a73d8b7e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev](https://www.zero.xyz/host/foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/llms.txt)
