80trust / 100

Data Convert

by API Acre in Documents & files

x402 APIPassing, checked 1 h ago

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.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
185 ms typical, 272 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://apiacre.com/v1/data/convert" \
  -H "content-type: application/json" \
  -d '{"content":"name,score\nAda,98","format":"csv","target_format":"json"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapiacre.com%2Fv1%2Fdata%2Fconvert
const res = await pay("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"}),
});
console.log(await res.json());

Example input

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

Example output

{
  "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"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402185 ms$0.005
5 h agoPassed402155 ms$0.005
8 h agoPassed402208 ms$0.005
12 h agoPassed402215 ms$0.005
15 h agoPassed402272 ms$0.005
19 h agoPassed40283 ms$0.005
22 h agoPassed40285 ms$0.005
27 h agoPassed402157 ms$0.005
30 h agoPassed402195 ms$0.005
33 h agoPassed402116 ms$0.005
38 h agoPassed402373 ms$0.005