{
  "x402Version": 2,
  "id": 2589,
  "slug": "2589",
  "resource": "https://apiacre.com/v1/data/clean",
  "description": "Clean CSV, TSV, JSON, JSON Lines, or YAML records with collision-safe header normalization, deterministic integrity hashes, and exact transformation counts.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xa0BFa4f07281c9b248DC3AED2217836BcA24869B",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "B4CHWQeQn7GDLZD2aW6hpGG2bEseisBFLZYECA3HDLan",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "content": "name,score\n Ada ,98",
            "format": "csv"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "cleaning": {
                "emptyStringsAsNull": true,
                "normalizeHeaders": true,
                "sourceFormat": "csv",
                "trimStrings": true,
                "version": "apiacre-data-clean/2"
              },
              "inputSha256": "421bdab658ee74ca45a19d7f7dbeb56ca7a52f249d7a8a7270eb9c633b5b04c4",
              "outputSha256": "952b31f519c09cf5c34d4ea6439175e6e77411228788aed1af6bec103155a465",
              "records": [
                {
                  "name": "Ada",
                  "score": "98"
                }
              ],
              "rows": 1,
              "warnings": []
            },
            "meta": {
              "cached": false,
              "duration_ms": 42,
              "next_actions": [
                {
                  "method": "POST",
                  "path": "/v1/data/schema",
                  "reason": "Infer a reusable Draft 2020-12 contract from the cleaned records.",
                  "service": "data.schema",
                  "title": "JSON Schema generator"
                }
              ],
              "sources": [],
              "warnings": []
            },
            "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
            "service": "data.clean",
            "version": "1"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "content": {
                    "type": "string"
                  },
                  "empty_to_null": {
                    "type": "boolean"
                  },
                  "format": {
                    "enum": [
                      "csv",
                      "tsv",
                      "json",
                      "jsonl",
                      "yaml"
                    ],
                    "type": "string"
                  },
                  "normalize_headers": {
                    "type": "boolean"
                  },
                  "trim_strings": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "content",
                  "format"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "additionalProperties": false,
                    "properties": {
                      "cleaning": {
                        "type": "object"
                      },
                      "inputSha256": {
                        "type": "string"
                      },
                      "outputSha256": {
                        "type": "string"
                      },
                      "records": {
                        "items": {
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "rows": {
                        "type": "integer"
                      },
                      "warnings": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "records",
                      "rows",
                      "inputSha256",
                      "outputSha256",
                      "cleaning",
                      "warnings"
                    ],
                    "type": "object"
                  },
                  "meta": {
                    "properties": {
                      "cached": {
                        "type": "boolean"
                      },
                      "duration_ms": {
                        "type": "integer"
                      },
                      "next_actions": {
                        "items": {
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "sources": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "warnings": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "duration_ms",
                      "cached",
                      "sources",
                      "warnings",
                      "next_actions"
                    ],
                    "type": "object"
                  },
                  "request_id": {
                    "type": "string"
                  },
                  "service": {
                    "type": "string"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "required": [
                  "request_id",
                  "service",
                  "version",
                  "data",
                  "meta"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "payment-identifier": {
      "info": {
        "required": false
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "maxLength": 128,
            "minLength": 16,
            "pattern": "^[a-zA-Z0-9_-]+$",
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "required"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "payment-identifier"
  ],
  "sourceHost": "apiacre.com",
  "lastUpdated": "2026-08-31T16:17:57.818Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-08-31T16:17:57.324Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "apiacre.com",
    "manifest_name": "apiacre.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}