Google Sheets
by Nero Labs Agent Tools in Productivity & SaaS
Writes up to 1,000 JSON rows to a Google Sheet (append, replace, or update rows matched on keyColumn, adding new keys) or reads a tab back as JSON (mode import). No OAuth: share the sheet with [email protected] as Editor. Keeps column order, adds new fields on the right, waits out Google rate limits. $0.005 per call plus $0.0002 per row sent, or $0.0001 per row allowed on import. Runs nerolabs/google-sheets-export.
https://x402-agent-tools.nerolabs.workers.dev/google-sheets- Price
- $0.0052
- per call in USDC
- Uptime
- 98.0%
- last 30 days
- Response time
- 570 ms
- 1.2 s slowest 5%
- Last check
- Passed
- 5 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://x402-agent-tools.nerolabs.workers.dev/google-sheets
Each call costs $0.0052 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://x402-agent-tools.nerolabs.workers.dev/google-sheets
content-type: application/json
{
"mode": "append",
"rows": [
{
"city": "London",
"company": "Northwind Traders",
"rating": 4.6
}
],
"sheetName": "Leads",
"spreadsheet": "https://docs.google.com/spreadsheets/d/1gV5ZFKQsKgake9aKTTQRaPRwmA7yS4BZySrmzGqNVAg/edit"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
addNewRows | boolean | No | Update mode: add rows for keys not yet in the sheet (default true). Default: true. |
columns | array of string | No | Optional: only these fields, in this order. |
keyColumn | string | No | Update mode: the field that identifies a row, such as id, url, sku or email. |
limit | integer | No | Import mode: rows to read (default 200, at most 1,000). Default: 200. |
mode | string | No | append: add rows after the last row with data. replace: overwrite the tab, then remove old rows left below. update: match rows on keyColumn and change only the fields sent, adding rows for new keys. import: read the tab back as JSON rows (first row = column names). One of: append, replace, update, import. Default: "append". |
offset | integer | No | Import mode: rows to skip first. |
parseValues | boolean | No | true: values are entered as if typed (dates, numbers, =formulas). false (default): written exactly as sent. Default: false. |
rows | array of object | No | Rows to write (append, replace, update), as JSON objects; keys become columns. Up to 1,000 per call. Nested objects become parent/child columns. |
sheetName | string | No | Tab name. Created if missing. Default: the tab in the link, or the first tab. |
spreadsheet | string | Yes | Google Sheet link or ID. The sheet must be shared with [email protected] as an Editor (no OAuth). |
Example response
The provider's example. We can't check it without paying.
Example response, 34 lines
{
"count": 1,
"rows": [
{
"columnsAdded": [],
"finishedAt": "2026-10-29T16:00:29.900Z",
"googleRequests": 3,
"message": "Wrote 4 row(s) (4 added, 0 updated) to Nero Labs Google Sheets Export Demo / Sheet1.",
"mode": "replace",
"rateLimitHits": 0,
"retries": 0,
"rolledOverTo": [],
"rowsAppended": 4,
"rowsImported": 0,
"rowsNotWritten": 0,
"rowsRead": 4,
"rowsSkippedNoKey": 0,
"rowsUpdated": 0,
"rowsWritten": 4,
"secondsWaitedForGoogle": 0,
"spreadsheetTitle": "Nero Labs Google Sheets Export Demo",
"spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1gV5ZFKQsKgake9aKTTQRaPRwmA7yS4BZySrmzGqNVAg/edit",
"status": "ok",
"tabs": [
"Nero Labs Google Sheets Export Demo / Sheet1"
],
"totalColumns": 7,
"truncatedCells": 0,
"warnings": [
"The demo sheet is always replaced (never appended to). Paste your own sheet link to append or update."
]
}
]
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.0052.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://x402-agent-tools.nerolabs.workers.dev/google-sheets' \
-H 'content-type: application/json' \
--data-raw '{"mode":"append","rows":[{"city":"London","company":"Northwind Traders","rating":4.6}],"sheetName":"Leads","spreadsheet":"https://docs.google.com/spreadsheets/d/1gV5ZFKQsKgake9aKTTQRaPRwmA7yS4BZySrmzGqNVAg/edit"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://x402-agent-tools.nerolabs.workers.dev/google-sheets' \
-H 'content-type: application/json' \
--data-raw '{"mode":"append","rows":[{"city":"London","company":"Northwind Traders","rating":4.6}],"sheetName":"Leads","spreadsheet":"https://docs.google.com/spreadsheets/d/1gV5ZFKQsKgake9aKTTQRaPRwmA7yS4BZySrmzGqNVAg/edit"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.0052 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.0052" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.0052 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402-agent-tools.nerolabs.workers.dev%2Fgoogle-sheets&method=POST
const res = await pay("https://x402-agent-tools.nerolabs.workers.dev/google-sheets", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"mode": "append",
"rows": [
{
"city": "London",
"company": "Northwind Traders",
"rating": 4.6
}
],
"sheetName": "Leads",
"spreadsheet": "https://docs.google.com/spreadsheets/d/1gV5ZFKQsKgake9aKTTQRaPRwmA7yS4BZySrmzGqNVAg/edit"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.0052 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.0052"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://x402-agent-tools.nerolabs.workers.dev/google-sheets",
json={
"mode": "append",
"rows": [
{
"city": "London",
"company": "Northwind Traders",
"rating": 4.6,
},
],
"sheetName": "Leads",
"spreadsheet": "https://docs.google.com/spreadsheets/d/1gV5ZFKQsKgake9aKTTQRaPRwmA7yS4BZySrmzGqNVAg/edit",
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 5 h ago | Passed | 402 | 69 ms | $0.0052 |
| 38 h ago | Timed out | - | - | - |
| 3 days ago | Timed out | - | - | - |
| 4 days ago | Passed | 402 | 499 ms | $0.0052 |
| 4 days ago | Passed | 402 | 676 ms | $0.0052 |
Show 10 older checks
| 5 days ago | Passed | 402 | 737 ms | $0.0052 |
| 5 days ago | Passed | 402 | 166 ms | $0.0052 |
| 6 days ago | Passed | 402 | 610 ms | $0.0052 |
| 6 days ago | Passed | 402 | 55 ms | $0.0052 |
| 6 days ago | Passed | 402 | 1.1 s | $0.0052 |
| 7 days ago | Passed | 402 | 135 ms | $0.0052 |
| 7 days ago | Passed | 402 | 802 ms | $0.0052 |
| 7 days ago | Passed | 402 | 83 ms | $0.0052 |
| 7 days ago | Passed | 402 | 728 ms | $0.0052 |
| 8 days ago | Passed | 402 | 759 ms | $0.0052 |