{"uid":"cap_KddqvpfVjfandNIOK0jNN","slug":"proofwork-json-to-csv-converter-dad213b3","name":"Proofwork JSON to CSV Converter","description":"Small non-cyber evidence and data APIs payable per request with x402 on Base.","url":"https://proofwork-the402-webhook.phase-voice.workers.dev/v1/json-to-csv","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["rows"],"properties":{"rows":{"type":"string","description":"URL-encoded JSON array of flat objects"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"csv":"id,name,active\n1,Ada,\n2,Grace,true\n","report":"json_to_csv","columns":["id","name","active"],"row_count":2,"content_type":"text/csv"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2Gkvc3aRJDCPCvqnMForE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a URL-encoded JSON array of flat objects into CSV format, returning the CSV string along with metadata like column names and row count.","exampleAgentPrompt":"Can you convert this JSON array into a CSV for me? Here's the data: [{\"id\":1,\"name\":\"Ada\",\"active\":false},{\"id\":2,\"name\":\"Grace\",\"active\":true}]","exampleUseCases":[{"title":"Spreadsheet export from API data","prompt":"I have a JSON array of user records like [{\"id\":1,\"name\":\"Ada\",\"active\":false},{\"id\":2,\"name\":\"Grace\",\"active\":true}] — can you turn that into a CSV so I can open it in Excel?"},{"title":"Pipeline handoff to CSV consumer","prompt":"My data pipeline outputs JSON objects and I need to hand them off to a system that only accepts CSV. Can you take this array [{\"sku\":\"A1\",\"qty\":10,\"price\":5.99}] and give me the CSV version?"},{"title":"Quick report formatting for stakeholders","prompt":"I've got survey results as a JSON array and my manager wants a CSV. Can you convert [{\"respondent\":\"Alice\",\"score\":8,\"comment\":\"Great\"},{\"respondent\":\"Bob\",\"score\":6,\"comment\":\"Okay\"}] into CSV format?"}],"resultDescription":"Returns a JSON object containing: a `csv` string with headers and rows in comma-separated format, a `report` field identifying the operation, a `columns` array listing all column names detected, a `row_count` integer, and a `content_type` field set to 'text/csv'.","failureModes":["Missing or malformed `rows` query parameter returns an error — input must be a valid URL-encoded JSON array","Non-flat (nested) JSON objects may produce unexpected or missing columns","Empty JSON array may return headers-only CSV with zero rows","Payment failure via x402 prevents the request from being fulfilled","Extremely large arrays may hit request size or worker limits"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use JSON-to-CSV conversion without setting up any infrastructure. It is ideal for one-off conversions of flat JSON arrays in agent workflows where CSV output is needed for downstream tools, spreadsheets, or reporting systems. Prefer it over heavier ETL tools when the data is already flat and you want a single API call with a predictable $0.01 cost per conversion.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:40:52.523Z","isFirstParty":false}