81trust / 100
Web Prices
by api.x-402.online in Markets & finance
x402 APIPassing, checked 28 min ago
Find the current prices shown on a product or listing page, with currency and context. Every monetary amount found on a page with its currency and surrounding context, plus the schema.org Offer price when the page declares one. Works on any product page, not only marketplaces. Fetche…
POST https://api.x-402.online/v1/web/prices
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 150 ms typical, 150 ms slowest 5%
- Last check
- 28 min ago
- Next check
- in 4 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.x-402.online/v1/web/prices" \
-H "content-type: application/json" \
-d '{"url":"https://example.com/product"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.x-402.online%2Fv1%2Fweb%2Fprices
const res = await pay("https://api.x-402.online/v1/web/prices", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"url":"https://example.com/product"}),
});
console.log(await res.json());Example input
{
"url": "https://example.com/product"
}Example output
{
"price_count": 4,
"prices": [
{
"context": "…",
"currency": "€",
"value": 19.99
}
],
"structured_offer": {
"currency": "EUR",
"price": 19.99
}
}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 |
|---|---|---|---|---|
| 28 min ago | Passed | 402 | 150 ms | $0.005 |
| 6 h ago | Passed | 402 | 172 ms | $0.005 |