Page Speed
by Page speed (one lab measurement) in Search & web
Load one public URL once in headless Chromium and report what that load measured: navigation timings (TTFB, DOMContentLoaded, load), Web Vitals read from the page's own performance entries (LCP, FCP, CLS, total blocking time from long tasks), total transfer bytes, request count, the 5 heaviest resources, render-blocking scripts and styles, and console errors. Mobile or desktop viewport.
https://agent402.tools/api/page-speed- Price
- $0.01
- per call in USDC
- Uptime
- 100%
- last 30 days
- Response time
- 199 ms
- 294 ms slowest 5%
- Last check
- Passed
- 17 min ago, next in 15 min
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://agent402.tools/api/page-speed
Each call costs $0.01 in USDC on Polygon, 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://agent402.tools/api/page-speed
content-type: application/json
{
"device": "mobile",
"url": "https://agent402.tools"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
device | string | No | Viewport profile: mobile (412x823, touch) or desktop (1350x940). Default mobile One of: mobile, desktop. |
url | string | Yes | Public http(s) URL to load and measure |
Example response
The provider's example. We can't check it without paying.
Example response, 65 lines
{
"consoleErrors": [],
"consoleErrorsPartial": {
"complete": true,
"matched": 0,
"returned": 0,
"truncated": false
},
"device": "mobile",
"finalUrl": "https://agent402.tools/",
"heaviestResources": [
{
"bytes": 41210,
"type": "document",
"url": "https://agent402.tools/"
}
],
"heaviestResourcesPartial": {
"complete": false,
"matched": 9,
"returned": 1,
"truncated": true
},
"measurement": {
"fieldData": false,
"kind": "lab-single-run",
"lighthouseScore": false,
"note": "A single measurement from one server location under shared load. It is a single lab measurement, not field data from real users; repeat the call and compare runs before drawing conclusions.",
"runs": 1,
"source": "one load in a headless Chromium from one server location, on shared infrastructure, with no network or CPU throttling"
},
"networkIdle": true,
"renderBlocking": [],
"renderBlockingPartial": {
"complete": true,
"matched": 0,
"returned": 0,
"truncated": false
},
"status": 200,
"timings": {
"domContentLoadedMs": 401,
"loadMs": 655,
"ttfbMs": 182
},
"transfer": {
"failedRequests": 0,
"requestCount": 9,
"totalBytes": 98123
},
"untrustedContent": true,
"url": "https://agent402.tools",
"viewport": {
"height": 823,
"width": 412
},
"webVitals": {
"cls": 0.0012,
"fcpMs": 430,
"lcpElement": "h1",
"lcpMs": 512,
"longTaskCount": 0,
"totalBlockingTimeMs": 0
}
}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.01.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://agent402.tools/api/page-speed' \
-H 'content-type: application/json' \
--data-raw '{"device":"mobile","url":"https://agent402.tools"}'
# 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://agent402.tools/api/page-speed' \
-H 'content-type: application/json' \
--data-raw '{"device":"mobile","url":"https://agent402.tools"}' \
| 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.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
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.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fpage-speed&method=POST
const res = await pay("https://agent402.tools/api/page-speed", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"device": "mobile",
"url": "https://agent402.tools"
}),
});
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.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://agent402.tools/api/page-speed",
json={
"device": "mobile",
"url": "https://agent402.tools",
},
)
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 |
|---|---|---|---|---|
| 17 min ago | Passed | 402 | 207 ms | $0.01 |
| 5 h ago | Passed | 402 | 264 ms | $0.01 |
| 10 h ago | Passed | 402 | 200 ms | $0.01 |
| 15 h ago | Passed | 402 | 274 ms | $0.01 |
| 19 h ago | Passed | 402 | 195 ms | $0.01 |
Show 10 older checks
| 23 h ago | Passed | 402 | 196 ms | $0.01 |
| 27 h ago | Passed | 402 | 199 ms | $0.01 |
| 31 h ago | Passed | 402 | 212 ms | $0.01 |
| 35 h ago | Passed | 402 | 192 ms | $0.01 |
| 40 h ago | Passed | 402 | 187 ms | $0.01 |
| 44 h ago | Passed | 402 | 196 ms | $0.01 |
| 2 days ago | Passed | 402 | 185 ms | $0.01 |
| 2 days ago | Passed | 402 | 294 ms | $0.01 |
| 2 days ago | Passed | 402 | 190 ms | $0.01 |
| 3 days ago | Passed | 402 | 189 ms | $0.01 |