{"uid":"cap_FVWA84irrEUoc-iQdZX0E","slug":"format-convert-csv-tsv-json-markdown-1033fae2","name":"Format Convert (CSV/TSV/JSON/Markdown)","description":"Convert between the shapes data actually arrives in: CSV or TSV to JSON, JSON to CSV or TSV, CSV to a Markdown table, Markdown to HTML. Proper RFC 4180 parsing — quoted fields, embedded commas and newlines, doubled quotes — so a spreadsheet exported by a human does not silently come apart. Numbers and booleans get real types (turn it off with typed=false). No model call and no upstream: local parsing only.","url":"https://402.com.tr/api/x402/file-convert","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"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["text","from","to"],"properties":{"to":{"type":"string","description":"Target format"},"from":{"type":"string","description":"Source format"},"text":{"type":"string","description":"Content to convert"},"typed":{"type":"string","description":"Type numbers/booleans (optional)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qr07qJ5v8FaqWqWbqJJX6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts between CSV, TSV, JSON, and Markdown/HTML formats with RFC 4180-compliant parsing and optional type inference for numbers and booleans.","exampleAgentPrompt":"Convert this CSV text to JSON with proper number types — 'name,age,score\\nAlice,30,98.5\\nBob,25,87.0' — source format is CSV and target is JSON.","exampleUseCases":[{"title":"Spreadsheet data into API payload","prompt":"I exported this CSV from Google Sheets and need it as a JSON array so I can POST it to our API — 'product,price,in_stock\\nWidget A,9.99,true\\nWidget B,24.50,false' — convert it from CSV to JSON and make sure price and in_stock get real types."},{"title":"JSON dataset to CSV download","prompt":"I have this JSON array and need to give users a CSV file to download: '[{\"city\":\"Paris\",\"pop\":2161000},{\"city\":\"Lyon\",\"pop\":513275}]' — convert it from JSON to CSV format."},{"title":"Markdown table for documentation","prompt":"Turn this CSV into a Markdown table I can paste into my README — 'endpoint,method,cost\\n/convert,GET,$0.005\\n/verify,GET,$0.003' — from CSV to Markdown."}],"resultDescription":"Returns the converted content as a string in the requested target format. For CSV/TSV-to-JSON conversions, numbers and booleans are cast to their native types by default (disable with typed=false). For JSON-to-CSV/TSV, objects are flattened to rows. For CSV-to-Markdown, a formatted table is returned. For Markdown-to-HTML, rendered HTML is returned.","failureModes":["Missing required query params (text, from, to) returns an error","Unsupported format combination (e.g. TSV to Markdown) may return an error or unsupported response","Malformed input that cannot be parsed even with RFC 4180 rules may return a parse error","Very large payloads sent via GET query string may be rejected due to URL length limits","Specifying an invalid value for 'typed' parameter may cause unexpected behavior"],"whenToPreferThis":"Choose this endpoint when you need fast, local (no LLM, no upstream) format conversion between CSV, TSV, JSON, and Markdown/HTML with RFC 4180-compliant parsing that handles quoted fields, embedded commas, embedded newlines, and doubled quotes correctly. It is ideal when spreadsheet exports must survive conversion without silent data corruption, and when you want numbers and booleans to be real typed values rather than strings. Prefer it over generic text-transformation services when tabular data fidelity and spec-compliant CSV parsing are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:33:50.476Z","isFirstParty":false}