# Estimates the credit cost of a browser automation request without executing it.

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/billing/estimate:
    post:
      summary: >-
        Estimates the credit cost of a browser automation request without
        executing it.
      deprecated: false
      description: ''
      tags:
        - Billing
        - Billing
      parameters:
        - name: deviceName
          in: query
          description: 'The device to emulate. Example: "Desktop Chrome"'
          required: false
          example: ''
          schema:
            type: string
        - name: locale
          in: query
          description: 'The BCP-47 language tag to set in the browser. Example: "en-US"'
          required: false
          example: ''
          schema:
            type: string
        - name: timezone
          in: query
          description: >-
            The IANA time zone ID to set in the browser. Example:
            "America/New_York"
          required: false
          example: ''
          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
          example: ''
          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
          example: ''
          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
          example: ''
          schema:
            type: boolean
        - name: useResidentialProxy
          in: query
          description: |-
            Enables usage of residential proxies for the request.
            Residential proxies are more reliable but more expensive (5x cost).
            Default: false
          required: false
          example: ''
          schema:
            type: boolean
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicBrowserAutomationRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingEstimateResponse'
          headers: {}
          x-apidog-name: ''
      security:
        - ApiKey: []
          x-apidog:
            schemeGroups:
              - id: Mc0cG4A4XLcGS0YA4VR99
                schemeIds:
                  - ApiKey
            required: true
            use:
              id: Mc0cG4A4XLcGS0YA4VR99
            scopes:
              Mc0cG4A4XLcGS0YA4VR99:
                ApiKey: []
      x-apidog-folder: Billing
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1110200/apis/api-44734728-run
components:
  schemas:
    PublicBrowserAutomationRequest:
      required:
        - actions
      type: object
      properties:
        actions:
          type: array
          items:
            $ref: '#/components/schemas/BrowserAction'
          description: |-
            Ordered list of actions for the browser to perform.
            Actions will be executed sequentially from the first to the last.
      additionalProperties: false
      description: >-
        Request payload for launching a browser session. This is the
        public-facing version without ViewSettings.
      x-apidog-orders:
        - actions
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    BrowserAction:
      type: object
      properties:
        name:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        data:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - name
        - description
        - data
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    BillingEstimateResponse:
      type: object
      properties:
        totalActions:
          type: integer
          description: Total action count.
          format: int32
        visitUrlActions:
          type: integer
          description: Number of VisitUrl actions.
          format: int32
        disableJavaScript:
          type: boolean
          description: Whether JavaScript is disabled.
        useResidentialProxy:
          type: boolean
          description: Whether residential proxy is used.
        estimatedCost:
          type: integer
          description: Estimated credit cost.
          format: int32
      additionalProperties: false
      description: Billing estimate response.
      x-apidog-orders:
        - totalActions
        - visitUrlActions
        - disableJavaScript
        - useResidentialProxy
        - estimatedCost
      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: Mc0cG4A4XLcGS0YA4VR99
          schemeIds:
            - ApiKey
      required: true
      use:
        id: Mc0cG4A4XLcGS0YA4VR99
      scopes:
        Mc0cG4A4XLcGS0YA4VR99:
          ApiKey: []

```
