{"uid":"cap_sPYItLsLE4Ci2TOAqFpLt","slug":"api-strale-io-2cdf33f9","name":"CSV to JSON Converter with Auto-Delimiter and Type Inference","description":"Convert CSV string to JSON array with auto-detected delimiter and type inference. Algorithmic.","url":"https://api.strale.io/x402/csv-to-json?utm_source=zero.xyz","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":["csv_string"],"properties":{"delimiter":{"type":"string"},"csv_string":{"type":"string"},"has_header":{"type":"boolean"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"csv_string":"name,age,city\nAlice,30,New York\nBob,25,London\nCharlie,35,Paris","has_header":true},"response":{"data":[{"age":30,"city":"New York","name":"Alice"},{"age":25,"city":"London","name":"Bob"},{"age":35,"city":"Paris","name":"Charlie"}],"_meta":{"payment":{"method":"x402","price_usd":0.0216,"settlement_id":"0xb82a5993e8b9401f30c5ead797f384d78333947a94c132a36744e7e59abcea22"},"capability":"csv-to-json","latency_ms":0,"provenance":{"source":"algorithmic","fetched_at":"2026-06-13T04:24:07.964Z"}},"columns":["name","age","city"],"row_count":3,"detected_delimiter":","}},"exampleRequest":{"csv_string":"name,age,city\nAlice,30,New York\nBob,25,London\nCharlie,35,Paris","has_header":true},"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_e3vEyT0y-EUcgRWBb_JM4","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 CSV string into a JSON array with automatic delimiter detection and data type inference","exampleAgentPrompt":"Convert this CSV string to a JSON array — it has a header row and I'm not sure if the delimiter is a comma or semicolon: 'name;age;city\\nAlice;30;New York\\nBob;25;London'","exampleUseCases":null,"resultDescription":"Returns a JSON array of objects where each row becomes a JSON object with keys from the header row (if present), and values automatically cast to their inferred types (numbers, booleans, strings, etc.)","failureModes":["Malformed or empty csv_string returns an error","Ambiguous delimiter that cannot be auto-detected may cause incorrect parsing","CSV with inconsistent column counts per row may produce unexpected output","Missing required csv_string query parameter returns a 400-level error","Very large CSV strings may hit size or timeout limits"],"whenToPreferThis":"Choose this endpoint when you have a raw CSV string (not a file URL) and need a structured JSON array back without having to specify the delimiter yourself — especially useful for CSVs of unknown origin where the separator (comma, semicolon, tab, pipe) isn't guaranteed. It also saves a step by inferring numeric and boolean types automatically rather than returning all values as strings.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:47:16.576Z","isFirstParty":false,"canonicalSlug":"api-strale-io-2cdf33f9"}