> ## Documentation Index
> Fetch the complete documentation index at: https://browseruse-0aece648-reagan-eng-5397-make-docs-better-for-ag.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Search the web

> Run a web search and get back a ranked list of LLM-optimized results. Each successful request is billed to your project balance.



## OpenAPI

````yaml /cloud/openapi/v3.json post /search
openapi: 3.1.0
info:
  title: Browser Use Public API v3
  summary: Browser Use session-based agent API (v3)
  version: 3.0.0
servers:
  - url: https://api.browser-use.com/api/v3
    description: Production server
security: []
paths:
  /search:
    post:
      tags:
        - Search
      summary: Search the web
      description: >-
        Run a web search and get back a ranked list of LLM-optimized results.
        Each successful request is billed to your project balance.
      operationId: search
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequest'
      responses:
        '200':
          description: Standardized, ranked search results.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResponse'
        '400':
          description: Missing or invalid `query`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchError'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchError'
        '402':
          description: Insufficient balance — add credits to continue.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchError'
        '429':
          description: Rate limit exceeded — retry later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchError'
        '502':
          description: The search request failed — retry later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchError'
        '503':
          description: Authentication or billing is temporarily unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    SearchRequest:
      type: object
      required:
        - query
      properties:
        query:
          type: string
          minLength: 1
          description: >-
            The search query in natural language. Returns a ranked set of
            relevant web results.
          example: latest research on protein folding
    SearchResponse:
      type: object
      required:
        - results
      properties:
        results:
          type: array
          description: Ranked list of web results, most relevant first.
          items:
            $ref: '#/components/schemas/SearchResult'
    SearchError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: A generic, provider-agnostic error message.
          example: insufficient balance
    SearchResult:
      type: object
      required:
        - url
        - content
      properties:
        title:
          type: string
          description: Title of the source. Omitted when the source does not provide one.
          example: An Introduction to Protein Folding
        url:
          type: string
          format: uri
          description: Canonical URL of the source.
          example: https://example.com/protein-folding
        published_date:
          type: string
          description: >-
            Publication date of the source (YYYY-MM-DD). Omitted when the source
            does not provide one.
          example: '2026-04-08'
        content:
          type: string
          description: >-
            Relevant excerpts from the source, joined into a single markdown
            string and optimized for LLM consumption.
          example: |-
            # An Introduction to Protein Folding

            ...
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-Browser-Use-API-Key

````