{"uid":"cap_c0YQFavljpd6CE4wVgJhj","slug":"swift-bot-labs-toolbox-web-extract-6b49eba1","name":"Swift Bot Labs Toolbox – Web Extract","description":"62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.","url":"https://x402-toolbox.swiftbotlab.workers.dev/v1/web/extract?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string"},"mode":{"enum":["main","all"],"type":"string","description":"\"main\" keeps the article/main region and drops nav/header/footer"},"format":{"enum":["markdown","text","both"],"type":"string"},"maxChars":{"type":"string"}},"additionalProperties":false},"discoverable":{"type":"boolean"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"web-extract","result":{"url":"https://example.com/","lang":"en","title":"Example Domain","words":25,"status":200,"markdown":"This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes."}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RthUXIhPTTZH8e47arstV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a URL and returns its content as cleaned markdown, plain text, or both, stripping nav/header/footer boilerplate","exampleAgentPrompt":"Fetch the article at https://www.bbc.com/news/technology-12345678 and give me the main readable content as markdown, ignoring nav and footer.","exampleUseCases":[{"title":"Summarize a news article","prompt":"Go to https://www.theguardian.com/technology/2024/ai-regulation and extract just the main article body as markdown so I can summarize it."},{"title":"Monitor competitor product page","prompt":"Fetch the content from https://competitor.com/product/pricing and return it as plain text so I can compare their pricing to ours."},{"title":"Archive a research paper page","prompt":"Extract the full text from https://arxiv.org/abs/2401.00001 — return both markdown and plain text — I want to save the readable content of the abstract and body."}],"resultDescription":"A JSON object containing: ok (boolean), tool name, and a result object with the page URL, detected language, title, word count, HTTP status, and the extracted content in the requested format (markdown, text, or both). The markdown field strips boilerplate navigation, headers, and footers when mode is 'main'.","failureModes":["Target URL returns non-200 status — result includes the HTTP status code but content may be empty","URL is behind a login wall or CAPTCHA — returns limited or empty content","Target site blocks headless/datacenter requests — may return error page content instead of article","maxChars too low — content is truncated at the specified limit","Invalid URL format in queryParams.url — API returns an error response","Dynamically rendered JavaScript-heavy pages may yield incomplete extraction since this is an HTTP fetch, not a browser"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call, no-registration web content extraction with clean markdown output, especially in agentic pipelines that already use x402 micropayments. It is ideal for single-URL fetches where you want boilerplate stripped and readable text returned. Prefer alternatives like Playwright-based scrapers if the target page requires JavaScript rendering or full browser execution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:38:55.661Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-toolbox-web-extract-6b49eba1"}