78trust / 100
Xpath Article
by agentshelf.syntexa.ch in News & content
x402 APIPassing, checked 1 h ago
Call when an agent needs text of //article via //article from a public page or HTML (SSRF-safe). Exact $0.004 USDC. Prefer unpaid POST /v1/sandbox/xpath-article first.
POST https://agentshelf.syntexa.ch/v1/xpath-article
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 32 ms typical, 35 ms slowest 5%
- Last check
- 1 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentshelf.syntexa.ch/v1/xpath-article" \
-H "content-type: application/json" \
-d '{"html":"<!doctype html><html lang=\"en\"><head><title>Hello</title>\n<meta name=\"description\" content=\"Desc\"><meta property=\"og:title\" content=\"OG\">\n<link rel=\"canonical\" href=\"https://example.com/\"><link rel=\"icon\" href=\"/favicon.ico\">\n</head><body><h1>Hello</h1><a href=\"https://example.com/a\">A</a></body></html>"}'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%2Fagentshelf.syntexa.ch%2Fv1%2Fxpath-article
const res = await pay("https://agentshelf.syntexa.ch/v1/xpath-article", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"html":"<!doctype html><html lang=\"en\"><head><title>Hello</title>\n<meta name=\"description\" content=\"Desc\"><meta property=\"og:title\" content=\"OG\">\n<link rel=\"canonical\" href=\"https://example.com/\"><link rel=\"icon\" href=\"/favicon.ico\">\n</head><body><h1>Hello</h1><a href=\"https://example.com/a\">A</a></body></html>"}),
});
console.log(await res.json());Example input
{
"html": "<!doctype html><html lang=\"en\"><head><title>Hello</title>\n<meta name=\"description\" content=\"Desc\"><meta property=\"og:title\" content=\"OG\">\n<link rel=\"canonical\" href=\"https://example.com/\"><link rel=\"icon\" href=\"/favicon.ico\">\n</head><body><h1>Hello</h1><a href=\"https://example.com/a\">A</a></body></html>"
}Example output
{
"billed": true,
"expression": "//article",
"matches": [
{
"text": "Hello"
}
],
"ok": true,
"receipt_id": "rcpt_01EXAMPLE000000000000000",
"truncated": false,
"warnings": []
}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 |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 29 ms | $0.004 |
| 5 h ago | Passed | 402 | 34 ms | $0.004 |
| 8 h ago | Passed | 402 | 31 ms | $0.004 |
| 12 h ago | Passed | 402 | 32 ms | $0.004 |
| 16 h ago | Passed | 402 | 35 ms | $0.004 |
| 19 h ago | Passed | 402 | 30 ms | $0.004 |
| 24 h ago | Passed | 402 | 29 ms | $0.004 |
| 27 h ago | Passed | 402 | 40 ms | $0.004 |
| 32 h ago | Passed | 402 | 33 ms | $0.004 |