---
title: "Search Baidu web results"
method: GET
path: "/baidu/search"
tags: ["Baidu"]
---

# Search Baidu web results

`GET /baidu/search`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/baidu/search`
- Auth: API key in header `x-api-key`

Returns Baidu result cards for a query: title, destination URL, snippet, publisher, and date, with page-based pagination. Each result's `type` is `web` (standard pages), `video` (video cards), or `baike` (Baidu Baike encyclopedia entries); answer widgets such as weather, entity panels, and recommendation lists are not returned. Baidu challenges a portion of requests with a security verification page; the service retries and returns 503 if every attempt is challenged, so callers should retry on 503.

## Query parameters

- `q` string, required
- `page` integer

## Headers

- `x-api-key` string, required

## Response `200`

OK

- BaiduSearchResponseDoc
  - `code` integer
  - `data` BaiduSearchResponse
    - `pagination` BaiduSearchPagination
      - `next_page` integer
      - `page` integer
    - `query` string
    - `results` BaiduSearchResult[]
      - `date` string
      - `description` string
      - `position` integer
      - `source` string
      - `title` string
      - `type` 'web' | 'video' | 'baike'
      - `url` string
  - `msg` string

## Other responses

- `400`: Missing or invalid parameters
- `429`: Rate limit exceeded
- `500`: Internal server error
- `503`: Baidu upstream request failed or was challenged with a security verification

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/afac9b012a27?raw)
