Home / API docs / Sitemap Validator API
SEO & Publishing

Sitemap Validator API

GET /api/seo/sitemap-check $0.02 per call USDC on Base · x402

Sitemap validator: finds the sitemap (direct URL, robots.txt declaration, or /sitemap.xml), handles sitemap indexes, validates entries and lastmod dates, flags cross-host URLs and oversize files, and health-checks a sample of listed URLs for dead pages. ?url=site root or sitemap URL

Parameters

NameInDescription
urlqueryrequiredSite root or direct sitemap URL

Example request

curl "https://api.webbersites.com/api/seo/sitemap-check?url=https%3A%2F%2Fexample.com"
# first call returns 402 + payment requirements; an x402 client pays and retries automatically

Example response

{
    "sitemap_url": "https://example.com/sitemap.xml",
    "found": true,
    "type": "urlset",
    "url_count": 342,
    "with_lastmod": 342,
    "sample_health": [
        {
            "url": "https://example.com/",
            "status": 200,
            "ok": true
        }
    ],
    "verdict": "good"
}
MCP tool: get_seo_sitemap_check — via npx -y webbersites-x402-mcp (local, key stays on your machine) or the remote endpoint https://api.webbersites.com/mcp.

How payment works

There is no signup and no API key. Call the endpoint; it replies 402 Payment Required with machine-readable payment requirements. Your client signs a USDC transfer authorization (EIP-3009, gasless) and retries with the X-PAYMENT header — @x402/fetch does this automatically. See the overview for a working snippet.