Skip to content

Web Scraper – Any Website to Clean Data

Try for free

Scrape any website without setup: paste links and get clean text, HTML or your own fields back. Protected pages switch to a real browser and a local IP on their own. Pay per saved page.

Web Scraper

Paste a URL and get the data back. Web Scraper takes any public page and returns it as clean text, the original HTML, Markdown, or exactly the fields you pick: product pages, search results, job boards, news, docs, and sites that put a bot check in front of you. It picks the way to load each page by itself. When a site needs a real browser or a visitor from its own country, Web Scraper handles that too, so you don't have to set anything up.

$0.84 per 1,000 pages on the Free plan, and $0.25 on Business. That price covers every page that loads without a browser, with proxies and compute included. A run that has to open Chrome also pays its actual browser, compute and proxy usage on top. The Free plan includes $5 of usage every month, so you can try it today.

2,917 / 3,000761 / 7611.1 s
pages loaded with the expected content on 100 hard sites, in our own run of a public benchmarkdaily checks passed in the 7 days to 17 Nov 2026median time for one page through the live endpoint

How we measured: the 2,917 of 3,000 comes from our own run on 17 Nov 2026, using the public site list and the pass rule of String's web data benchmark: 100 hard sites, 30 requests per site, and a page passes only when it answers with a 2xx status and contains the expected text. It is not an independent result. String is a competing vendor that runs this benchmark and ranks itself first, and we are not in its official run. In that official run (30 Oct 2026, on the previous version of the list), String scored 98.6%; our own run scored 97.2%. Scrape.ly re-tests Web Scraper on 11 fixed scenarios several times a day (passes from our test history, 10 to 17 Nov 2026). The 1.1 s figure is our own test from 14 Nov 2026: 30 calls on 10 public pages, none of which needed Chrome. Pages that need Chrome take longer (median 7.7 s in the same test).

🚀 Get data in 3 steps (no code)

  1. Paste your links into Start URLs. You can enter one page, a list of pages, or a text file of URLs.
  2. Choose what you want back. Under What do you want back? pick Markdown (the default for new inputs), clean text or HTML: each page returns its URL, title, the page's main content and its metadata. Add a Screenshot if you also want a picture of each page. To get more pages of a site, fill Link selector (for example a[href]) and Glob Patterns under Link following. For exact fields, see For developers below.
  3. Click Start. Download the results as JSON, CSV or Excel, or read them through the API.

Pages that fail are not saved as results. The run tells you, in plain words, what happened to each page that failed. For example: "blocked by the site's bot protection", "the page redirected to a login page" or "the site's own 404 page".

✨ Why the pages come back clean

  • It starts fast and adds a browser only when a page needs one. Every page is tried first as a fast, real-Chrome-like request. If the site answers with a bot check, a block page or an empty shell that only its scripts fill in, the page is loaded again in a real Chrome browser. That happens in the same run and on its own.
  • It visits each site from that site's country. A .pl shop is loaded from Poland and a .co.uk site from the UK. That means no region redirects and no "not available in your country" pages.
  • It learns each site. It remembers which way of loading worked on a domain, so the next pages start on the right path.
  • Every result is the real page. Login walls, error pages, cookie-only screens, unsolved bot checks and empty shells are never passed off as your page.
  • It's tested every day. Scrape.ly re-runs Web Scraper on fixed scenarios every day, and in the last 7 days every check passed.

🎯 What people use it for

  • 🛒 Prices and stock from any shop, marketplace or travel site, on a schedule.
  • 🤖 AI agents and chatbots that need to "read this page" live.
  • 📚 RAG and knowledge bases: crawl docs, blogs or help centers into clean text or Markdown.
  • 💼 Leads and listings: job boards, directories, real estate and classifieds.
  • 📰 Monitoring: news, competitor pages, policy pages and changelogs, on a schedule.
  • 🔬 Research: collect articles and public records across many sites, each loaded from its own country.

🤖 For AI agents: one page in one call

Web Scraper also runs as an always-warm endpoint, so there is no run to start and nothing to poll:

curl -G "https://api.scrape.ly/v2/querystone/web-scraper" \
  -H "Authorization: Bearer <your API token>" \
  --data-urlencode "url=https://books.toscrape.com/"

