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"])
Example JSON response
{"success":true,"filename":"a1b2c3.xlsx","downloadUrl":"/downloads/a1b2c3.xlsx","size":8421,"sheets":1}
Download URLs are temporary. Save results to your own storage when the workflow needs durable retention.