Home  ›  Tool API  ›  Excel API

Excel API

Generate an XLSX spreadsheet from JSON

Generate a real XLSX spreadsheet from JSON rows or up to 20 worksheets. Free browser tool, REST API, and MCP for agents, Python, JavaScript, and automation.

✓ Transparent usage terms✓ REST + MCP✓ Real browser tool

Working examples

Copy it into your stack.

Send object rows for an automatic header row, or define up to 20 worksheets with optional headers. The response contains a temporary XLSX download URL.

Copyable requests

curl
curl -X POST https://agentmediatools.com/api/generate-xlsx \
  -H "Content-Type: application/json" \
  -d '{"sheet_name":"Results","rows":[{"name":"Ada","score":98},{"name":"Grace","score":96}]}'
JavaScript
const response = await fetch("https://agentmediatools.com/api/generate-xlsx", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    sheet_name: "Results",
    rows: [{ name: "Ada", score: 98 }, { name: "Grace", score: 96 }]
  })
});
console.log(await response.json());
Python
import requests

response = requests.post(
    "https://agentmediatools.com/api/generate-xlsx",
    json={"sheet_name": "Results", "rows": [
        {"name": "Ada", "score": 98},
        {"name": "Grace", "score": 96},
    ]},
)
print(response.json()["downloadUrl"])

Frequently asked questions

Can the API create multiple worksheets?

Yes. Send up to 20 sheet definitions, each with a name, optional headers, and rows.

How many rows can a worksheet contain?

The generator processes up to 5,000 rows per worksheet. Split larger exports into bounded jobs.

Can an AI agent generate the workbook?

Yes. Use REST POST /api/generate-xlsx or the generate_xlsx MCP tool.

How long is the download available?

Generated downloads are temporary and normally expire after about 20 minutes. Save the workbook promptly.

One tool now, one integration later

Test it in the browser. Automate it when ready.

The same Agent Media Tools account connects this operation to the wider Tool API and MCP catalog.