It answers with the page itself. Add format=json to get the status, the final URL and whether Chrome was needed. You can give the endpoint to an agent as a "fetch page" tool, or connect the Scrape.ly MCP server so any MCP client can run Web Scraper itself.

❓ FAQ

What does it cost? You pay per saved page. A page that loads without a browser has the flat per-page price shown at the top, with proxies and compute included. A run that opens Chrome also pays that run's actual usage (browser, compute and proxy) at your plan's rates.

Do I pay for pages that fail? A page that fails is never saved or charged as a result. That covers blocked pages, login walls, error pages and empty shells. If a run opened Chrome, though, the browser usage for those attempts is still billed.

Which sites work? Any public page. Web Scraper handles the common bot checks itself, loads each site from its own country, and switches to a real browser when a site needs one. A few very hard sites still fail at times. When that happens the run tells you why, and you can send us the URL at hello@scrape.ly.

Do I need to code? No. You can paste URLs, click Start and download the results. Code is optional: a small JavaScript function lets you pick exact fields (see below).

Can it read pages behind a login? It skips login walls by default. To read pages from your own account, pass your session cookies in initialCookies.

Can I schedule it or connect it to my tools? Yes. Save your input as a task and schedule it, or use the API, the CLI, webhooks or the MCP server.


🛠️ For developers

Everything below is optional. Use it when you want exact fields, a crawl with rules, or browser steps.

The page function in 1 minute

Each page runs your async JavaScript function with jQuery ready. Each object it returns becomes one row. With a Link selector and globs, matching links are followed under your page, depth and result limits.

Example 1: one page, its title and headings

Page function:

async function pageFunction(context) {
    const $ = context.jQuery;
    return {
        url: context.request.url,
        title: $('title').text().trim(),
        headings: $('h1, h2').map((i, el) => $(el).text().replace(/\s+/g, ' ').trim()).get(),
    };
}

Other input fields:

{
  "startUrls": [{ "url": "https://docs.python.org/3/tutorial/" }],
  "proxyConfiguration": { "useScrapelyProxy": true }
}

Example 2: crawl a category and extract every product

The category page is only used to find links. Each product page it links to becomes one row.

Page function:

async function pageFunction(context) {
    const $ = context.jQuery;
    // The category page: no row, only follow its links.
    if (!$('.product_main').length) return [];
    return {
        url: context.request.url,
        title: $('.product_main h1').text().trim(),
        price: $('.product_main .price_color').text().trim(),
        availability: $('.product_main .availability').text()
            .replace(/\s+/g, ' ').trim(),
    };
}

Other input fields:

{
  "startUrls": [
    { "url": "https://books.toscrape.com/catalogue/category/books/travel_2/index.html" }
  ],
  "linkSelector": "article.product_pod h3 a",
  "globs": [{ "glob": "https://books.toscrape.com/catalogue/*/index.html" }],
  "maxPagesPerCrawl": 6,
  "proxyConfiguration": { "useScrapelyProxy": true }
}

Rows from a real run of this input (2 of 5):

[
  {
    "url": "https://books.toscrape.com/catalogue/its-only-the-himalayas_981/index.html",
    "title": "It's Only the Himalayas",
    "price": "£45.17",
    "availability": "In stock (19 available)"
  },
  {
    "url": "https://books.toscrape.com/catalogue/under-the-tuscan-sun_504/index.html",
    "title": "Under the Tuscan Sun",
    "price": "£37.33",
    "availability": "In stock (7 available)"
  }
]

Example 3: a page that its scripts build, rendered in Chrome

This page has no quotes in its HTML: its JavaScript writes them. With useChrome, the page function sees the page after scripts ran, and returns one row per quote.

Page function:

async function pageFunction(context) {
    const $ = context.jQuery;
    return $('.quote').map((i, el) => ({
        quote: $(el).find('.text').text().trim(),
        author: $(el).find('.author').text().trim(),
        tags: $(el).find('.tag').map((j, t) => $(t).text()).get(),
    })).get();
}

Other input fields:

{
  "startUrls": [{ "url": "https://quotes.toscrape.com/js/" }],
  "useChrome": true,
  "proxyConfiguration": { "useScrapelyProxy": true }
}

First row of a real run of this input (10 rows from 1 page):

