Markdown Table Generator
Generate Markdown tables from structured data.
Endpoint
POST https://www.acrewity.com/api/services/execute
Authentication
Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
n8n Integration
This service is also available via our n8n community node: @acrewity/n8n-nodes-acrewity
Operations
Generate Markdown Table
Generate a markdown table from JSON, CSV, or HTML data
Operation ID: generate_table
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
data |
string/array | Yes | - | Table data (JSON array, CSV string, or HTML table) |
inputType |
string | No | json |
Input data format: json, csv, html |
alignment |
object/array | No | - | Column alignment. Object format: {"Price": "right"} or array format: ["left", "right", "center"] |
headers |
array | No | - | Custom header names to override detected headers |
Example Request
Generate Table from JSON Array:
{
"service": "markdown-table-generator",
"operation": "generate_table",
"parameters": {
"data": [
{ "Product": "Laptop", "Price": 999.99, "Stock": 50 },
{ "Product": "Mouse", "Price": 29.99, "Stock": 200 },
{ "Product": "Keyboard", "Price": 79.99, "Stock": 150 }
],
"inputType": "json",
"alignment": { "Price": "right", "Stock": "center" }
}
}
Generate Table from CSV:
{
"service": "markdown-table-generator",
"operation": "generate_table",
"parameters": {
"data": "Name,Email,Role\nJohn Doe,john@example.com,Admin\nJane Smith,jane@example.com,Editor\nBob Wilson,bob@example.com,Viewer",
"inputType": "csv"
}
}
Generate Table from HTML:
{
"service": "markdown-table-generator",
"operation": "generate_table",
"parameters": {
"data": "<table><thead><tr><th>City</th><th>Population</th></tr></thead><tbody><tr><td>New York</td><td>8.3M</td></tr><tr><td>Los Angeles</td><td>4M</td></tr></tbody></table>",
"inputType": "html"
}
}
Generate Table with Custom Headers:
{
"service": "markdown-table-generator",
"operation": "generate_table",
"parameters": {
"data": [
{ "n": "Widget A", "p": 19.99, "q": 100 },
{ "n": "Widget B", "p": 24.99, "q": 75 }
],
"inputType": "json",
"headers": ["Item Name", "Unit Price", "Quantity"]
}
}
Example Response
{
"success": true,
"result": {
"data": {
"markdown_table": "| Product | Price | Stock |\n|---|---:|:---:|\n| Laptop | 999.99 | 50 |\n| Mouse | 29.99 | 200 |\n| Keyboard | 79.99 | 150 |",
"markdown": "| Product | Price | Stock |\n|---|---:|:---:|\n| Laptop | 999.99 | 50 |\n| Mouse | 29.99 | 200 |\n| Keyboard | 79.99 | 150 |",
"row_count": 3,
"column_count": 3,
"headers": ["Product", "Price", "Stock"],
"input_type": "json"
}
},
"credits_used": 1
}
More Examples
See Data Transformation Examples for complete workflow examples including report generation, documentation automation, and data presentation.