# x402-seo-api-mcp ## Paid Endpoints (x402 + MCP) - [seo_keyword_ideas](https://x402-seo-api.restockalarm.workers.dev/v1/keyword-ideas) - $0.01 per call, USDC on Base (x402) — Live long-tail SEO keyword ideas for a seed keyword ($0.01 USDC on Base). - [seo_questions](https://x402-seo-api.restockalarm.workers.dev/v1/questions) - $0.02 per call, USDC on Base (x402) — People-Also-Ask SEO questions for a seed keyword ($0.02 USDC on Base). - [seo_serp_snippets](https://x402-seo-api.restockalarm.workers.dev/v1/serp-snippets) - $0.02 per call, USDC on Base (x402) — Live SERP snippets and search titles/descriptions for a keyword ($0.02 USDC on Base). - [SEO Lite](https://x402-seo-api.restockalarm.workers.dev/v1/seo-lite) - $0.005 per call, USDC on Base (x402) — Lite AI-visibility check: page title, robots.txt presence and AI-bot rules (GPTBot/ClaudeBot/PerplexityBot/OAI-SearchBot) with a quick OK/WARN verdict ($0.005 USDC on Base). - [AI Crawl Readiness](https://x402-seo-api.restockalarm.workers.dev/v1/ai-crawl-readiness) - $0.03 per call, USDC on Base (x402) — Checks whether AI agents can find and cite a site: robots.txt rules for GPTBot/ClaudeBot/PerplexityBot/OAI-SearchBot, llms.txt, sitemap, meta, canonical, JSON-LD and response time, scored 0-100 with prioritized fixes ($0.03 USDC on Base). - [seo_paa_expand](https://x402-seo-api.restockalarm.workers.dev/v1/paa-expand) - $0.01 per call, USDC on Base (x402) — Expand a People-Also-Ask question into related sub-questions ($0.01 USDC on Base). - Discovery: https://x402-seo-api.restockalarm.workers.dev/.well-known/x402 · https://x402-seo-api.restockalarm.workers.dev/.well-known/mcp.json · https://x402-seo-api.restockalarm.workers.dev/openapi.json # x402 SEO API > Pay-per-call SEO keyword research API for AI agents. No account, no API key: pay per request in USDC on Base via the x402 protocol (HTTP 402). - Base URL: https://x402-seo-api.restockalarm.workers.dev - Network: Base mainnet (eip155:8453), token USDC - payTo: 0x7B97303d62517eA9E26D1E1b199Eac42a487F430 - Manifest: https://x402-seo-api.restockalarm.workers.dev/.well-known/x402.json - OpenAPI: https://x402-seo-api.restockalarm.workers.dev/openapi.json ## Endpoints (GET) - https://x402-seo-api.restockalarm.workers.dev/v1/seo-lite?domain= — $0.005 — Lite AI-visibility check: page title, robots.txt presence and AI-bot rules (GPTBot/ClaudeBot/PerplexityBot/OAI-SearchBot) with a quick OK/WARN verdict - https://x402-seo-api.restockalarm.workers.dev/v1/ai-crawl-readiness?domain= — $0.03 — AI crawl readiness audit: robots.txt AI-bot rules, llms.txt, sitemap, meta, JSON-LD, scored 0-100 with fixes - https://x402-seo-api.restockalarm.workers.dev/v1/keyword-ideas?keyword= — $0.01 — Keyword ideas (modifiers, long-tail) for a seed keyword - https://x402-seo-api.restockalarm.workers.dev/v1/questions?keyword= — $0.02 — People-also-ask style questions for a keyword - https://x402-seo-api.restockalarm.workers.dev/v1/serp-snippets?keyword= — $0.02 — Live organic SERP results (title, URL, domain, snippet) for a keyword - https://x402-seo-api.restockalarm.workers.dev/v1/paa-expand?question= — $0.01 — Expand one PAA question into related questions - https://x402-seo-api.restockalarm.workers.dev/v1/tip — $1.00 — Tip / support the API ## Pay by card instead (API key) Buy an API credit pack by card (https://space-command-kits-shop.fourthwall.com/products/api-credits-250-calls | https://space-command-kits-shop.fourthwall.com/products/api-credits-1000-calls | https://space-command-kits-shop.fourthwall.com/products/api-credits-5000-calls), claim your key at https://api-keys.restockalarm.workers.dev/claim and send header X-API-Key. Credits per call = x402 price / $0.005: keyword-ideas 2, questions 4, serp-snippets 4, paa-expand 2 (tip excluded). ## How to pay (x402) 1. GET an endpoint without payment -> HTTP 402 with payment requirements (scheme exact, price, payTo, network). 2. Sign an EIP-3009 USDC authorization with an x402 client (e.g. x402-fetch / @x402/fetch) and retry with the X-PAYMENT / PAYMENT-SIGNATURE header. 3. Response: JSON result. Settlement via facilitator https://x402.dexter.cash. ## Related - Catalog: https://product-katalog.restockalarm.workers.dev/llms.txt ## Buy a call (x402 v2, USDC on Base) — every paid route - GET https://x402-seo-api.restockalarm.workers.dev/v1/keyword-ideas?keyword=pokemon%20tcg — $0.01 USDC — long-tail keyword ideas Query: keyword (required) = seed keyword, 1-100 chars - GET https://x402-seo-api.restockalarm.workers.dev/v1/questions?keyword=pokemon%20tcg — $0.02 USDC — People-Also-Ask questions Query: keyword (required) = seed keyword, 1-100 chars - GET https://x402-seo-api.restockalarm.workers.dev/v1/serp-snippets?keyword=pokemon%20tcg — $0.02 USDC — SERP snippet templates Query: keyword (required) = seed keyword, 1-100 chars - GET https://x402-seo-api.restockalarm.workers.dev/v1/seo-lite?domain=example.com — $0.005 USDC — Lite AI-visibility check Query: domain (required) = bare domain (or pass url) - GET https://x402-seo-api.restockalarm.workers.dev/v1/ai-crawl-readiness?domain=example.com — $0.03 USDC — AI crawl readiness audit (0-100) Query: domain (required) = bare domain (or pass url) - GET https://x402-seo-api.restockalarm.workers.dev/v1/paa-expand?question=how%20to%20find%20pokemon%20cards%20in%20stock — $0.01 USDC — expand one PAA question Query: question (required) = question text, 1-200 chars How it works: 1) call the URL without payment -> HTTP 402 with the quote (header PAYMENT-REQUIRED, x402 v2: scheme exact, network eip155:8453, asset USDC, amount, payTo). 2) an x402 client signs a USDC transfer authorization (no gas for you) and retries with header PAYMENT-SIGNATURE. 3) you get HTTP 200 with JSON, plus a PAYMENT-RESPONSE receipt header. Bad or missing input answers HTTP 400 with an example BEFORE any payment, and any failed call (status >= 400) is never charged. Browser apps: CORS is open (Access-Control-Allow-Origin *; PAYMENT-REQUIRED and PAYMENT-RESPONSE are exposed). See the quote (free): curl -i "https://x402-seo-api.restockalarm.workers.dev/v1/keyword-ideas?keyword=pokemon%20tcg" Pay and call (Node 20+): npm i @x402/fetch @x402/evm viem import { wrapFetchWithPayment, x402Client } from "@x402/fetch"; import { ExactEvmScheme } from "@x402/evm/exact/client"; import { privateKeyToAccount } from "viem/accounts"; const client = new x402Client(); client.register("eip155:*", new ExactEvmScheme(privateKeyToAccount(process.env.EVM_PRIVATE_KEY))); // wallet with USDC on Base const payFetch = wrapFetchWithPayment(fetch, client); const res = await payFetch("https://x402-seo-api.restockalarm.workers.dev/v1/keyword-ideas?keyword=pokemon%20tcg"); // 402 -> signs USDC payment -> retries -> 200 console.log(res.status, await res.json()); Buyer quickstart: https://docs.x402.org/getting-started/quickstart-for-buyers No wallet? Pay by card with an API key: https://api-keys.restockalarm.workers.dev/