anyapi_web_scrape $0.00125 per call
Web Scrape. Scrape any web page and get its content back as clean Markdown (or HTML, or raw HTML) plus title and metadata. (AnyAPI · Open web & SEO data)
For AI agents: call anyapi_web_scrape
POST https://toll402.dev/v1/p/anyapi.web.scrape
{
"formats": [
"markdown",
"html"
],
"onlyMainContent": false,
"url": "https://example.com"
}Answers 402 with x402 payment requirements; pay with any x402 client (@x402/fetch, x402 for Python, toll402-client, toll402-mcp) or send a prepaid-credits key as x-toll402-key (https://toll402.dev/credits). Paid per call via x402 (USDC on Base) or with a prepaid-credits key (x-toll402-key, card at /credits); charged only on success. Start at /llms.txt or connect the MCP server:
npx -y toll402-mcp · remote https://toll402.dev/mcp.Input schema
{
"type": "object",
"properties": {
"blockAds": {
"type": "boolean",
"description": "When true (upstream default), strip ad and cookie-consent elements before capture. Set false to keep them."
},
"excludeTags": {
"type": "array",
"description": "CSS selectors to drop before capture (for example [\"nav\", \"footer\", \".ads\"]). Applied after includeTags."
},
"formats": {
"type": "array",
"description": "Which representations of the page to return. Any combination of: markdown (page content as Markdown), html (the page HTML exactly as the browser received it, including head and script tags). Each requested format is returned under the match",
"default": [
"markdown",
"html"
],
"examples": [
[
"markdown",
"html"
]
]
},
"includeTags": {
"type": "array",
"description": "CSS selectors to keep. When set, only content matching these selectors is captured (for example [\"article\", \"main\"] or [\"#content\"])."
},
"mobile": {
"type": "boolean",
"description": "When true, render the page with a mobile viewport and user agent instead of desktop. Some sites serve materially different content to mobile."
},
"onlyMainContent": {
"type": "boolean",
"description": "When true, return only the main article content, stripping navigation, headers, footers, and other boilerplate. Defaults to false to capture the full page.",
"default": false,
"examples": [
false
]
},
"url": {
"type": "string",
"description": "The URL of the page to scrape.",
"examples": [
"https://example.com"
]
},
"waitFor": {
"type": "integer",
"description": "Milliseconds to wait for the page to finish rendering before capture. Use this for JavaScript-heavy pages or single-page apps whose content loads after the initial paint. Capped at 15000 to stay within the request timeout. This wait is time"
}
},
"additionalProperties": true,
"required": [
"url"
]
}
MCP
{"mcpServers":{"toll402":{"command":"npx","args":["-y","toll402-mcp"],"env":{"TOLL402_WALLET_KEY":"0x..."}}}}