Text
Render ASCII table API
Renders rows and optional headers into an aligned monospace ASCII box-drawing table with per-column alignment. Answers 'how do I print a clean ASCII table?', 'how do I align columns for terminal output?'.
Price$0.02per request
MethodPOST
Route/v1/text/ascii-table
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
textascii-tabletablerendermonospaceformattingclicolumns
API URL
Integration docshttps://x402.hexl.dev/v1/text/ascii-tableExample request
{
"headers": [
"Name",
"Age"
],
"rows": [
[
"Alice",
"30"
],
[
"Bob",
"5"
]
]
}Example response
{
"table": "+-------+-----+\n| Name | Age |\n+-------+-----+\n| Alice | 30 |\n| Bob | 5 |\n+-------+-----+",
"columns": 2,
"columnWidths": [
5,
3
]
}Input schema
{
"type": "object",
"required": [
"rows"
],
"properties": {
"headers": {
"type": "array",
"items": {
"type": "string"
},
"examples": [
[
"Name",
"Age"
]
]
},
"rows": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
},
"examples": [
[
[
"Alice",
"30"
],
[
"Bob",
"5"
]
]
]
},
"align": {
"type": "array",
"items": {
"type": "string",
"enum": [
"l",
"r",
"c"
]
}
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}