Catalog/text-markdown-table-build

Text

Build markdown table API

Builds a padded, alignment-aware GitHub-flavored markdown table from headers and rows. Answers 'how do I generate a markdown table?', 'how do I set column alignment in markdown?'.

Price$0.02per request
MethodPOST
Route/v1/text/markdown-table-build
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
textmarkdowntablebuildgithubformattingdocsrender
API URLhttps://x402.hexl.dev/v1/text/markdown-table-build
Integration docs
Example request
{
  "headers": [
    "a",
    "b"
  ],
  "rows": [
    [
      "1",
      "2"
    ]
  ]
}
Example response
{
  "markdown": "| a | b |\n| :-- | :-- |\n| 1 | 2 |",
  "columns": 2
}
Input schema
{
  "type": "object",
  "required": [
    "headers",
    "rows"
  ],
  "properties": {
    "headers": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "examples": [
        [
          "a",
          "b"
        ]
      ]
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "examples": [
        [
          [
            "1",
            "2"
          ]
        ]
      ]
    },
    "align": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "l",
          "r",
          "c"
        ]
      }
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}