API · Baidu
GET /baidu/search
Baidu web results: titles, URLs, snippets, card types.
| Request | GET /v1/baidu/search |
| Operation id | baidu.search.all |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Baidu web results: titles, URLs, snippets, card types.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Example: 咖啡. |
limit | "10" | "20" | "50" | no | One of 10, 20, 50. |
page | integer | no |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Results. | |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | Baidu has nothing for that search. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Baidu is temporarily unavailable. Retryable; nothing was charged. | Error |
Errors use one shape everywhere; see Errors for every code and what to do.