GET /v1/linksFetch a web page and return every link on it (absolute URL, anchor text, internal/external flag), deduplicated.
Price: $0.002 per call, paid in USDC on Base via x402. No API key or signup.
npx x402-fetch "https://tools.anokha.space/v1/links?url=https%3A%2F%2Fexample.com"
{
"url": "...",
"count": 2,
"links": [
{
"href": "https://...",
"text": "...",
"internal": true
}
]
}
The first request returns HTTP 402 with a PAYMENT-REQUIRED header. An x402 client signs a USDC authorization and retries with a PAYMENT-SIGNATURE header. You are charged only when the call succeeds.