> ## 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 a single image as raw PNG bytes

> Navigates to the given image URL via a real browser + residential proxy, draws the first `<img>` to a canvas, and returns the resulting PNG. Use this when a regular GET against the image returns a challenge page or a tiny tracking pixel because the host requires a real browser context.



## OpenAPI

````yaml /api-reference/openapi.json post /getImage
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:
  /getImage:
    post:
      tags:
        - Scraping
      summary: Fetch a single image as raw PNG bytes
      description: >-
        Navigates to the given image URL via a real browser + residential proxy,
        draws the first `<img>` to a canvas, and returns the resulting PNG. Use
        this when a regular GET against the image returns a challenge page or a
        tiny tracking pixel because the host requires a real browser context.
      operationId: get_image_getImage_post
      parameters:
        - name: url
          in: query
          required: true
          schema:
            type: string
            title: Url
        - name: proxy_country
          in: query
          required: false
          schema:
            type: string
            title: Proxy Country
      responses:
        '200':
          description: PNG bytes (`image/png`).
          content:
            application/json:
              schema: {}
        '403':
          description: >-
            Image-processing failure (e.g. canvas tainted by CORS) or upstream
            block.
        '404':
          description: No image element found on the target URL.
        '408':
          description: Browser run timed out.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      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.

````