> ## 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.

# /baidu/search

> Search Baidu web results by query. Returns organic results with destination url, title, source publisher, publish date and snippet. Supports Chinese and Latin queries and a recency filter.

**Price:** 20 credits per 10 results

**💡 AI Hint:** Baidu web search by query — the largest search engine in China, with ranking and coverage tuned for the Chinese-language web that differs from Google. Each result has url (destination), title, source (publisher), date, snippet and optional redirect_url. Use count to control how many results to return, time_range to limit recency.



## OpenAPI

````yaml /openapi-filtered.json post /api/baidu/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/baidu/search:
    post:
      tags:
        - /baidu
      summary: /baidu/search
      description: >-
        Search Baidu web results by query. Returns organic results with
        destination url, title, source publisher, publish date and snippet.
        Supports Chinese and Latin queries and a recency filter.


        **Price:** 20 credits per 10 results


        **💡 AI Hint:** Baidu web search by query — the largest search engine in
        China, with ranking and coverage tuned for the Chinese-language web that
        differs from Google. Each result has url (destination), title, source
        (publisher), date, snippet and optional redirect_url. Use count to
        control how many results to return, time_range to limit recency.
      operationId: __api_baidu_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BaiduSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/BaiduSearchResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BaiduSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        query:
          type: string
          minLength: 1
          description: Search query. Supports Chinese and Latin text
          examples:
            - 人工智能
        count:
          type: integer
          minimum: 1
          description: Maximum number of results
        time_range:
          $ref: '#/components/schemas/BaiduTimeRange'
          description: Restrict results to a preset recency window
          default: any
        published_after:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          description: >-
            Custom window start as a Unix timestamp (seconds). Mutually
            exclusive with time_range
        published_before:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          description: >-
            Custom window end as a Unix timestamp (seconds). Mutually exclusive
            with time_range
      type: object
      required:
        - query
        - count
    BaiduSearchResult:
      properties:
        '@type':
          type: string
          default: BaiduSearchResult
        url:
          type: string
        source:
          anyOf:
            - type: string
            - type: 'null'
        date:
          anyOf:
            - type: string
            - type: 'null'
        snippet:
          anyOf:
            - type: string
            - type: 'null'
        redirect_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    BaiduTimeRange:
      type: string
      enum:
        - any
        - day
        - week
        - month
        - year
    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

````