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
Field | Type | Description |
---|---|---|
success | boolean | Request status (true/false) |
title | string | Hot search title, fixed as "Baidu Hot Search" |
update_time | string | Data update time (format: YYYY-MM-DD HH:MM:SS) |
data | array | List of hot search items |
data.index | int | Hot search ranking |
data.title | string | Hot search keyword |
data.desc | string | Description of the hot search keyword |
data.pic | string | Image URL for the hot search keyword |
data.hot | string | Hot search popularity (in "万" units, 1 decimal place) |
data.url | string | Web search URL for the hot search keyword |
data.mobilUrl | string | Mobile search URL for the hot search keyword |
message | string | Result message (returned only on error) |