# Baidu Developer Search

Returns technical search data from Baidu Kaifa with documents unwrapped into developer_results. Embedded synonyms, sitelinks, and attributes are parsed into arrays; the complete upstream structure remains in results and provider_response.

- **Documentation:** [https://scrappa.co/docs/baidu-api/baidu_developer_search](https://scrappa.co/docs/baidu-api/baidu_developer_search)
- **API group:** Baidu API
- **Endpoint:** `GET https://scrappa.co/api/baidu/developer-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/developer-search?query=Laravel+API&page=1&limit=10"
```

## Example response

```json
{
    "search_parameters": {
        "engine": "baidu_developer_search",
        "query": "Laravel API",
        "page": "1",
        "limit": "10"
    },
    "developer_results": [
        {
            "position": 1,
            "title": "Laravel Routing",
            "link": "https://laravel.com/docs/routing",
            "snippet": "Routing APIs and examples.",
            "site": "Laravel",
            "resource_type": "documentation",
            "synonyms": [
                "routes",
                "router"
            ],
            "sitelinks": [
                {
                    "title": "Controllers",
                    "link": "https://laravel.com/docs/controllers"
                }
            ],
            "attributes": [
                {
                    "name": "Language",
                    "value": "PHP"
                }
            ]
        }
    ],
    "search_information": {
        "query_displayed": "Laravel API",
        "total_results": 42,
        "results_on_page": 10,
        "page": 1,
        "limit": 10
    },
    "pagination": {
        "page": 1,
        "limit": 10,
        "results_on_page": 10,
        "total_results": 42,
        "has_more": true,
        "next_page": 2
    },
    "results": {
        "documents": []
    },
    "provider_response": {
        "status": "OK",
        "data": []
    },
    "response_time_ms": 700
}
```

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