Convert a JSON array of objects to an Excel (.xlsx) spreadsheet via x402 pay-per-call.
What it does
The json2excel endpoint at api2ls.com accepts a JSON array of objects (or a wrapper with metadata) and returns a downloadable Excel .xlsx file. It supports up to 10,000 rows and 100 columns per request, with a maximum request size of 512 KB. Nested objects are automatically serialized to JSON strings within cells. Optional parameters let you set a custom filename and sheet name.
Payment is handled via the x402 protocol at $0.10 per call, settled on-chain on Base or Solana. No API keys, accounts, or subscriptions are required — agents simply attach an x402 payment header to each POST request. The endpoint is discoverable through the x402 Bazaar registry.
The API accepts two request formats: a direct JSON array, or an object with a `data` field plus optional `filename` and `sheetName` fields. The response is an Excel file served with the standard OOXML spreadsheet MIME type. This is useful for agents that need to produce human-readable spreadsheet exports from structured data without running local office software or libraries.
Capabilities
Use cases
- —Autonomous agents generating Excel reports from structured query results
- —Converting API response data into downloadable spreadsheets for end users
- —Exporting database records or analytics data to .xlsx for stakeholder review
- —Agentic workflows that need to produce human-readable tabular files without local dependencies
Fit
Best for
- —AI agents needing on-the-fly Excel file generation
- —Serverless or lightweight environments without office libraries
- —Workflows requiring pay-per-use spreadsheet conversion with no signup
Not for
- —High-volume batch processing of very large datasets (10,000 row / 512 KB limit)
- —Complex Excel formatting, formulas, charts, or multi-sheet workbooks
- —Reading or parsing existing Excel files (this is write-only)
Quick start
curl -X POST https://api2ls.com/api/json2excel \
-H "Content-Type: application/json" \
-H "X-402-Payment: <x402_payment_header>" \
-d '{"data":[{"name":"Alice","age":30},{"name":"Bob","age":25}],"filename":"people.xlsx"}' \
-o people.xlsxExample
Request
{
"data": [
{
"price": 999,
"stock": 15,
"product": "Laptop"
},
{
"price": 25,
"stock": 100,
"product": "Mouse"
}
],
"filename": "inventory.xlsx",
"sheetName": "Products"
}Endpoint
Quality
The endpoint is live (402 challenge captured) and the landing page provides clear documentation of the request/response format, limits, and pricing. However, there is no formal OpenAPI schema, no dedicated docs page, and the 402 challenge body was empty so exact on-chain payment details (token, network, amount in base units) cannot be independently verified from the probe. The response is a binary file so no example response JSON is available.
Warnings
- —The x402 challenge object was empty — exact payment token, network, and amount could not be verified from the probe alone.
- —No OpenAPI or formal schema is published; documentation is inferred from the landing page only.
- —/docs, /pricing, and /api all return 404, suggesting no additional documentation exists beyond the homepage.
Citations
- —The endpoint converts JSON arrays to Excel .xlsx files with up to 10,000 rows and 100 columns, max 512 KB request size.https://api2ls.com
- —Price is $0.10 per call via x402 protocol on Base or Solana.https://api2ls.com
- —Nested objects are converted to JSON strings in the output.https://api2ls.com
- —Discoverable via the x402 Bazaar at Coinbase CDP.https://api2ls.com