Pass ?url= (any page of a site), optional ?agent= (default *, e.g
apexfaucet.xyz/api/x402/robots-check
Pass ?url= (any page of a site), optional ?agent= (default *, e.g. GPTBot or Googlebot) and ?path=. We fetch the origin's /robots.txt, parse its groups (User-agent, Allow, Disallow, Crawl-delay, Sitemap) and say whether the path is allowed for that agent by the longest-match rule, which rule decided it, and the sitemaps listed. A missing robots.txt (HTTP 4xx) means allowed; a 5xx, 429 or no answer
GET
https://apexfaucet.xyz/api/x402/robots-checkUptime100% of 3 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://apexfaucet.xyz/api/x402/robots-check?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FWeb_crawler&path=%2Fw%2F&agent=GPTBot");
console.log(await res.json());Example input
{
"url": "https://en.wikipedia.org/wiki/Web_crawler",
"path": "/w/",
"agent": "GPTBot"
}