Skip to content
Fourohtwo

Turn rows of data into a real Excel workbook (.xlsx) in one call

agent402.tools/api/xlsx-create

Turn rows of data into a real Excel workbook (.xlsx) in one call. Send "sheets": each a "name" plus "rows" as an array of arrays or an array of objects (an optional "columns" list sets the order).

SolanaBaseAnswering
POSThttps://agent402.tools/api/xlsx-create

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent402.tools/api/xlsx-create", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"sheets":[{"name":"Sales","rows":[{"units":1200,"region":"North","revenue":18450.5},{"units":860,"region":"South","revenue":12990},{"units":540,"region":"West","revenue":8120.25}],"columns":["region","units","revenue"],"numberFormats":{"revenue":"#,##0.00"}}],"filename":"sales.xlsx"}),
});
console.log(await res.json());

Example input

{
  "sheets": [
    {
      "name": "Sales",
      "rows": [
        {
          "units": 1200,
          "region": "North",
          "revenue": 18450.5
        },
        {
          "units": 860,
          "region": "South",
          "revenue": 12990
        },
        {
          "units": 540,
          "region": "West",
          "revenue": 8120.25
        }
      ],
      "columns": [
        "region",
        "units",
        "revenue"
      ],
      "numberFormats": {
        "revenue": "#,##0.00"
      }
    }
  ],
  "filename": "sales.xlsx"
}