{
  "quote": "“The world as we have created it is a process of our thinking. It cannot be changed without changing our thinking.”",
  "author": "Albert Einstein",
  "tags": ["change", "deep-thoughts", "thinking", "world"]
}

One page in one call: the Standby endpoint

curl -G "https://api.scrape.ly/v2/querystone/web-scraper" \
  -H "Authorization: Bearer <your API token>" \
  --data-urlencode "url=https://books.toscrape.com/" \
  -d format=json

Answer from a real call (HTML shortened):

{
  "url": "https://books.toscrape.com/",
  "loadedUrl": "https://books.toscrape.com/",
  "status": 200,
  "chrome": false,
  "html": "<!DOCTYPE html>\n<!--[if lt IE 7]>      <html lang=\"en-us\" …"
}
  • Without format=json, the answer is the page's HTML itself, with the headers X-Page-Status (the site's HTTP status), X-Page-Url (the final URL after redirects) and X-Page-Chrome (1 when the page needed Chrome).
  • Options: country (a two-letter exit country; by default the page's domain country), autoChrome=false (never open Chrome), useChrome=true (always load the page in Chrome), and timeout (10 to 280 seconds, default 80). POST with the same fields as a JSON body works too.
  • The page goes through the same steps as a run: plain HTTP first, bot checks answered over HTTP, Chrome when needed, the site's own country, and what earlier requests learnt about the site.
  • A page that could not be loaded answers with an error of type page-not-loaded; a page that takes longer than timeout answers 408.
  • Every call also shows up in your runs, with the page in its dataset.

How fast it answers, from our own test on 14 November 2026 (production, 10 public pages of different kinds, 3 rounds, 3 calls at a time): the median call took 1.1 seconds, 25 of 30 calls came back in under 2 seconds, and none needed Chrome. With useChrome=true (5 of those pages, 2 rounds), the median was 7.7 seconds.

📤 Output

With What do you want back? set to Markdown, Clean text or HTML, each page becomes one row with url, pageTitle, the page in that format (markdown, text or html) and metadata; screenshotUrl is added when you asked for a screenshot. A row from a real run of the prefilled input (Markdown cut):

{
  "url": "https://docs.python.org/3/tutorial/",
  "pageTitle": "The Python Tutorial — Python 3.15.2 documentation",
  "markdown": "# The Python Tutorial\n\nTip\n\nThis tutorial is designed for *programmers* that are new to the Python language, **not** *beginners* who are new to programming.\n\nPython is an easy to learn, powerful programming language.…",
  "metadata": {
    "title": "The Python Tutorial — Python 3.15.2 documentation",
    "description": "Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax an...",
    "language": "en",
    "canonicalUrl": "https://docs.python.org/3/tutorial/index.html",
    "loadedUrl": "https://docs.python.org/3/tutorial/",
    "statusCode": 200,
    "image": "https://docs.python.org/3.15/_images/social_previews/summary_tutorial_index_4224eef5.png",
    "siteName": "Python documentation"
  },
  "#error": false,
  "#debug": {
    "requestId": "U7iDyOJioFS7xCzT",
    "url": "https://docs.python.org/3/tutorial/",
    "method": "GET",
    "retryCount": 0,
    "errorMessages": null,
    "loadedUrl": "https://docs.python.org/3/tutorial/",
    "statusCode": 200
  }
}

With Page function (advanced), each object your page function returns becomes one dataset row; an array becomes one row per element, and null saves only the #error and #debug metadata.

Every row carries:

  • #error — false on a stored row.
  • #debug.requestId — The request's id.
  • #debug.url — The URL that was requested.
  • #debug.method — The HTTP method.
  • #debug.retryCount — 0 on the first attempt.
  • #debug.errorMessages — null, or short names of earlier failed attempts such as HTTP 429 or TimeoutError.
  • #debug.loadedUrl — The final URL after redirects.
  • #debug.statusCode — The site's HTTP status.

With a page function, your own fields are whatever it returned. Empty strings, arrays and objects are left off the row; a real false or 0 stays. A field named error is not copied. To get the page's raw HTML, return document.documentElement.outerHTML: with Return the original HTML on (the default), the row then holds the HTML exactly as the site sent it (with Chrome: as Chrome rendered it).

📥 Input

Required: startUrls, proxyConfiguration. The form prefills both.

  • startUrls — Pages to scrape: objects with url, or requestsFromUrl for a text list of URLs. Optional method, headers, userData, payload, label, uniqueKey. An address without http:// or https:// is fetched as https://.
  • outputFormat — What do you want back? markdown, text (clean text) or html need no code: each page is one row with url, pageTitle, the page in that format and metadata (title, description, language, canonicalUrl, loadedUrl, statusCode, and author, publishedAt, image, siteName when the page has them). pageFunction runs your page function. Without this field, an input with a page function runs it (as before) and one without gets Markdown.
  • onlyMainContent — For markdown, text and html: only the page's main content, without menus, header, footer, sidebars, cookie banners and ads. On by default; off gives the whole page (html: exactly as it arrived). Link following always sees every link of the page.
  • screenshot — viewport or fullPage saves a picture of each page in the run's key-value store and adds its link to the page's rows as screenshotUrl (it opens without an API token for 30 days). These pages load in Chrome with images, fonts and styles, so Chrome's platform usage is billed; at most 4 (viewport) or 3 (fullPage) such pages load at a time per GB of run memory. none (default) takes none.
  • screenshotFormat — webp (default, smaller; at most 16,383 pixels high, the format's limit; a whole page over 12 million pixels is saved as PNG, since converting it would take more memory than the run has) or png.
  • pageFunction — Async JavaScript function run on each page (with outputFormat pageFunction). Return an object or an array of objects; an empty array saves nothing for that page.
  • proxyConfiguration — Scrapely Proxy (residential by default) or your own proxy URLs. Without a country, each page's exit country comes from its domain.
  • proxyRotation — RECOMMENDED (default), PER_REQUEST or UNTIL_FAILURE.
  • runMode — PRODUCTION (default) or DEVELOPMENT, which runs one page at a time without page timeouts.
  • linkSelector — CSS selector of links to follow, such as a[href]. Empty means links are not followed.
  • globs — Glob patterns a followed link must match.
  • pseudoUrls — Pseudo-URLs such as https://example.com/[.*], another way to say which links to follow.
  • excludes — Glob patterns of links never to follow. Default skips png, jpg, jpeg and pdf files.
  • keepUrlFragments — Treat #fragments as different pages. Off by default.
  • respectRobotsTxtFile — Skip followed links that robots.txt disallows. Start URLs are still fetched. Off by default.
  • maxPagesPerCrawl — Stop after this many pages. 0 (default) means no limit.
  • maxResultsPerCrawl — Stop after this many rows. 0 (default) means no limit.
  • maxCrawlingDepth — How many links away from the start URLs to follow. 0 (default) means no limit.
  • maxConcurrency — Pages loaded in parallel, at most 8.
  • maxRequestRetries — Extra attempts after a failed load or a page function error. Default 3.
  • pageLoadTimeoutSecs — Time limit for loading a page. Default 60.
  • pageFunctionTimeoutSecs — Time limit for the page function and the navigation hooks. Default 60.
  • useChrome — Load every page in Chrome. Off by default.
  • autoChrome — Use Chrome when needed: with useChrome off, load a page in Chrome when plain HTTP got a bot check, a block page or an empty script shell. On by default.
  • waitUntil — When a Chrome page counts as loaded: domcontentloaded (default), load, networkidle2 or networkidle0.
  • maxScrollHeightPixels — For Chrome pages, scroll down until new content stops or this distance is reached. Default 5000 with useChrome; 0 does not scroll.
  • closeCookieModals — For Chrome pages, click common cookie-consent controls before the page is read.
  • downloadMedia — For Chrome pages, load images, fonts, video and audio. Off by default.
  • downloadCss — For Chrome pages, load stylesheets. On by default.
  • ignoreCorsAndCsp — For Chrome pages, turn off CSP and cross-origin checks so a hook can fetch another origin.
  • preNavigationHooks / postNavigationHooks — Functions run before and after a page loads. For Chrome pages they get a browser page to click, wait or evaluate (see below).
  • injectJQuery — Make jQuery available as context.jQuery. On by default.
  • originalHtml — When the page function returns the unchanged whole document, store the HTML as the site sent it. On by default.
  • initialCookies — Cookies sent with matching requests, over HTTP and in Chrome. Their values are never logged.
  • ignoreSslErrors — Skip TLS certificate checks.
  • customData — Any JSON, passed to the page function as context.customData.
  • datasetName / keyValueStoreName — Named storages. Empty uses the run's own.
  • debugLog — Keep context.log.debug lines in the log.
  • browserLog — Keep console messages of the page's own scripts in the log.

The page function

context holds jQuery (when injected), body (the page as it arrived), request, response (status, headers), customData, input, env, log, enqueueRequest, skipLinks, getValue, setValue, globalStore, saveSnapshot and waitFor. document and window are the loaded page; innerText gives the visible text.

The function runs on the captured HTML in a plain DOM, not in the live browser, so the page's own scripts don't run there and there is no context.page. To click, scroll or wait for content, use waitUntil, or page.waitForSelector and page.evaluate in a post-navigation hook. enqueueRequest adds a URL directly (globs, pseudo-URLs and excludes don't filter it), and skipLinks stops link following for that page. saveSnapshot() writes the page's HTML to the key-value store as SNAPSHOT-BODY.

Hooks and XHR/fetch responses

For Chrome pages, the hooks' page has title(), url(), content(), evaluate(), $eval(), $$eval(), click(), waitForSelector(), setExtraHTTPHeaders(), addInitScript() and setViewportSize(). There are no network events or request interception (page.on, page.route, waitForResponse). Over plain HTTP, page is null.

Hooks written for Apify's Web Scraper work as they are: they get request, customData, log, page, id and proxyInfo (url, hostname, port, groups, countryCode; no password), and the globals URL, URLSearchParams, TextEncoder, TextDecoder, atob, btoa and console. session is undefined, and Node modules (require, process) are not available.

Many apps load their data as JSON after the page opens. To keep those responses, turn on useChrome and use these three parts. The pre-navigation hook records every fetch and XHR response in the page:

[async ({ page }) => {
  if (!page) return;
  await page.addInitScript(() => {
    const kept = (window.__kept = []);
    const keep = (url, status, body) => kept.length < 50 && kept.push({ url, status, body: String(body).slice(0, 2e5) });
    const f = window.fetch;
    window.fetch = async (...a) => { const r = await f(...a); r.clone().text().then((b) => keep(r.url, r.status, b), () => {}); return r; };
    const open = XMLHttpRequest.prototype.open;
    XMLHttpRequest.prototype.open = function (...a) {
      this.addEventListener('load', () => keep(this.responseURL, this.status, this.responseType === 'json' ? JSON.stringify(this.response) : this.responseText));
      return open.apply(this, a);
    };
  });
}]

The post-navigation hook waits for them and writes them into the document before its HTML is taken:

[async ({ page }) => {
  if (!page) return;
  await page.evaluate(async () => {
    for (let i = 0; i < 20 && !window.__kept.length; i += 1) await new Promise((r) => setTimeout(r, 500));
    await new Promise((r) => setTimeout(r, 1500));
    const node = document.createElement('script');
    node.type = 'application/json';
    node.id = 'kept-responses';
    node.textContent = JSON.stringify(window.__kept).replace(/</g, '\\u003c');
    document.body.appendChild(node);
  });
}]

The page function reads them, one row per response (filter by url to keep only the API calls you need):

async function pageFunction(context) {
    const node = document.getElementById('kept-responses');
    const kept = node ? JSON.parse(node.textContent) : [];
    return kept.map(({ url, status, body }) => {
        try { return { url, status, data: JSON.parse(body) }; } catch { return { url, status, text: body }; }
    });
}

⚠️ Limits

  • There is no sitemap reader: link following or a URL list covers what a sitemap would.
  • Screenshots need Chrome: a page that Chrome could not load and that came over plain HTTP has no screenshot (the run's status message names it).
  • At most 8 pages are loaded in parallel per run. For more throughput, start several runs or call the Standby endpoint in parallel.
  • The page function reads the captured HTML, not the live browser; browser actions go in the navigation hooks.
  • Hooks get no network events or request interception; use the XHR/fetch recipe above to keep API responses.
  • Page HTML over 8,000,000 characters is cut at that length.

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.