# Webfetch > webfetch.io is a web scraping API. Send a URL, get back rendered HTML, plain > text, markdown, or structured JSON extracted with CSS or XPath selectors. Request > parameters, defaults, credit costs and status-code semantics match ScrapingBee, so > an existing integration works after changing the base URL and the key. Operated by Tuxxin LLC (https://tuxxin.com), an IT company in business for nearly 16 years. Webfetch itself is new. Screenshots are captured on our own servers. ## Endpoint GET|POST https://api.webfetch.io/v1/ GET|POST https://webfetch.io/api/v1/ Both hosts serve the same API. Authenticate with `Authorization: Bearer wfk_...`. The `api_key` query parameter also works, for compatibility with ScrapingBee code. curl "https://api.webfetch.io/v1/?url=https%3A%2F%2Fexample.com&render_js=false" \ -H "Authorization: Bearer wfk_your_key" A key is REQUIRED. There is no keyless tier: rate limiting alone does not hold against a large address pool, and an anonymous endpoint leaves nobody to act against when it is abused. A request without a key returns 401 with code `key_required`. A free account starts with 1,000 credits and gets 250 more on the 1st of every month, banking up to 1,000 (unused free credits carry over, but the balance is never topped up past 1,000). It needs only a working email address: https://webfetch.io/signup. Signup sends a six-digit code to the address and that is the whole of it. No card. Upgrading while signed in to the key portal (or paying with the same email address) keeps the same key; the free balance does not carry over into a paid plan, one-time bonus credits do. A paid plan changes to another from the key portal, keeping the key and the renewal date: moving up takes effect at once and costs the price difference for the days left in the billing period, moving down takes effect on the renewal date. A canceled paid plan drops back to the free tier at the end of the paid period, starting again at 1,000 credits. If a payment fails, the plan keeps working for 72 hours before it drops back the same way. Free capacity is best effort. When paid traffic is heavy and open capacity falls to the share held back for paying customers, a free request gets HTTP 503 with code `free_tier_busy` and a `Retry-After` header. It is not charged, and paid plans are never turned away to make room for free traffic. ## Credits, not requests A request costs credits, and only a successful one is charged. no JavaScript rendering 1 JavaScript rendering 5 (this is the DEFAULT, as at ScrapingBee) premium proxy 10 static ISP proxies (addresses registered to internet premium proxy + rendering 25 providers, trusted more than datacenter IPs) stealth proxy 75 always rendered, in a browser hardened against common headless-detection checks. Goes out on a datacenter exit first and, if the site refuses it (an error, a block status or a challenge page), once more on an ISP exit. Billed for the exit that answered: 5 on datacenter, 25 on ISP or residential, 75 on mobile. Wf-Proxy-Pool names the pool; Wf-Proxy-Downgraded: true marks a call billed below 75 any failed request 0 search API, light request 10 Google, Bing, Yahoo and Brave results as JSON (see Search API) search API, regular 15 light_request=false; ads-only costs the same per-scan bandwidth ceiling, measured on the wire, not on the returned document: stealth pools (mobile, residential) 5 MB everything else 25 MB reaching it truncates rather than fails: content so far is returned and billed, with Wf-Truncated: true and Wf-Max-Bytes set. `render_js` defaults to **true**, so a call that does not set it costs 5 credits, not 1. A free account's starting 1,000 credits are therefore 200 rendered pages, or 1,000 raw fetches with `render_js=false`. Every response carries `Wf-Cost` with what was charged. Read live state at `GET /v1/usage` with a key. A paid plan's allowance resets each month on its renewal date, the day PayPal bills it; the free balance tops up at 00:00 UTC on the 1st. Promo codes grant one-time bonus credits at signup. They are spent only after the free balance or monthly allowance runs out, so they do not vanish at a reset. The remaining balance appears in `Wf-Bonus-Credits` and in `/v1/usage`. ## MCP server, for AI clients Webfetch speaks the Model Context Protocol, so an MCP-aware client can call it as a tool instead of scraping these pages. POST https://webfetch.io/mcp JSON-RPC 2.0, protocol 2025-06-18 { "mcpServers": { "webfetch": { "url": "https://webfetch.io/mcp", "headers": { "Authorization": "Bearer wfk_your_key" } } } } Two tools: fetch_page(url, render_js?, return_format?) return_format: markdown | text | html extract_data(url, extract_rules, render_js?) selectors to structured JSON Send `Authorization: Bearer `. A key is required, as it is on the HTTP API. Every result reports the credits it cost. The server card is at /.well-known/mcp/server-card.json. `/mcp` is POST only and answers 405 to GET. It is an endpoint, not a page, and is deliberately absent from the sitemap. ## Official SDKs npm install @tuxxin/webfetch Node 18+, no runtime dependencies pip install webfetch-io Python 3.9+, sync and async (imports as webfetch) composer require tuxxin/webfetch PHP 8.1+, cURL directly Source for all three: https://github.com/tuxxin/webfetch-sdk Same shape in all three: a client takes the key, `fetch()` returns the content plus `credits`, `status` and `resolved_url`, and errors raise a three-level hierarchy ending in a rate-limit type that carries `retry_after` (a 429, or a 503 when free capacity is busy). ## The parameters worth knowing url required, URL-encoded render_js default true; false for a plain HTTP fetch at 1 credit extract_rules JSON of selectors to structured JSON, the highest-value feature js_scenario click, fill, scroll and wait before capture return_page_text readable text, menus, headers and footers removed return_page_markdown the content as markdown, useful for a model: navigation, header, footer and banners removed, links absolute (https://webfetch.io/url-to-markdown) json_response wrap everything in one JSON envelope wait, wait_for, wait_browser settle conditions premium_proxy, stealth_proxy, country_code, own_proxy, session_id country_code the exit country. A plain request uses the datacenter pool's countries at no extra cost; premium_proxy and stealth_proxy use their pools' countries (https://webfetch.io/network). A country the route cannot exit from is refused with 400 country_unavailable, unbilled, never served from elsewhere. block_resources (default true) also strips third-party telemetry: ad exchanges, analytics, tag managers, error reporting, consent banners and social widgets. About 37% fewer bytes with 100% of the text preserved. The main document is never blocked, and apex domains you might scrape are never on the list. mode=auto ScrapingBee's Auto-Mode: tries configurations in order and stops at the first that works: raw (1), render_js (5), premium_proxy (10), premium_proxy + render_js (25), then stealth_proxy on a datacenter exit, then on an ISP exit (billed as stealth_proxy is). Failed ones cost nothing, so you pay once, for the one that succeeded (Wf-Auto-Cost, 0 if none did). Do not send render_js, premium_proxy, stealth_proxy or transparent_status_code with it (400). A 404, 410 or 413 is a real answer and is returned as-is; every other non-2xx status, a timeout, a failed render, or a challenge/CAPTCHA page climbs. max_cost credit ceiling for one mode=auto call (integer, at least 1) block_ads, block_resources, device, cookies, forward_headers timeout, transparent_status_code, tag respect_robots webfetch only, paid plans only; see the acceptable use policy Full reference: https://webfetch.io/documentation ## extract_rules {"title": "h1", "link": "a@href"} {"articles": {"selector": ".card", "type": "list", "output": { "title": "h2", "url": {"selector": "a", "output": "@href"}, "tags": {"selector": ".tag", "type": "list"} }}} `output` takes `text`, `html`, `@attribute`, `table_json`, `table_array`, `text_relevant`, `markdown_relevant`, or a nested object. `selector_type` is `auto`, `css` or `xpath`; under `auto` a leading `/` means XPath. `type` is `item` or `list`. ## Search API GET https://api.webfetch.io/v1/google?search=python+asyncio+tutorial GET https://api.webfetch.io/v1/bing?search=python+asyncio+tutorial GET https://api.webfetch.io/v1/yahoo?search=python+asyncio+tutorial GET https://api.webfetch.io/v1/brave?search=python+asyncio+tutorial Ranked search results as JSON, in the shape of ScrapingBee's Google Search API: the same path for Google (/api/v1/google), the same parameter names, defaults, response keys and credit costs, so a ScrapingBee Google integration switches by changing the host and the key. ScrapingBee has no Bing, Yahoo or Brave endpoint; those take the Google parameters. Also served at https://webfetch.io/api/v1/google and with ScrapingBee's older store/ segment (/api/v1/store/google). GET only. Search needs the robots.txt opt-out turned on for the key, because every engine's robots.txt disallows its result pages. Paid plans turn it on in the key portal. Free accounts request search access there (name, country, intended searches) and a person approves each request; approved free keys search one at a time. A free key without approval gets 403 `search_access_required` (403 `search_access_pending` while the request is reviewed); a key without the opt-out gets 403 `aup_required`. Parameters: `search` (required), `country_code` (us), `language` (en; Google and Bing; Yahoo and Brave follow the exit's location), `page` (1; Google and Bing 10 results a page, Yahoo 7, Brave about 20), `light_request` (true: 10 credits; false: 15), `search_type` (`classic`, or `ads` for the ads only, same price), `add_html`, `tag`, and on Google `nfpr` and `extra_params` (ScrapingBee's allow-list: filter, fpstate, locale, nfpr, safe, safe_search, tbm, tbs, udm; tbm and any udm but 14 are a 400 until those layouts are read). `nb_results` is accepted and ignored. Not supported yet (400): device=mobile, pages above 1, date_range, latitude, longitude, radius, sort_by, min_price, max_price. Response keys, always present: meta_data, organic_results (position from 1, title, url, displayed_url, description, domain, date, sitelinks), top_ads and bottom_ads (position, title, url = landing page, tracking_url, visual_url, domain, description), related_queries, related_searches, questions, and empty knowledge_graph, local_results, top_stories, news_results, images, map_results, hotel_results, ai_overviews. A page with no results or no ads returns empty lists and is billed; meta_data.zero_results_for_original_query is then true. A quoted phrase asks for an exact match: when the engine drops the quotes (no result shows the phrase or its longest word), organic_results is empty rather than results for another query. displayed_url is null where the engine shows something other than an address. A block, a timeout or a page that is not a results page is a 500 and is not billed; a blocked search is retried on up to three exits first (Wf-Search-Attempts). On Bing, a light request is a plain HTTP fetch with organic results and no ads (Bing shows ads only to a browser); regular, ads-only and page 2+ requests load in a browser. Google and Yahoo always load in a browser; a light request skips images, fonts and media. Google result URLs are the destinations (Google's /goto links are followed); a result whose link cannot be resolved is left out, never returned as a google.com link (Wf-Unresolved-Results counts them). ## Status codes Our own status is reported, not the target's: a target 2xx becomes 200, 404, 410 and 413 pass through, everything else becomes 500. Set `transparent_status_code=true` to get the target's code verbatim. 200, 404, 410 and 413 are billed; 400, 401, 403, 429, 500 and 503 are not. An anti-bot challenge, CAPTCHA or block page is never billed, whatever status it came with (many arrive as 200): it is returned as an error with code `challenge_page` and the vendor in `Wf-Challenge`. A site our proxy network refuses to connect to (banks, payment processors, some government services) is a 403 with code `target_restricted`, on every plan and pool. When our proxy cannot connect to the target, the error says why (`target_unreachable`, `dns_failed`, `timeout`, `fetch_failed`); a proxy's own error page is never passed on as the target's answer. A strict `js_scenario` whose step fails is a 422 with code `js_scenario_failed` and the `js_scenario_report`. Every error body is JSON with a stable `code` field. ## Limits and conduct robots.txt is honored by default. Opting out is available on paid plans only, needs a key with the acceptable use policy accepted, and is logged per request. The search endpoints need the same opt-out. Private, loopback, link-local and reserved addresses are refused, and the check is repeated on every redirect. Concurrent requests are capped per plan, and requests to a single target host are capped both per key and across all callers. Bandwidth is capped on the wire, not on the returned document: 5 MB through the stealth pools, 25 MB everywhere else. - Migrating from ScrapingBee: https://webfetch.io/scrapingbee-alternative - Acceptable use: https://webfetch.io/aup - Report abuse, or ask to have your domain refused for every customer: abuse@tuxxin.com ## Pricing Credit allowances match ScrapingBee's at 38 to 40% below their price. Free $0 1,000 to start, +250 / month 5 concurrent (banks up to 1,000) Starter $11.99 75,000 25 Pro $29.99 250,000 50 Scale $59.99 1,000,000 100 Business $149.99 3,000,000 200 Business+ $359.99 8,000,000 400 Custom from $499 no datacenter credit cap, dedicated hardware, concurrency bounded only by the machine. Stealth is metered bandwidth, so its allowance is sized and priced with the hardware. Quoted per requirement. Every plan is PRICE LOCKED FOR LIFE: the price you sign up at is the price you keep, for as long as the payment method stays active and the subscription does not lapse. https://webfetch.io/pricing ## Not implemented The AI extraction parameters (`ai_query`, `ai_extract_rules`, `ai_selector`) and `scraping_config`. Sending one is reported back in `Wf-Unknown-Parameters` rather than silently ignored. ## Pages - https://webfetch.io/documentation full API reference - https://webfetch.io/pricing plans and the credit table - https://webfetch.io/url-to-markdown URL to Markdown: what the converter removes and keeps, measured sizes - https://webfetch.io/firecrawl-alternative compared with Firecrawl and Jina Reader: price, caching, billing, migration - https://webfetch.io/search-api Search API overview - https://webfetch.io/search-api/google Google Search API: parameters, example responses - https://webfetch.io/search-api/bing Bing Search API: parameters, example responses - https://webfetch.io/search-api/yahoo Yahoo Search API: parameters, example responses - https://webfetch.io/search-api/brave Brave Search API: parameters, example responses - https://webfetch.io/scan scan a page or run a search in the browser, with JSON and CSV export - https://webfetch.io/network fetch node regions and proxy exit countries - https://webfetch.io/key passwordless key portal - https://webfetch.io/aup acceptable use policy - https://webfetch.io/privacy what is stored and for how long - https://webfetch.io/terms terms of service - https://webfetch.io/about who runs it - https://webfetch.io/faq common questions - https://webfetch.io/blog guides and updates - https://webfetch.io/contact support and sales