{"uid":"cap_E0ozb9IbLwvkzmErOHyL6","slug":"pastable-x402-csv-to-json-converter-e494d0fc","name":"pastable-x402 CSV to JSON Converter","description":"Pay-per-call utility APIs for agents: EVM helpers (checksum, unit conversion, keccak), data transforms (CSV to JSON, JSON diff, URL canonicalisation), text tools (hashing, JWT decode), and Bazaar market intelligence. x402 on Base mainnet.","url":"https://pastable-x402.pages.dev/data/csv-to-json","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["csv"],"properties":{"csv":{"type":"string","description":"string"},"delimiter":{"type":"string","description":"string, default ,"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object"}}},"responseSchema":{"type":"json","example":{"data":[{"city":"London","name":"Ada"}],"rows":1,"columns":["name","city"]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_d9e5TY_djZeevCdSOQCP2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a CSV string into structured JSON with rows, column names, and typed data values","exampleAgentPrompt":"Can you convert this CSV string to JSON for me — 'name,city\\nAda,London\\nBob,Paris' — using a comma as the delimiter?","exampleUseCases":[{"title":"Spreadsheet export ingestion pipeline","prompt":"I exported a spreadsheet as CSV and need it as JSON so I can feed it into my downstream API — here's the CSV text: 'id,product,price\\n1,Widget,9.99\\n2,Gadget,24.99'. Can you convert it?"},{"title":"TSV data from analytics tool","prompt":"I've got tab-separated data from our analytics tool and need it as JSON: 'user\\tevent\\ttimestamp\\nalice\\tclick\\t2024-01-01'. Use tab as the delimiter."},{"title":"Quick CSV structure inspection","prompt":"What columns and rows are in this CSV? 'country,population,gdp\\nUSA,331000000,21000\\nGermany,83000000,3800' — parse it into JSON so I can see the structure."}],"resultDescription":"Returns a JSON object containing a 'data' array of objects (one per CSV row, keyed by column headers), a 'rows' integer count of data rows, and a 'columns' array of column name strings.","failureModes":["Missing 'csv' query parameter returns an error","Malformed CSV (mismatched quotes, inconsistent columns) may produce unexpected results","Very large CSV strings may be truncated or rejected","Wrong delimiter specified causes all data to land in a single column","Payment failure via x402 (insufficient USDC balance) blocks the call"],"whenToPreferThis":"Use this endpoint when an agent needs to quickly parse a CSV string into JSON at runtime without standing up a local parser, especially in lightweight agent workflows on Base mainnet using x402 micropayments. Ideal for one-off conversions where importing a CSV library is impractical. Prefer this over general-purpose code execution if you want a deterministic, low-latency data transform for $0.02 USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:44:38.497Z","isFirstParty":false}