Skip to content
data · documents · data · csv-to-json · json-to-csv · ndjson-jsonl · tsv-to-json · yaml-to-json · data-format-converter · data-conversion · parse · serialize · records · convert · csv · tsv · json · jsonl · ndjson · yaml · transform

Data conversion

Convert caller-supplied CSV, TSV, JSON, JSON Lines (NDJSON), or YAML with optional root preservation, deterministic integrity hashes, JSON-encoded nested tabular cells, and explicit rejection of ambiguous duplicate keys or non-finite numbers.

$0.005 USDCBase + Solanax402 v2POSTCustomer-evidenced
Pay $0.005 USDC and run in your browserView free result sample

Endpoint

https://apiacre.com/v1/data/convert

Send the JSON body below. An unpaid request returns HTTP 402 with a PAYMENT-REQUIRED header; an x402-compatible buyer signs the requirement and retries with PAYMENT-SIGNATURE.

Pay $0.005 USDC and run in your browser

Official Coinbase agent path

Coinbase Agentic Wallet can satisfy this x402 request in one command. Running it may pay automatically, so --max-amount is fixed to $0.005 USDC in atomic units. Copying the command does not install, authenticate, sign, or pay; review the request and use a separate low-value wallet before running it.

npx --yes awal@latest x402 pay https://apiacre.com/v1/data/convert \
  -X POST \
  -d '{"content":"name,score\nAda,98","format":"csv","target_format":"json"}' \
  --max-amount 5000 \
  --json

Coinbase pay-for-service documentation · Buyer setup and wallet safety

Alternative third-party AgentCash commands

Run check first without payment. Its fetch command may automatically pay up to the exact listed price.

npx --yes agentcash@latest check https://apiacre.com/v1/data/convert
npx --yes agentcash@latest fetch https://apiacre.com/v1/data/convert \
  --method POST \
  --header 'content-type: application/json' \
  --body '{"content":"name,score\nAda,98","format":"csv","target_format":"json"}' \
  --payment-protocol x402 \
  --payment-network base \
  --max-amount 0.005

AgentCash CLI documentation

Input example

{
  "content": "name,score\nAda,98",
  "format": "csv",
  "target_format": "json"
}

Response shape

View free static sample JSON

{
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "data.convert",
  "version": "1",
  "data": {
    "sourceFormat": "csv",
    "format": "json",
    "content": "[\n  {\n    \"name\": \"Ada\",\n    \"score\": \"98\"\n  }\n]",
    "rows": 1,
    "inputSha256": "bae2475f86fa2343a9611424d3c2475e454b639c71da96a788602528e0937bea",
    "outputSha256": "faeabfb2a327ba5d4ad8496da70414d873499b57241fab51fe88c705617410bd",
    "conversion": {
      "version": "apiacre-data-convert/3",
      "rootMode": "records",
      "sourceRoot": "array",
      "nodesProcessed": 4,
      "nonStringKeysNormalized": 0,
      "dateTimeScalarsNormalized": 0,
      "nestedTabularCellsJsonEncoded": 0,
      "deterministic": true,
      "networkRequestsMade": 0
    },
    "warnings": []
  },
  "meta": {
    "duration_ms": 42,
    "cached": false,
    "sources": [],
    "warnings": [],
    "next_actions": [
      {
        "service": "data.schema",
        "title": "JSON Schema generator",
        "reason": "Infer a reusable Draft 2020-12 contract from the converted records.",
        "method": "POST",
        "path": "/v1/data/schema",
        "price": "$0.025",
        "input_template": {
          "content": "$result.data.content",
          "format": "$result.data.format",
          "root_mode": "records"
        },
        "use_output": "Persist result.data.schema and use its input fingerprint to identify the converted source used for inference.",
        "handoff_path": "/catalog/data.schema",
        "checkout_path": "/try/data.schema",
        "sample_path": "/samples/data.schema",
        "maximum_atomic_usdc": "25000",
        "handoff_payment_required": false,
        "executes_automatically": false,
        "authorization_required": true
      }
    ]
  }
}

Complete recipes using this API

These buyer-controlled recipes connect this service to compatible API Acre results. Every step has its own exact price and requires separate authorization.

Continue this workflow

These optional follow-ups use this result in a larger workflow. Each call shows a fresh x402 challenge and requires separate buyer authorization.

Try the payment challenge

curl -i -X POST 'https://apiacre.com/v1/data/convert' \
  -H 'content-type: application/json' \
  --data '{"content":"name,score\nAda,98","format":"csv","target_format":"json"}'