{"slug":"code-halowerk-com-v1-sql-on-csv-2c5753","title":"Run one SQL query (DuckDB dialect) over up to five CSV tables you send and get t","host":"code.halowerk.com","method":"POST","resource":"https://code.halowerk.com/v1/sql-on-csv","category":"code","description":"Run one SQL query (DuckDB dialect) over up to five CSV tables you send and get typed columns and rows back as JSON. Loads the supplied CSV texts (auto-detected types, optional delimiter and header flag) into an in-memory DuckDB, then disables all file, network and extension access and locks the conf","price_listed":0.003,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"query":"SELECT country, sum(amount) AS total FROM orders GROUP BY country ORDER BY total DESC","tables":[{"csv":"id,amount,country\n1,19.90,DE\n2,5.00,AT\n3,42.10,DE","name":"orders"}]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"max_rows":{"default":200,"maximum":1000,"minimum":1,"type":"integer"},"query":{"maxLength":20000,"minLength":1,"type":"string"},"tables":{"items":{"additionalProperties":false,"properties":{"csv":{"maxLength":5000000,"minLength":1,"type":"string"},"delimiter":{"enum":[",",";","\t","|"],"type":"string"},"header":{"default":true,"type":"boolean"},"name":{"pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$","type":"string"}},"required":["name","csv"],"type":"object"},"maxItems":5,"minItems":1,"type":"array"}},"required":["tables","query"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Run one SQL query (DuckDB dialect) over up to five CSV tables you send and get typed columns and rows back as JSON. Loads the supplied CSV texts (auto-detected types, optional delimiter and header flag) into an in-memory DuckDB, then disables all file, network and extension access and locks the configuration before running exactly one statement. Limits: 5 MB CSV per table, 4.5 s execution, 512 MB memory, one thread, at most 1000 returned rows.","last_updated":"2026-11-20T13:47:11.17Z","schemes":["exact"]}