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

# Execute Web Search Lite

> Lightweight search-only endpoint. Returns search snippets and URLs without
fetching page contents. Pair with `/open-urls` if you need to fetch content
later.



## OpenAPI

````yaml POST /web-search/search-lite
openapi: 3.1.0
info:
  title: Onyx API
  description: Onyx API for AI-powered enterprise search and chat
  version: Development
servers:
  - url: https://cloud.onyx.app/api
security: []
paths:
  /web-search/search-lite:
    post:
      tags:
        - public
      summary: Execute Web Search Lite
      description: >-
        Lightweight search-only endpoint. Returns search snippets and URLs
        without

        fetching page contents. Pair with `/open-urls` if you need to fetch
        content

        later.
      operationId: execute_web_search_lite
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebSearchToolRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebSearchToolResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    WebSearchToolRequest:
      properties:
        queries:
          items:
            type: string
          type: array
          minItems: 1
          title: Queries
          description: List of search queries to send to the configured provider.
        max_results:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Results
          description: >-
            Optional cap on number of results to return per query. Defaults to
            10.
          default: 10
      type: object
      required:
        - queries
      title: WebSearchToolRequest
    WebSearchToolResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/LlmWebSearchResult'
          type: array
          title: Results
        provider_type:
          $ref: '#/components/schemas/WebSearchProviderType'
      type: object
      required:
        - results
        - provider_type
      title: WebSearchToolResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LlmWebSearchResult:
      properties:
        document_citation_number:
          type: integer
          title: Document Citation Number
        unique_identifier_to_strip_away:
          anyOf:
            - type: string
            - type: 'null'
          title: Unique Identifier To Strip Away
        type:
          type: string
          const: web_search
          title: Type
          default: web_search
        url:
          type: string
          title: Url
        title:
          type: string
          title: Title
        snippet:
          type: string
          title: Snippet
      type: object
      required:
        - document_citation_number
        - url
        - title
        - snippet
      title: LlmWebSearchResult
      description: Result from a web search query
    WebSearchProviderType:
      type: string
      enum:
        - google_pse
        - serper
        - exa
        - searxng
      title: WebSearchProviderType
    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:
    BearerAuth:
      type: http
      scheme: bearer
      description: Authorization header with Bearer token

````