Table Header Span Map

Associate each data-column position with the IDs of the headers that span it and find columns without bottom-level labels.

Custom requests cost 0.04 USDC on Base.

Download example JSON · OpenAPI · Source and usage

Pay with a browser wallet · Open example in checkout

POST a JSON request to /table-header-span-map/v1/check with an x402 V2 client.

Worked example

Request

{
  "columns": 3,
  "header_rows": [
    [
      {
        "id": "id",
        "column": 1,
        "span": 1
      },
      {
        "id": "results",
        "column": 2,
        "span": 2
      }
    ],
    [
      {
        "id": "week1",
        "column": 2,
        "span": 1
      },
      {
        "id": "week2",
        "column": 3,
        "span": 1
      }
    ]
  ]
}

Result

{
  "columns": [
    {
      "column": 1,
      "header_ids": [
        "id"
      ]
    },
    {
      "column": 2,
      "header_ids": [
        "results",
        "week1"
      ]
    },
    {
      "column": 3,
      "header_ids": [
        "results",
        "week2"
      ]
    }
  ],
  "missing_bottom_headers": [
    1
  ]
}

Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter