77trust / 100

Data Csv To Json

by ManyLives Tools in Documents & files

x402 APIPassing, checked 3 h ago

Convert CSV (or TSV) to JSON rows with the header row as keys; numbers and true/false are typed, quoted fields and embedded newlines handled. Up to 50,000 rows.

POST https://api.manylives.me/paid/data/csv-to-json

Last 30 days

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

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://api.manylives.me/paid/data/csv-to-json' \
  -H 'content-type: application/json' \
  --data-raw '{"csv":"name,price\npen,1.5\nnotebook,4"}'
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%2Fapi.manylives.me%2Fpaid%2Fdata%2Fcsv-to-json
const res = await pay("https://api.manylives.me/paid/data/csv-to-json", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"csv\":\"name,price\\npen,1.5\\nnotebook,4\"}",
});
console.log(await res.json());

Example input

{
  "csv": "name,price\npen,1.5\nnotebook,4"
}

Example output

{
  "columns": [
    "name",
    "price"
  ],
  "row_count": 2,
  "rows": [
    {
      "name": "pen",
      "price": 1.5
    },
    {
      "name": "notebook",
      "price": 4
    }
  ]
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402454 ms$0.002
7 h agoPassed402471 ms$0.002
10 h agoPassed402520 ms$0.002
14 h agoPassed402404 ms$0.002
18 h agoPassed402571 ms$0.002
22 h agoPassed402632 ms$0.002
25 h agoPassed402409 ms$0.002
29 h agoPassed402396 ms$0.002
33 h agoPassed402468 ms$0.002
36 h agoPassed402383 ms$0.002
40 h agoPassed402387 ms$0.002
44 h agoPassed402383 ms$0.002
2 days agoPassed402493 ms$0.002
2 days agoPassed402371 ms$0.002
2 days agoPassed402406 ms$0.002