{"slug":"api-relaystation-ai-v1-data-pivot-a5a1b0","title":"$0.0002/MB","host":"api.relaystation.ai","method":"POST","resource":"https://api.relaystation.ai/v1/data/pivot","category":"other","description":"$0.0002/MB. Reshape tables long↔wide — pivot and unpivot without a spreadsheet. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":642,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"agg":"count","columns":"string","file":{},"id":["string"],"index":["string"],"mode":"pivot","value":["string"],"values":"string"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"agg":{"description":"pivot: cell aggregate (default count behavior per route).","enum":["count","sum","avg","min","max"],"type":"string"},"columns":{"description":"pivot: the column whose values become output columns.","type":"string"},"file":{"description":"cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }.","type":"object"},"from":{"description":"A tabular file format: csv, tsv, json (array of objects), or ndjson.","enum":["csv","tsv","json","ndjson"],"type":"string"},"id":{"description":"unpivot: the id columns kept on every output row.","items":{"type":"string"},"minItems":1,"type":"array"},"index":{"description":"pivot: the row-key columns.","items":{"type":"string"},"minItems":1,"type":"array"},"mode":{"enum":["pivot","unpivot"],"type":"string"},"to":{"description":"A tabular file format: csv, tsv, json (array of objects), or ndjson.","enum":["csv","tsv","json","ndjson"],"type":"string"},"value":{"description":"unpivot: the columns melted into variable/value rows (default: all non-id).","items":{"type":"string"},"minItems":1,"type":"array"},"values":{"description":"pivot: the column aggregated into the cells.","type":"string"}},"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":[{"day":"2026-10-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":642,"error":null}],"description_full":"$0.0002/MB. Reshape tables long↔wide — pivot and unpivot without a spreadsheet. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","last_updated":"2026-10-04T17:28:56.898Z","schemes":["exact"]}