{"success":true,"data":{"site":"https://agentsvc.io","pages_crawled":3,"ok_count":3,"skipped_non_html":0,"discovered_urls":90,"pages":[{"url":"https://agentsvc.io/docs","ok":true,"status":200,"title":"Docs: how agents pay per call with x402 · agentsvc.io","description":"Quickstart, payment protocol (x402 v1 and v2), free trial, error codes and the reference for every service on agentsvc.io.","markdown":"Documentation\n\n# Pay per call. Nothing else to set up.\n\nEvery service is a JSON endpoint behind HTTP 402. If you already use an x402 client, you are done: point it at any endpoint below. Agents can read this whole page as Markdown at [/llms-full.txt](/llms-full.txt).\n\n## Free trial, no wallet\n\nEvery service has a free sample endpoint that runs its example input and returns the real output, so your agent can check format and quality. Your own input goes through the paid endpoint. Limits: 3 calls per service per day, heavy services (screenshot, PDF, OCR, scrape, resize) 1, 20 per IP in total. Send an empty body or the example input.\n\ncurl -X POST https://agentsvc.io/api/v1/try/web-scrape \\\\\n  -H \"Content-Type: application/json\" \\\\\n  -d '{\"url\":\"https://example.com\"}'\n\n# GET works too and uses the example input:\ncurl https://agentsvc.io/api/v1/try/weather\n\nThe response carries `trial.remaining_today` and `paid_endpoint`. Hitting the limit returns 429 with `resets_at`.\n\n## Quickstart with a wallet\n\nYou need an EVM wallet with USDC on Base (chain 8453), Polygon or Arbitrum, or a Solana wallet with USDC on Solana (Polygon and Arbitrum need an x402 v2 client). No ETH, POL or SOL is needed; the facilitator pays gas. Then:\n\nJavaScriptPythonMCP\n\ncopy\n\nnpm i @x402/fetch @x402/evm viem\nimport { wrapFetchWithPayment, x402Client } from \"@x402/fetch\";\nimport { registerExactEvmScheme } from \"@x402/evm/exact/client\";\nimport { privateKeyToAccount } from \"viem/accounts\";\nconst client = new x402Client();\nregisterExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM\\_PRIVATE\\_KEY) });\nconst payFetch = wrapFetchWithPayment(fetch, client);\nconst res = await payFetch(\"https://agentsvc.io/api/v1/proxy/web-scrape\", { method: \"POST\", headers: { \"Content-Type\": \"application/json\" }, body: JSON.stringify({ url: \"https://example.com\" }) });\nconsole.log(await res.json());\n\nSwap the URL for any endpoint from the [reference](#reference). The client handles 402, signing and retry. The…","word_count":272},{"url":"https://agentsvc.io/monitor","ok":true,"status":200,"title":"Monitoring API for AI agents: page, feed, wallet and token watch | agentsvc.io","description":"Change detection for agents: get only what changed since the last check, or let us poll and call your webhook. Web pages, RSS feeds, wallets and token risk. From $0.003 per check, paid with x402.","markdown":"Monitoring for agents\n\n# Only what changed since the last check\n\nFour watch services return a diff instead of the full data: web pages, RSS feeds, wallets and token risk. Poll them from your agent loop and pass back the cursor, or let us poll and call your webhook when something changes. No account, paid per check with USDC via x402.\n\n## 1\\. Poll from your loop\n\nThe first call saves a baseline and returns a `cursor`. Send it back next time and you get only the changes. The cursor advances only when a change is reported, so slow drifts add up and nothing slips through.\n\nimport { wrapFetchWithPayment, x402Client } from \"@x402/fetch\";\n// … register your wallet with registerExactEvmScheme(client, { signer })\nlet cursor;\nsetInterval(async () => {\n  const r = await payFetch(\"https://agentsvc.io/api/v1/proxy/token-watch\", {\n    method: \"POST\", headers: { \"Content-Type\": \"application/json\" },\n    body: JSON.stringify({ token: \"0x532f…42E4\", chain: \"base\", cursor }),\n  });\n  const { data } = await r.json();\n  cursor = data.cursor;\n  if (data.changed) console.log(data.alert\\_level, data.summary);\n}, 15 \\* 60\\_000);\n\n## 2\\. Or let us poll and call your webhook\n\nTop up credit once, create a watch with an interval and a webhook URL. We run the check on our side and POST a signed message only when something changed. Each check costs the normal price, charged from the credit.\n\n\\# 1. credit token (x402, +10% bonus): POST /api/v1/proxy/credits-topup-1\n# 2. create the watch\ncurl -X POST https://agentsvc.io/api/v1/watches \\\\\n  -H \"Authorization: Bearer asvc\\_cr\\_…\" -H \"Content-Type: application/json\" \\\\\n  -d '{\"service\":\"page-watch\",\"input\":{\"url\":\"https://example.com/pricing\"},\n       \"interval\\_minutes\":60,\"webhook\\_url\":\"https://your-agent.example/hook\"}'\n\nAlso available as MCP tools `watch_create`, `watch_list` and `watch_delete` at `https://agentsvc.io/mcp` (send the credit token as Authorization header). Details in the [docs](/docs#watches).\n\nRecipes\n\n## Alert when a token gets …","word_count":279},{"url":"https://agentsvc.io/mcp-server.mjs","ok":true,"status":200,"title":"mcp-server.mjs","description":"","markdown":"#!/usr/bin/env node\n// agentsvc.io MCP server (stdio)\n// Exposes every agentsvc.io service as an MCP tool and pays per call with USDC on Base via x402.\n//\n// Install once:   npm i @x402/fetch @x402/evm viem\n// Run:            EVM_PRIVATE_KEY=0x... node mcp-server.mjs\n//\n// Claude Desktop / any MCP client (claude_desktop_config.json):\n// {\n//   \"mcpServers\": {\n//     \"agentsvc\": {\n//       \"command\": \"node\",\n//       \"args\": [\"/path/to/mcp-server.mjs\"],\n//       \"env\": { \"EVM_PRIVATE_KEY\": \"0x...\" }\n//     }\n//   }\n// }\n//\n// EVM_PRIVATE_KEY: key of a wallet holding USDC on Base mainnet (chain 8453). No ETH needed.\n// Without a key the server still works but only for the free sample (example input, limited per day).\n\nimport { createInterface } from 'readline';\n\nconst BASE_URL = process.env.AGENTSVC_URL || 'https://agentsvc.io';\nconst PRIVATE_KEY = process.env.EVM_PRIVATE_KEY || process.env.X402_PRIVATE_KEY;\n\nfunction send(msg) {\n  process.stdout.write(JSON.stringify(msg) + '\\n');\n}\n\nlet services = [];\nlet payFetch = null;\nlet payError = null;\n\nasync function initPayment() {\n  if (!PRIVATE_KEY) return;\n  try {\n    const { wrapFetchWithPayment, x402Client } = await import('@x402/fetch');\n    const { registerExactEvmScheme } = await import('@x402/evm/exact/client');\n    const { privateKeyToAccount } = await import('viem/accounts');\n    const client = new x402Client();\n    registerExactEvmScheme(client, { signer: privateKeyToAccount(PRIVATE_KEY) });\n    payFetch = wrapFetchWithPayment(fetch, client);\n  } catch (err) {\n    payError = `x402 client not available (${err.message}). Run: npm i @x402/fetch @x402/evm viem`;\n  }\n}\n\nasync function loadServices() {\n  try {\n    const res = await fetch(`${BASE_URL}/api/v1/services?limit=500`);\n    const json = await res.json();\n    services = json.data || [];\n  } catch {\n    services = [];\n  }\n}\n\nfunction tools() {\n  return services.map(svc => ({\n    name: svc.slug.replace(/-/g, '_'),\n    description: `${svc.description} Cost: $${svc…","word_count":255}],"took_ms":177,"crawled_at":"2026-11-23T09:17:35.008Z"},"trial":{"free":true,"used_example_input":true,"input_used":{"url":"https://agentsvc.io/docs","max_pages":3,"max_chars":2000},"remaining_today":0,"resets_at":"2026-11-24T00:00:00.000Z","note":"Real output for the example input. The paid endpoint returns the same format for your own input."},"paid_endpoint":"https://agentsvc.io/api/v1/proxy/site-crawl","price_usdc":0.005,"payment":"x402, USDC on Base, Solana, Polygon or Arbitrum mainnet, no account needed","docs":"https://agentsvc.io/docs"}