# CSV Preflight Validator

> CSV Preflight Validator is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Validates a CSV HTTP endpoint before payment by checking column and row counts and reporting any flags

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/csv-preflight?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-preflight-validator-24a4dc7c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZtqWPMcQMfCYpnpj_iWOc

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-preflight-validator-24a4dc7c
```

Example prompt: Before I pay for that CSV data endpoint, can you do a preflight check on it using a GET request to make sure it's returning valid data and tell me how many rows and columns it has?

## When to prefer this

Use this endpoint when you need to validate the structure and health of a CSV-returning HTTP endpoint before making a paid call. It is especially useful in x402 pay-per-call workflows where you want to avoid wasting USDC on broken or unexpected data sources. Prefer this over blind calls when building data pipelines or when integrating an unfamiliar CSV API.

## Known failure modes

- Invalid or unsupported HTTP method returns validation error
- Endpoint unreachable results in network or timeout error
- CSV endpoint returns malformed data causing parsing failure
- Missing required 'type' or 'method' fields in input returns schema error
- Flags array may contain warnings even when ok is true

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

Returns a JSON object with: ok (boolean indicating success), cols (number of columns in the CSV), rows (number of rows in the CSV), and flags (an array of any warning or error flags detected in the response).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "cols": 2,
  "rows": 2,
  "flags": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-preflight-validator-24a4dc7c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
