Skip to main content
Fetch the HTML (or parsed JSON) for any URL

Authorizations

x-scrapeunblocker-key
string
header
required

Your ScrapeUnblocker API key. Apply on every request.

Query Parameters

url
string
required

The page to fetch, a full http(s):// URL. URL-encode it when it has its own query string. Google search URLs answer 400: use /serpApi.

proxy_country
string

Two-letter ISO country code (e.g. de, us) of the country the request is made from, so the site serves that country's prices, language and content. Omit it and the country is picked for you. An unsupported code answers 400 with the list of available countries.

parsed_data
boolean
default:false

Return structured JSON extracted from the page (Schema.org, __NEXT_DATA__ or AI-generated rules) instead of HTML.

markdown
boolean
default:false

Return the page as clean Markdown (text/markdown) instead of HTML: headings, lists, tables, absolute links and images with alt text, without scripts, styles or markup. Built for LLMs, agents and RAG pipelines. Billed like an HTML call.

main_content_only
boolean
default:true

With markdown=true: keep only the main content, without navigation, site header, footer and sidebars. Set to false for the whole page.

get_cookies
boolean
default:false

Return JSON with the page html, the cookies set during the visit and the proxy used, instead of HTML. Takes precedence over parsed_data.

list_elements
boolean
default:false

Return the page's interactive elements (buttons, inputs, selects, links, forms) with ready-to-use selectors instead of HTML, to help build steps.

steps
string

JSON array of browser actions to run after the page loads (wait_for, wait_for_text, wait, click, type, select, press_key, scroll). The request is rendered in a real browser and runs once.

Response

Success — body is HTML (the target's own JSON as served when it answers with JSON; the original file bytes with Content-Type: application/pdf and a Content-Disposition filename when the URL leads to a PDF, also with markdown / parsed_data; Markdown with markdown=true, JSON with parsed_data=true / get_cookies=true). With parsed_data=true a page that rendered but yielded no structured data is still a 200: data.data is empty, data_extracted is false and html carries the rendered page. Also a dead-origin 5xx page, as served (can be empty): then the X-Origin-Status header carries the target's status. The same for the target's own 401, 451 or empty 500, confirmed from more than one exit. A target that answers 204 (or another 2xx with no body) comes back as an empty 200. Billed.