Website Scraper — Web Page HTML, Text & Screenshot API
Pricing
from $1.50 / 1,000 page results
Website Scraper — Web Page HTML, Text & Screenshot API
Website scraper that renders pages in a real browser engine: get the rendered HTML, visible text, page title and a PNG screenshot for every URL — including JavaScript-heavy pages that plain fetchers miss. Pay per delivered page; failed pages are never charged.
Pricing
from $1.50 / 1,000 page results
Rating
0.0
(0)
Developer
Agent X
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
1
Monthly active users
11 hours ago
Last modified
Categories
Features
Share
A website scraper for pages that need a real browser. Give it a list of URLs: each page is opened in a browser engine, its JavaScript runs to completion, and you get back what a visitor would actually see. Use it as a web page scraper, a rendered-HTML fetcher, or a URL screenshot API:
- Rendered HTML — the DOM after JavaScript, not the raw source a plain fetcher returns
- Visible text — the readable text of the rendered page
- Markdown — the page content as clean Markdown, the format AI tools and RAG pipelines read best
- Metadata — description, canonical, Open Graph / Twitter tags, JSON-LD, word count
- Links & images — every link and image on the page, as lists
- Page title
- Screenshots — viewport or full-page, PNG / JPEG / WebP
- PDF — the page printed to PDF by the browser engine
- Bounded crawling — follow same-domain links to a set depth and page cap
- Site map (URL discovery) — Map mode lists the URLs of a whole site: give it the site, get back every URL found in its sitemaps and page links, one row per URL, for one flat page price per site
Built for pages that plain HTTP fetchers cannot read: JavaScript apps, client-side rendered articles, dashboards and docs that arrive as an empty shell without a browser.
Input
| Field | Type | Default | Meaning |
|---|---|---|---|
urls | list of URLs | — (required) | Pages to render (in Map mode: sites to map) |
mode | string | scrape | scrape renders the URLs; map discovers the URLs of each site instead |
waitMs | number | 2000 | Extra wait after load so late rendering finishes |
includeHtml | boolean | true | Return rendered HTML |
includeText | boolean | true | Return visible text |
includeScreenshot | boolean | true | Return base64 PNG screenshot |
maxConcurrency | number | 3 | Pages rendered in parallel (1–8) |
includeMarkdown | boolean | false | Add a markdown field (content converted to Markdown) |
mainContent | boolean | false | Extract the main content block (contentHtml); text and Markdown are built from it |
includeMetadata | boolean | false | Add a metadata field (description, canonical, OG/Twitter tags, JSON-LD, word count, final URL) |
includeLinks | boolean | false | Add a links field: every link as {url, text} |
includeImages | boolean | false | Add an images field: every image as {url, alt} |
includePdf | boolean | false | Add a pdfBase64 field (page printed to PDF) |
screenshotFullPage | boolean | false | Capture the full scrollable page height |
screenshotFormat | string | png | png, jpeg or webp |
viewportWidth / viewportHeight | number | — | Browser viewport size, e.g. 390×844 for a phone |
waitForSelector | string | — | Wait until this CSS selector exists before extracting |
scrollToBottom | boolean | false | Scroll to the bottom first (lazy-loaded content) |
removeSelectors | list | — | CSS selectors of elements to delete before extraction |
dismissCookieBanners | boolean | false | Remove common cookie-consent banners first |
headers | object | — | Extra HTTP headers sent with every page load |
cookies | list | — | Cookies to set before loading: {name, value, domain?} |
crawlDepth | number | 0 | Follow links this many levels deep (max 5) |
maxPages | number | 25 | Total page cap when crawling |
crawlSameDomainOnly | boolean | true | Crawling: stay on the starting domain |
crawlIncludePatterns / crawlExcludePatterns | list | — | Crawling: only follow / never follow URLs containing these fragments |
mapMaxUrls | number | 1000 | Map mode: maximum discovered URLs returned per site (up to 5000) |
mapSearch | string | — | Map mode: return only URLs containing this text (case-insensitive) |
includeSubdomains | boolean | false | Map mode: also collect URLs on subdomains of the site |
agentContext | boolean | false | Add an agentContext object to every delivered row (see For AI agents below). Never changes charges |
Output
One dataset item per URL:
{"url": "https://example.com/","status": 200,"title": "Example Domain","html": "<html>…rendered DOM…</html>","text": "Example Domain This domain is for use in …","screenshotBase64": "iVBORw0KGgo…","fetchedAt": "unix:1763596800"}
Optional fields appear only when switched on: markdown, contentHtml
(main-content mode), metadata, links, images, pdfBase64.
Pages that fail to load, return an HTTP error (4xx/5xx), or return no
readable content, come back as { "url": …, "status": …, "error": "…" }
and are never charged.
In Map mode the output is one row per discovered URL instead:
{"url": "https://example.com/about","source": "sitemap","site": "https://example.com","lastmod": "2026-01-15"}
source is sitemap for URLs declared in the site's sitemap files
(lastmod is included when the sitemap provides it) and link for
URLs found in the links of the site's pages. URLs are deduplicated
and stay on the site's own domain unless includeSubdomains is on.
A site that cannot be reached comes back as a single error row and
is never charged.
For AI agents
Turn on agentContext and every delivered row also carries an
agentContext object, shaped the way AI-agent context APIs answer:
the content cleaned and ready to paste straight into an LLM prompt,
where it came from, and how big it is — no HTML scraping or token
counting left to the caller.
{"agentContext": {"text": "# Example Domain\n\nThis domain is for use in documentation examples…","source": { "type": "page", "url": "https://example.com/", "title": "Example Domain" },"citation": "\"Example Domain\" — https://example.com/","tokens": 21,"retrievedAt": "2026-11-22T10:15:30Z"}}
text— the page content as clean Markdown (built from the main content whenmainContentis on), with page machinery stripped. In Map mode it is the discovered URL itself.source—{type, url, title}: where this row came from.citation— a ready-to-paste citation line for the row.tokens— estimated token count oftext(≈4 characters per token), so an agent can budget its context window.retrievedAt— ISO 8601 UTC time the row was retrieved.
agentContext is off by default, adds no rows, and never changes
charges — it rides on the rows you already pay for.
Example input
{"urls": ["https://example.com/", "https://news.ycombinator.com/"],"waitMs": 2000,"includeScreenshot": true}
Markdown + metadata for an AI pipeline, cookie banner removed:
{"urls": ["https://blog.example.com/post"],"includeMarkdown": true,"includeMetadata": true,"includeLinks": true,"dismissCookieBanners": true,"includeScreenshot": false}
Mobile full-page screenshot:
{"urls": ["https://example.com/"],"viewportWidth": 390,"viewportHeight": 844,"screenshotFullPage": true,"screenshotFormat": "jpeg"}
A bounded same-domain crawl:
{"urls": ["https://en.wikipedia.org/wiki/Kitesurfing"],"crawlDepth": 1,"maxPages": 25,"crawlSameDomainOnly": true}
Discover every URL on a site (Map mode), keeping only the ones about pricing:
{"mode": "map","urls": ["https://example.com"],"mapMaxUrls": 1000,"mapSearch": "pricing"}
Use it from code (API)
curl -X POST "https://api.apify.com/v2/acts/agentxpro~web-page-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \-H "Content-Type: application/json" \-d '{ "urls": ["https://example.com/"], "includeMarkdown": true }'
from apify_client import ApifyClientclient = ApifyClient("YOUR_API_TOKEN")run = client.actor("agentxpro/web-page-scraper").call(run_input={"urls": ["https://example.com/"], "includeMarkdown": True,})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item["title"], len(item.get("markdown", "")))
Use with AI agents (MCP)
Connect your MCP client (Claude, ChatGPT, Cursor) to Apify's official
MCP server (https://mcp.apify.com) with your Apify token and add this
actor (agentxpro/web-page-scraper) to the tool list — the agent can
then render pages, read Markdown and take screenshots in plain
language. Pay-per-page pricing applies exactly as with API runs.
Use cases
- Scrape JavaScript websites — React, Vue and other single-page apps that return an empty shell to plain fetchers.
- Screenshot any URL — visual checks, page-change monitoring, evidence captures, thumbnails for reports.
- Feed RAG and AI agents — clean visible text or Markdown from pages that need rendering first, ready for indexing; metadata and link lists included when you want them.
- Rendered HTML for debugging — see the exact DOM your visitors (and search engines) get after scripts run.
Pricing
Pay per event, no subscription:
- $0.0015 per delivered page ($1.50 per 1,000 pages)
- Map mode: $0.0015 per site mapped — one flat page price per
site, however many URLs it returns (up to your
mapMaxUrlscap) - $0.0001 actor start per run
- Failed pages are free — you only pay for pages you actually receive. Unreachable sites in Map mode are free too.
FAQ
How is this different from a regular website scraper? Regular scrapers fetch raw HTML — on JavaScript-heavy sites that's an empty shell. This actor renders the page in a browser engine first, so you get the content a visitor actually sees.
Can it scrape React / single-page app websites? Yes — that is exactly what it is built for. If a page needs JavaScript to show its content, this is the tool; if a page is plain HTML, a cheaper fetcher will do.
How do I take a screenshot of a URL?
Leave includeScreenshot on (the default). Every delivered page includes a base64-encoded PNG of the rendered viewport in screenshotBase64.
Does it bypass CAPTCHAs, logins or paywalls? No. Pages behind bot checks, login walls or paywalls come back as errors or empty — and failed pages are never charged.
What does one page cost? $0.0015 per delivered page ($1.50 per 1,000 pages), plus a $0.0001 run start. Failed pages are free.
Can I get Markdown instead of HTML?
Yes — includeMarkdown adds a clean Markdown version of the content (code and style sections stripped). Pair it with mainContent to get Markdown of just the article body.
Can it crawl a site?
Yes, in a bounded way: crawlDepth follows links from your starting pages (same domain by default), capped by maxPages, with include/exclude URL patterns to steer it. Every delivered page is billed at the normal per-page price.
Can it take full-page or mobile screenshots?
Yes — screenshotFullPage captures the whole scrollable height, viewportWidth/viewportHeight set the window size (e.g. 390×844 for a phone), and screenshotFormat picks PNG, JPEG or WebP.
Can it save a page as PDF?
Yes — includePdf adds the browser-printed PDF, base64-encoded, as pdfBase64.
Can it list all the URLs on a website?
Yes — Map mode. Set mode to map and give it the site: you get back every URL found in the site's sitemaps and the links on its pages (deduplicated, same-domain unless you allow subdomains), one row per URL, for one flat page price per site. Use mapSearch to keep only URLs containing a word.
Honest limits
- This is a lightweight, experimental browser engine, not a full desktop browser. Most pages render well; some very heavy or unusual pages may render imperfectly.
- No CAPTCHA or bot-wall bypass. Pages protected by bot checks, login walls or paywalls will come back as errors or empty — this tool does not try to defeat them.
- Screenshots are the visible viewport by default; full-page capture is
available with
screenshotFullPage. - Map mode reads sitemaps and follows on-site links without rendering pages, so URLs that only appear after JavaScript runs may be missed. If you need those, scrape the site with crawl depth instead.
Support
Questions and bug reports: use the Issues tab on this Actor's page.