Data Transform
Zip / unzip arrays API
Zips multiple parallel arrays into tuples, or unzips an array of tuples back into columns. Answers 'How do I zip columns into rows (or back)?', 'How do I combine parallel arrays elementwise?'.
Price$0.01per request
MethodPOST
Route/v1/data-transform/zip
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
data-transformzipunziptransposearraycolumnswrangle
API URL
Integration docshttps://x402.hexl.dev/v1/data-transform/zipExample request
{
"arrays": [
[
1,
2,
3
],
[
"a",
"b",
"c"
]
],
"mode": "zip"
}Example response
{
"result": [
[
1,
"a"
],
[
2,
"b"
],
[
3,
"c"
]
]
}Input schema
{
"type": "object",
"required": [
"arrays"
],
"properties": {
"arrays": {
"type": "array",
"examples": [
[
[
1,
2,
3
],
[
"a",
"b",
"c"
]
]
]
},
"mode": {
"type": "string",
"examples": [
"zip"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}