Skip to content
Free static example · no wallet required

Dataset cleaning

Inspect the exact response envelope first. When you need current analysis for your own input, one successful x402 call costs $0.01 USDC on Base or Solana.

No accountNo subscriptionExact USDC priceFresh calls only are paid
Full response envelope

What you receive

Demonstration data only. The paid endpoint returns a fresh result and settlement receipt.

{
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "data.clean",
  "version": "1",
  "data": {
    "records": [
      {
        "name": "Ada",
        "score": "98"
      }
    ],
    "rows": 1,
    "inputSha256": "421bdab658ee74ca45a19d7f7dbeb56ca7a52f249d7a8a7270eb9c633b5b04c4",
    "outputSha256": "952b31f519c09cf5c34d4ea6439175e6e77411228788aed1af6bec103155a465",
    "cleaning": {
      "version": "apiacre-data-clean/2",
      "sourceFormat": "csv",
      "trimStrings": true,
      "emptyStringsAsNull": true,
      "normalizeHeaders": true,
      "headerFieldsNormalized": 0,
      "stringsTrimmed": 1,
      "emptyStringsConvertedToNull": 0,
      "nodesProcessed": 4,
      "nonStringKeysNormalized": 0,
      "dateTimeScalarsNormalized": 0,
      "outputCanonicalization": "json-sort-keys-compact-utf8",
      "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 cleaned records.",
        "method": "POST",
        "path": "/v1/data/schema",
        "price": "$0.025",
        "input_template": {
          "content": "$json($result.data.records)",
          "format": "json",
          "root_mode": "records"
        },
        "use_output": "Persist result.data.schema and compare its input fingerprint with the cleaned-record artifact retained by the buyer.",
        "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
      }
    ]
  }
}
Example request

Input JSON

{
  "content": "name,score\n Ada ,98",
  "format": "csv"
}
Delivery contract

One paid POST

Clean CSV, TSV, JSON, JSON Lines, or YAML records with collision-safe header normalization, deterministic integrity hashes, and exact transformation counts.

POST /v1/data/clean

Inspect validation rules and output schema

Need current data?

Run this exact service.

The checkout verifies the request, selected network, USDC asset, recipient, and price before opening a wallet.

Continue · $0.01 USDC