timeoutMs can be set up to 3,600,000 ms (one hour) to handle slow or complex pages.
Task types
AdsCrawl offers three browser task endpoints, each optimized for a different output:HTML / Markdown
POST /html renders the target page and returns one of three content modes:
html(default) — the full rendered page HTML, or just the matched element whenselectoris setmarkdown— Readability-extracted article content converted to Markdownjson— a structured Readability article object withtitle,byline,excerpt,textContent,length, and more
waitUntil: "domcontentloaded" for most HTML extraction tasks — it is faster than waiting for images and stylesheets to load. Switch to "networkidle" only when the content you need is fetched by XHR after page load.
Screenshots
POST /screenshot captures a PNG image of the rendered page and streams it back directly as image/png. Key options:
fullPage: true(default) — captures the entire scrollable pageselector— captures only the first element matching the CSS selector; returns422 CONTENT_SELECTOR_NOT_FOUNDif the selector does not matchviewport— set width and height to control the rendering viewport before capture
SPA Extraction
POST /spa-extract extracts structured fields from dynamic single-page applications. You can define your own fields, run page actions (click, fill, scroll) before extraction, and use waitFor to wait for an element or text to appear. Two modes are available:
inspect— returns page candidates and a suggested field plan without consuming extra creditsextract— returns the data defined in yourfieldsmap or a namedtemplate
similarweb-overview, google-trends-explore, chrome-web-store-app-info). Retrieve the full list with GET /spa-extract/templates.
How credits work
One credit is deducted per browser task request. The charge happens after validation (so bad requests are free) but before the browser launches (so navigation failures still cost one credit). Check your balance in the dashboard before running large batches.Proxy behavior
Every browser task runs through a proxy. You control which proxy is used with two optional fields:countryCode and proxy are mutually exclusive — pass one or the other, never both.
Request limits
Browser tasks are stateless — each request creates a fresh browser context with no memory of previous visits. If you need to maintain cookies, local storage, or a logged-in session across multiple pages, use Remote CDP or Cloud Browsers instead.
API reference
POST /html
Fetch rendered HTML, Markdown, or structured article JSON from any URL.
POST /screenshot
Capture a full-page or element-level PNG screenshot.
POST /spa-extract
Extract structured fields from dynamic SPAs with optional templates and actions.