> ## Documentation Index
> Fetch the complete documentation index at: https://developers.scrapeunblocker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch the HTML (or parsed JSON) for any URL

> Routes the URL through the appropriate anti-bot bypass chain (custom domain plugins, super-profile browser, residential proxies, Scrapfly fallback). 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.



## OpenAPI

````yaml /api-reference/openapi.json post /getPageSource
openapi: 3.1.0
info:
  title: ScrapeUnblocker API
  description: >-
    Public API for the ScrapeUnblocker proxy/anti-bot service. Authenticate
    every request with the `x-scrapeunblocker-key` header. Three endpoints are
    documented here: page-source extraction, Google SERP scraping, and image
    fetch. All other paths exist for internal operations and are intentionally
    hidden from this spec.
  version: 1.0.0
servers:
  - url: https://api.scrapeunblocker.com
    description: Production
security: []
paths:
  /getPageSource:
    post:
      tags:
        - Scraping
      summary: Fetch the HTML (or parsed JSON) for any URL
      description: >-
        Routes the URL through the appropriate anti-bot bypass chain (custom
        domain plugins, super-profile browser, residential proxies, Scrapfly
        fallback). 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.
      operationId: get_page_source_getPageSource_post
      parameters:
        - name: url
          in: query
          required: true
          schema:
            type: string
            title: Url
        - name: method
          in: query
          required: false
          schema:
            type: string
            title: Method
        - name: value
          in: query
          required: false
          schema:
            type: string
            title: Value
        - name: proxy_country
          in: query
          required: false
          schema:
            type: string
            title: Proxy Country
        - name: time_sleep
          in: query
          required: false
          schema:
            type: integer
            title: Time Sleep
        - name: parsed_data
          in: query
          required: false
          schema:
            type: boolean
            default: false
            title: Parsed Data
        - name: get_cookies
          in: query
          required: false
          schema:
            type: boolean
            default: false
            title: Get Cookies
        - name: method_timeout
          in: query
          required: false
          schema:
            type: integer
            title: Method Timeout
      responses:
        '200':
          description: >-
            Success — body is HTML (or JSON when `parsed_data=true` /
            `get_cookies=true`).
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid URL or unsupported scheme.
        '403':
          description: Blocked by bot protection on every available bypass path.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '503':
          description: Upstream origin returned a server-side outage page; not a bot block.
      security:
        - ScrapeUnblockerKey: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ScrapeUnblockerKey:
      type: apiKey
      in: header
      name: x-scrapeunblocker-key
      description: Your ScrapeUnblocker API key. Apply on every request.

````