Catalog/data-transform-zip

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 URLhttps://x402.hexl.dev/v1/data-transform/zip
Integration docs
Example 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
}