Api Endpoint

Relaystation Pivot

$0.0002/MB. Reshape tables long↔wide — pivot and unpivot without a spreadsheet. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

Open interactive test console

Offering

Provider
api.relaystation.ai
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Data
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.relaystation.ai/v1/data/pivot
MIME type
Not provided
First seen
2026-10-16T01:51:30.109Z
Last seen
Tags
pivot, reshape, data-transformation, analytics, tabular-data

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
10000 atomic units
Atomic price: 10000 · Network: eip155:8453 · Asset: 0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42 · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0x5F7254f252eF9b9f92B6B4F2cF91205eD7A96C7A"
  },
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42",
    "amount": "10000",
    "payTo": "0x5F7254f252eF9b9f92B6B4F2cF91205eD7A96C7A"
  }
]

Observed health

Status
Healthy
Latest latency
38 ms
Average latency
37 ms
HTTP status
204
Last checked
Reachability
100% over 13 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "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 schema

{
  "properties": {
    "example": {
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}