{"uid":"cap_6L9Zu_MCiV8EP4mydPUP9","slug":"boring-api-convert-csv-to-json-a2c49d6f","name":"boring-api · convert: CSV to JSON","description":"Document and data format conversions via Pandoc, Chromium-headless, and pure-JS libs. Text inputs/outputs are JSON-fielded; binary inputs/outputs use base64 in JSON for uniformity.","url":"https://convert.boring-api.com/csv-to-json","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"content":{"type":"string"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_itWHAhWcGRmubsJjBRSDB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","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 a JSON representation using pure-JS conversion libraries","exampleAgentPrompt":"Can you convert this CSV data into JSON for me? Here's the content: 'name,age,city\\nAlice,30,New York\\nBob,25,Boston'","exampleUseCases":[{"title":"Transform spreadsheet exports for database ingestion","prompt":"I've got a CSV export from our sales spreadsheet with customer names, emails, and order amounts. Can you convert it to JSON so I can batch-load it into our database?"},{"title":"Parse CSV data feeds into API payloads","prompt":"Our inventory system outputs CSV files every hour. Can you convert the latest one to JSON format so I can send it to our backend API for processing?"},{"title":"Reformat legacy data for downstream processing","prompt":"I have a CSV file with historical user records that needs to be transformed into JSON before I feed it into our analytics pipeline. Can you handle that conversion for me?"}],"resultDescription":"A JSON object containing the parsed and structured representation of the input CSV data, with headers mapped to keys and rows mapped to value arrays or objects","failureModes":["Malformed or invalid CSV input returns an error response","Empty content field may return empty result or error","CSV with inconsistent column counts may produce misaligned JSON","Non-UTF-8 encoded content may cause parsing failures","Payment not accepted (402) if x402 payment header is missing or invalid"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap, serverless CSV-to-JSON conversion without setting up your own parser. Ideal for agents processing CSV exports from spreadsheets, databases, or data pipelines that need structured JSON for downstream API calls or storage. At $0.0005 per call it is cost-effective for high-volume transformation tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:35:11.285Z","isFirstParty":false}