Text
Columnize list API
Lays out a list of items into evenly spaced, aligned columns (column-major like `ls`), with configurable column count and gap. Answers 'how do I format a list into columns?', 'how do I print items ls-style across the terminal?'.
Price$0.02per request
MethodPOST
Route/v1/text/columnize
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
textcolumnizecolumnslayoutlistformattinggridterminal
API URL
Integration docshttps://x402.hexl.dev/v1/text/columnizeExample request
{
"items": [
"one",
"two",
"three",
"four",
"five"
],
"columns": 2
}Example response
{
"result": "one four\ntwo five\nthree",
"rows": 3,
"columns": 2
}Input schema
{
"type": "object",
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "string"
},
"examples": [
[
"one",
"two",
"three",
"four",
"five"
]
]
},
"columns": {
"type": "number",
"examples": [
2
]
},
"gap": {
"type": "number",
"examples": [
2
]
},
"align": {
"type": "string",
"enum": [
"left",
"right"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}