Skip to content

Baidu Hot Search API

1. Basic Usage

TIP

The server does not log any requests or collect any private information!

Base API URL

txt
https://zeapi.ink/v1/api/baidu

Send a GET request to retrieve Baidu hot search data:

txt
https://zeapi.ink/v1/api/baidu

Shell request example:

shell
curl -X GET https://zeapi.ink/v1/api/baidu

2. Request Parameters

This API does not require additional request parameters. Simply call it using a GET request.

3. JSON Response Format

Success response example:

json
{
    "success": true,
    "title": "Baidu Hot Search",
    "update_time": "2025-08-14 20:40:00",
    "data": [
        {
            "index": 1,
            "title": "Hot Keyword 1",
            "desc": "Description of Hot Keyword 1",
            "pic": "https://example.com/image1.jpg",
            "hot": "123.4万",
            "url": "https://www.baidu.com/s?wd=Hot%20Keyword%201",
            "mobilUrl": "https://m.baidu.com/s?wd=Hot%20Keyword%201"
        },
        {
            "index": 2,
            "title": "Hot Keyword 2",
            "desc": "Description of Hot Keyword 2",
            "pic": "https://example.com/image2.jpg",
            "hot": "89.5万",
            "url": "https://www.baidu.com/s?wd=Hot%20Keyword%202",
            "mobilUrl": "https://m.baidu.com/s?wd=Hot%20Keyword%202"
        }
    ]
}

Error response example (data fetch failure):

json
{
    "success": false,
    "message": "Failed to fetch Baidu hot search data"
}

4. Response Fields Description

FieldTypeDescription
successbooleanRequest status (true/false)
titlestringHot search title, fixed as "Baidu Hot Search"
update_timestringData update time (format: YYYY-MM-DD HH:MM:SS)
dataarrayList of hot search items
data.indexintHot search ranking
data.titlestringHot search keyword
data.descstringDescription of the hot search keyword
data.picstringImage URL for the hot search keyword
data.hotstringHot search popularity (in "万" units, 1 decimal place)
data.urlstringWeb search URL for the hot search keyword
data.mobilUrlstringMobile search URL for the hot search keyword
messagestringResult message (returned only on error)

Released under the MIT License.