Scraping

Fetch the HTML (or parsed JSON) for any URL

Routes the URL through the appropriate anti-bot bypass chain (site-specific handlers, real-browser rendering, rotating proxies). Returns the prettified HTML by default. Set parsed_data=true to receive a structured JSON payload extracted via Schema.org / NEXT_DATA / AI-generated rules; the response body becomes { "data": { page_type, source, data } } instead of HTML. Use get_cookies=true to additionally receive cookies and the proxy address that served the request.

post/getPageSource

Request

  • Base URL: https://api.scrapeunblocker.com
  • URL: https://api.scrapeunblocker.com/getPageSource
  • Auth: API key in header x-scrapeunblocker-key

Query parameters

urlstring required
proxy_countrystring
parsed_databoolean
get_cookiesboolean
list_elementsboolean

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

stepsstring

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 (or JSON when 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.

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.