# Baidu Search

Returns results from Baidu's JSON news-index search surface. Organic and special results are separated, URLs and text are decoded, and Baidu's complete untouched provider payload remains available in provider_response.

- **Documentation:** [https://scrappa.co/docs/baidu-api/baidu_search](https://scrappa.co/docs/baidu-api/baidu_search)
- **API group:** Baidu API
- **Endpoint:** `GET https://scrappa.co/api/baidu/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Search query. |
| `page` | integer | No | Page number from 1 to 50. Default: 1. |
| `limit` | integer | No | Results requested per page from 1 to 50. Default: 10. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/baidu/search?query=artificial+intelligence&page=1&limit=10"
```

## Example response

```json
{
    "search_parameters": {
        "engine": "baidu_search",
        "query": "artificial intelligence",
        "page": "1",
        "limit": "10"
    },
    "organic_results": [
        {
            "position": 2,
            "result_type": "organic",
            "title": "Artificial Intelligence Research",
            "link": "https://example.com/ai",
            "displayed_link": "example.com",
            "snippet": "The latest artificial intelligence research.",
            "source": "Example News",
            "date": "2026-08-01T10:00:00Z",
            "timestamp": 1785578400,
            "thumbnail": "https://example.com/ai.jpg"
        }
    ],
    "special_results": [
        {
            "position": 1,
            "result_type": "special",
            "title": null,
            "link": "https://baike.baidu.com/item/artificial-intelligence"
        }
    ],
    "search_information": {
        "source": "baidu_news",
        "query_displayed": "artificial intelligence",
        "total_results": 1234,
        "total_results_is_estimate": true,
        "results_on_page": 10,
        "organic_results_on_page": 9,
        "page": 1,
        "limit": 10
    },
    "pagination": {
        "page": 1,
        "limit": 10,
        "results_on_page": 10,
        "total_results": 1234,
        "has_more": true,
        "next_page": 2
    },
    "results": [
        {
            "title": "",
            "url": "https://baike.baidu.com/item/artificial-intelligence",
            "urlEnc": "https%3A%2F%2Fbaike.baidu.com%2Fitem%2Fartificial-intelligence"
        }
    ],
    "provider_response": {
        "feed": {
            "entry": []
        }
    },
    "response_time_ms": 1200
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 503 | Upstream unavailable | Baidu could not be reached after safe retries. The request is not billed. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
