API Acre · Data Convert

by API Acre

POSTBaseSolana

$0.005

per call · USD Coin on Base

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.

Endpoint

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

5

Calls / 30d

3

Unique payers / 30d

Aug 31

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://apiacre.com/v1/data/convert", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "content": "name,score\nAda,98",
    "format": "csv",
    "target_format": "json"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://apiacre.com/v1/data/convert" \
  -H "Content-Type: application/json" \
  -d '{"content":"name,score\nAda,98","format":"csv","target_format":"json"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "content": "[\n  {\n    \"name\": \"Ada\",\n    \"score\": \"98\"\n  }\n]",
    "conversion": {
      "nodesProcessed": 4,
      "nonStringKeysNormalized": 0,
      "rootMode": "records",
      "sourceRoot": "array",
      "version": "apiacre-data-convert/3"
    },
    "format": "json",
    "inputSha256": "bae2475f86fa2343a9611424d3c2475e454b639c71da96a788602528e0937bea",
    "outputSha256": "faeabfb2a327ba5d4ad8496da70414d873499b57241fab51fe88c705617410bd",
    "rows": 1,
    "sourceFormat": "csv",
    "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 converted records.",
        "service": "data.schema",
        "title": "JSON Schema generator"
      }
    ],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "data.convert",
  "version": "1"
}

Payment details

Pay to0xa0bfa4f07281c9b248dc3aed2217836bca24869b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Data & Enrichment and the homepage with a featured placement.

Get featured →

More from API Acre & similar services