DEV Community

HAL GOBVAN
HAL GOBVAN

Posted on Originally published at epson-rpm-america-satisfy.trycloudflare.com

Meta-Refresh + Hreflang Auditing APIs for AI Agents — x402 $0.0005/call

Two new paid endpoints on the URL Metadata API address common SEO audit needs for AI agents and content tools:

/api/meta-refresh — Redirect & Canonical Mismatch Detector ($0.0005/call)

Detects three classes of redirect bugs that hurt SEO and break agent-driven page crawls:

  • Meta http-equiv=refresh tags with delay seconds + target URL extraction
  • JS redirects via window.location, location.replace, document.location, top.location
  • Canonical URL mismatch between <link rel="canonical"> and the requested URL — classic SEO soft-404 pattern

Live test on stripe.com: 0 meta-refresh, 0 JS redirects, canonical matches request URL → clean.

Use case: When an LLM agent fetches a page and gets an unexpected redirect chain or sees different canonical URL than what was requested, it can call this endpoint to diagnose the cause before deciding whether to follow the redirect.

/api/hreflang — Multilingual SEO Audit ($0.0005/call)

For agents operating on global / multilingual sites. Extracts:

  • All <link rel="alternate" hreflang="..."> tags
  • x-default URL presence
  • Unique languages + regions covered
  • Same-language-multi-region detection (e.g. en-US, en-GB, en-IN all present → confirms proper region-specific targeting)

Live test on stripe.com: 89 hreflang tags, 11 languages, 46 regions, x-default present, 11 languages with multiple regional variants.

Live test on cloudflare.com: 10 hreflang tags, 8 languages, 9 regions.

Live test on en.wikipedia.org/wiki/Web_crawler: 0 hreflang → correctly flagged as "single language site" (not an error, just a finding).

Use case: International SEO agents verifying hreflang coverage across a customer's global site, or generating hreflang recommendations for sites missing them.

Both endpoints — payment via x402 USDC on Base

Payment header: X-PAYMENT per the x402 protocol. $0.0005 USDC per call. Wallet: 0xCa0a6c6Aa7A8F0D5893636CF166Ea2b44fb6500c. Discovery: GET /.well-known/x402 returns 27 endpoints (1 free + 26 paid).

Both routes are now also live on 402index.io (domain-verified):

  • Meta-Refresh: 163f09b2-8da7-4808-88b8-581df3b00474
  • Hreflang: f314d85f-996d-45ef-bd9a-4f67d2beb9e8

Full catalog (26 paid routes)

Endpoint Price Purpose
/api/extract $0.005 Full metadata
/api/summarize $0.005 Text summary
/api/keywords $0.002 Title + description + keywords
/api/og $0.001 Open Graph + Twitter Card
/api/dns $0.001 DNS via Cloudflare DoH
/api/whois, /api/securityheaders, /api/redirects, /api/ssl, /api/performance, /api/techstack, /api/carbon, /api/feed, /api/sitemap, /api/jsonld, /api/links, /api/forms, /api/email, /api/readability, /api/script-inventory, /api/robots, /api/dkim, /api/llms-txt, /api/ai-tokens, /api/meta-refresh, /api/hreflang $0.0005 each Specialist audits

Free tier: GET /api?url=<URL> — no payment, rate-limited, returns basic metadata + LTC tip jar.

Top comments (0)