# Fetches the raw HTML source of a web page as a direct text/html response.

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/scrape/source:
    get:
      summary: >-
        Fetches the raw HTML source of a web page as a direct text/html
        response.
      deprecated: false
      description: >-
        This endpoint returns the raw source code of the page.

        Returns the standard HTTP error codes and ProblemDetails JSON on
        failure, but raw HTML on success.


        To perform a fast HTTP fetch (skipping the full browser render), pass
        `disableJavaScript=true` in the query string.


        Example Request:

        `GET /scrape/source?url=https://example.com`
      tags:
        - Scrape
        - Scrape
      parameters:
        - name: url
          in: query
          description: The absolute URL of the page to retrieve.
          required: true
          schema:
            type: string
        - name: deviceName
          in: query
          description: 'The device to emulate. Example: "Desktop Chrome"'
          required: false
          schema:
            type: string
        - name: locale
          in: query
          description: 'The BCP-47 language tag to set in the browser. Example: "en-US"'
          required: false
          schema:
            type: string
        - name: timezone
          in: query
          description: >-
            The IANA time zone ID to set in the browser. Example:
            "America/New_York"
          required: false
          schema:
            type: string
        - name: disableResourceExclusion
          in: query
          description: >-
            Disables default rules that block tracking and ad resources. Set to
            true to load all page resources.

            Default: false
          required: false
          schema:
            type: boolean
        - name: useAdvancedSpoofing
          in: query
          description: |-
            Enables advanced techniques to avoid bot detection.
            When enabled, it can happen that the device name will be ignored.
            Default: true
          required: false
          schema:
            type: boolean
        - name: disableJavaScript
          in: query
          description: >-
            Disables JavaScript rendering and executes the request using a
            faster, non-interactive mechanism.

            Useful for scraping static content at lower cost.

            Default: false
          required: false
          schema:
            type: boolean
      responses:
        '200':
          description: OK
          content:
            text/html:
              schema:
                type: string
          headers: {}
          x-apidog-name: ''
        '400':
          description: Bad Request
          content:
            text/html:
              schema:
                $ref: '#/components/schemas/ValidationProblemDetails'
          headers: {}
          x-apidog-name: ''
        '401':
          description: Unauthorized
          content:
            text/html:
              schema: &ref_0
                $ref: '#/components/schemas/ProblemDetails'
          headers: {}
          x-apidog-name: ''
        '404':
          description: Not Found
          content:
            text/html:
              schema: *ref_0
          headers: {}
          x-apidog-name: ''
        '500':
          description: Internal Server Error
          content:
            text/html:
              schema: *ref_0
          headers: {}
          x-apidog-name: ''
      security:
        - ApiKey: []
          x-apidog:
            schemeGroups:
              - id: 2jqiMrf9V3Y4sSUc6Mk1_
                schemeIds:
                  - ApiKey
            required: true
            use:
              id: 2jqiMrf9V3Y4sSUc6Mk1_
            scopes:
              2jqiMrf9V3Y4sSUc6Mk1_:
                undefined: []
      x-apidog-folder: Scrape
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1110200/apis/api-26531028-run
components:
  schemas:
    ValidationProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          x-apidog-orders: []
          properties: {}
          x-apidog-ignore-properties: []
          nullable: true
      additionalProperties:
        type: string
      x-apidog-orders:
        - type
        - title
        - status
        - detail
        - instance
        - errors
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties:
        type: string
      x-apidog-orders:
        - type
        - title
        - status
        - detail
        - instance
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    ApiKey:
      type: apikey
      description: >-
        API Key authentication for programmatic access. Enter your API key in
        the text input below.
      name: apiKey
      in: query
servers:
  - url: https://api.scrapingduck.com
    description: Prod Env
security:
  - ApiKey: []
    x-apidog:
      schemeGroups:
        - id: 2jqiMrf9V3Y4sSUc6Mk1_
          schemeIds:
            - ApiKey
      required: true
      use:
        id: 2jqiMrf9V3Y4sSUc6Mk1_
      scopes:
        2jqiMrf9V3Y4sSUc6Mk1_:
          undefined: []

```
