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

# /brave/search

> Brave web search by query. Returns organic web results with url, title, displayed url, description, date, favicon, thumbnail, sponsored flag and site deep links. Supports region, language, safe search and recency filters.

**Price:** 1 credit

**💡 AI Hint:** Brave web search by query. Brave runs its own independent search index (not Google/Bing). Each result has url, title, displayed_url, description, date, favicon, thumbnail, is_sponsored and deep_links. Use count to control how many results to return; country, search_lang, safesearch and tf to filter.



## OpenAPI

````yaml /openapi-filtered.json post /api/brave/search
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/brave/search:
    post:
      tags:
        - /brave
      summary: /brave/search
      description: >-
        Brave web search by query. Returns organic web results with url, title,
        displayed url, description, date, favicon, thumbnail, sponsored flag and
        site deep links. Supports region, language, safe search and recency
        filters.


        **Price:** 1 credit


        **💡 AI Hint:** Brave web search by query. Brave runs its own
        independent search index (not Google/Bing). Each result has url, title,
        displayed_url, description, date, favicon, thumbnail, is_sponsored and
        deep_links. Use count to control how many results to return; country,
        search_lang, safesearch and tf to filter.
      operationId: __api_brave_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BraveSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/BraveSearchResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BraveSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        q:
          type: string
          minLength: 1
          description: Search query
          examples:
            - python fastapi
        count:
          type: integer
          minimum: 1
          description: Maximum number of results to return
        country:
          $ref: '#/components/schemas/BraveCountry'
          description: Region of the search results
          default: all
        search_lang:
          anyOf:
            - $ref: '#/components/schemas/BraveSearchLang'
            - type: 'null'
          description: Language of the result content (ISO 639-1)
        safesearch:
          $ref: '#/components/schemas/BraveSafeSearch'
          description: Adult content filtering level
          default: moderate
        tf:
          $ref: '#/components/schemas/BraveTimeFilter'
          description: Restrict results to a recency window
          default: any
      type: object
      required:
        - q
        - count
    BraveSearchResult:
      properties:
        '@type':
          type: string
          default: BraveSearchResult
        url:
          type: string
        position:
          anyOf:
            - type: integer
            - type: 'null'
        displayed_url:
          anyOf:
            - type: string
            - type: 'null'
        description:
          anyOf:
            - type: string
            - type: 'null'
        date:
          anyOf:
            - type: string
            - type: 'null'
        favicon:
          anyOf:
            - type: string
            - type: 'null'
        thumbnail:
          anyOf:
            - type: string
            - type: 'null'
        is_sponsored:
          type: boolean
          default: false
        deep_links:
          items:
            $ref: '#/components/schemas/BraveDeepLink'
          type: array
          default: []
      type: object
      required:
        - url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    BraveCountry:
      type: string
      enum:
        - all
        - us
        - ar
        - au
        - at
        - be
        - br
        - ca
        - cl
        - cn
        - de
        - dk
        - fi
        - fr
        - gr
        - hk
        - in
        - id
        - it
        - jp
        - kr
        - my
        - mx
        - nl
        - nz
        - 'no'
        - ph
        - pl
        - pt
        - ru
        - sa
        - sg
        - za
        - es
        - se
        - ch
        - tw
        - tr
        - gb
    BraveSearchLang:
      type: string
      enum:
        - en
        - az
        - id
        - ms
        - br
        - ca
        - cs
        - cy
        - da
        - de
        - et
        - es
        - eu
        - fr
        - gl
        - hr
        - it
        - sw
        - lv
        - lt
        - hu
        - nl
        - nb
        - pl
        - pt
        - ro
        - sq
        - sk
        - sl
        - sr
        - fi
        - sv
        - vi
        - tr
        - el
        - bg
        - ru
        - uk
        - ka
        - th
        - ko
        - zh
        - ja
    BraveSafeSearch:
      type: string
      enum:
        - 'off'
        - moderate
        - strict
    BraveTimeFilter:
      type: string
      enum:
        - any
        - pd
        - pw
        - pm
        - py
    BraveDeepLink:
      properties:
        '@type':
          type: string
          default: BraveDeepLink
        url:
          type: string
      type: object
      required:
        - title
        - url
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````