{"uid":"cap__ZgOvF-2J5oFXLSvXJc4Z","slug":"api-strale-io-3e5f882c","name":"JSON to CSV Converter","description":"Convert a JSON array of objects to CSV format. Supports custom delimiters. Pure algorithmic — instant and cheap.","url":"https://api.strale.io/x402/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"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["data"],"properties":{"data":{"type":"array","description":"Array of objects to convert"},"delimiter":{"type":"string","description":"Column delimiter (default: comma)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"data":[{"age":30,"city":"Paris","name":"Alice"},{"age":25,"city":"Lyon","name":"Bob"}],"delimiter":";"},"response":{"csv":"name;age;city\nAlice;30;Paris\nBob;25;Lyon","_meta":{"payment":{"method":"x402","price_usd":0.0216,"settlement_id":"0xc656f176618f42245b787b7ee0901dbca43087bcf1f88b264e0671e23d903ce6"},"capability":"json-to-csv","latency_ms":0,"provenance":{"source":"algorithmic","fetched_at":"2026-06-16T01:24:49.145Z"}},"columns":["name","age","city"],"row_count":2,"column_count":3}},"exampleRequest":{"data":[{"age":30,"city":"Paris","name":"Alice"},{"age":25,"city":"Lyon","name":"Bob"}],"delimiter":";"},"tags":["x402"],"displayCostAmount":"0.0216","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0216/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0216","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0216","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5X1okxpjuCSVdCbFHnE-T","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0216","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a JSON array of objects into CSV format, with optional custom delimiter support","exampleAgentPrompt":"Convert this JSON array to CSV using a semicolon as the delimiter: [{\"name\":\"Alice\",\"age\":30,\"city\":\"Paris\"},{\"name\":\"Bob\",\"age\":25,\"city\":\"Lyon\"}]","exampleUseCases":null,"resultDescription":"A CSV-formatted string with a header row derived from the JSON object keys and one data row per object in the input array, columns separated by the specified delimiter (default: comma).","failureModes":["Input array is empty — may return empty CSV or error","Array elements have inconsistent keys — missing fields may produce blank columns","Invalid JSON passed in data param — returns parse error","Non-array value passed as data — schema validation error","Unsupported delimiter characters may cause malformed CSV output"],"whenToPreferThis":"Choose this endpoint when you need a pure, instant, cheap algorithmic conversion of a JSON array of objects to CSV with no external dependencies. Ideal for preparing API response data for spreadsheet download, data pipeline output, or human-readable tabular exports. Prefer this over general-purpose code-execution endpoints when the task is purely JSON-to-CSV formatting.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:46:24.519Z","isFirstParty":false}