Baidu Search API
Using Baidu Search API you can scrape Baidu search results without worrying about proxy rotation and data parsing. Our API is fast and reliable.
Parameters
Scrapingdog Parameters
api_key
required
Your personal API key. Available on your dashboard Type: String
html
This will return the full HTML of the Google page.
Default Value - false
Type - String
Search Query
query
This parameter specifies the search query and supports all Baidu search operators (e.g., inurl:
, site:
, intitle:
, etc.).
Type - String
Localization
ct
This parameter sets the language restriction for search results. Available options are:
1 – All languages 2 – Simplified Chinese 3 – Traditional Chinese Type - String
Pagination
pn
This parameter sets the result offset, allowing you to skip a specified number of results. It's used for pagination — for example, 0
(default) returns the first page, 10
returns the second page, 20
the third, and so on.
Type - String
rn
Specifies the maximum number of results to return, with a limit of 50. For example, setting it to 10 (default) returns 10 results, 30 returns 30 results, and 50 returns 50 results. This parameter is supported only for desktop and tablet searches. Type - String
Advanced Filters
gpc
This parameter specifies the time range for the results. For example, stf=1751356433,1751961233|stftype=1
returns results from the past 7 days. The first number (1751356433
) is the Unix timestamp for 7 days ago, and the second (1751961233
) is the timestamp for the current time.
Type - String
q5
Functions similarly to using inurl:
or intitle:
. For example, use 1
to search by page title, and 2
to search by URL.
Type - String
q6
Similar to using site:
. (e.g., q6=serpapi.com
to search for results only from the domain serpapi.com
).
Type - String
Advanced Baidu Parameters
bs
Specifies the preceding search query. Type - String
oq
Indicates the original search query when the user arrives via a related search. Type - String
f
Specifies the source of the search. For example, 8
indicates a standard search, 3
comes from the suggestion list, and 1
originates from a related search.
Type - String
API Example
curl "https://api.scrapingdog.com/baidu/search/?api_key=5eaa61a6e562fc52fe763tr516e4653&query=football"
API Response
{
"Baidu_data": [
{
"title": "football(英语单词) - 百度百科",
"link": "http://www.baidu.com/link?url=9o-kb77pRouo5DHWnh7N-mn9QHoh7uR-_Tc4ONuz5ek6BxXntzTRvIWdi0ryh-Y0CvHV1ecEXjNn0HzO1jh9aa",
"snippet": "football(英语单词) - 百度百科",
"rank": 1
},
{
"title": "football是什么意思_football的翻译_音标_读音_用法_例句..._爱词霸",
"link": "http://www.baidu.com/link?url=9o-kb77pRouo5DHWnh7N-jryfci0W6zZfrr5ueTIfBO7yGnWH4kyyfs1Dl7x7xiX",
"snippet": "football是什么意思_football的翻译_音标_读音_用法_例句..._爱词霸",
"rank": 2
},
{
"title": "football是什么意思_football的翻译_音标_读音_用法_例句_爱词霸...",
"link": "http://www.baidu.com/link?url=SRogbezpoEH9ZPxXy_EGptBwN2aOUhraK79IKXbbED97wz86OFwYC6u2ty6BY9U6",
"snippet": "football是什么意思_football的翻译_音标_读音_用法_例句_爱词霸...",
"rank": 3
},
{
"title": "football - 搜索 词典",
"link": "http://www.baidu.com/link?url=0_upk3l-GcmXnluO0nMU21hpBidqcSiR7xwKjPjT8ahh7tsKv5qb42oh6uTEidNN",
"snippet": "football - 搜索 词典",
"rank": 4
},
{
"title": "football是什么意思_football怎么读_中文意思_用法_翻译",
"link": "http://www.baidu.com/link?url=SRogbezpoEH9ZPxXy_EGpxWPuZhdHL5z3oQi9a__POoqAqujoNECBqgoLg396MXt",
"snippet": "football是什么意思_football怎么读_中文意思_用法_翻译",
"rank": 5
},
{
"title": "football是什么意思_football的中文翻译_音标_读音_用法_例句...",
"link": "http://www.baidu.com/link?url=9o-kb77pRouo5DHWnh7N-jkd-EXWIUbdalZLAVr-C4X3sI6iEs2sgMsX99gKOaLVHi4VmpD1ogv_uG7HiPfQbK",
"snippet": "football是什么意思_football的中文翻译_音标_读音_用法_例句...",
"rank": 6
},
{
"title": "football是什么意思|football的音标|football的用法 - 英语词典",
"link": "http://www.baidu.com/link?url=eYfUdpNmr_BQDg6sDceS6WrG5vI5wZzE_J8iv9QoJlKaoN3t9-Mfy5AwEtm-N-tO435aKtvlQmGHStTXK_QvqUWfeY5RgMjIfwh8jgcLFTa",
"snippet": "football是什么意思|football的音标|football的用法 - 英语词典",
"rank": 7
},
{
"title": "FOOTBALL中文(简体)翻译:剑桥词典",
"link": "http://www.baidu.com/link?url=eYfUdpNmr_BQDg6sDceS6Z2aeBOtFmxR5SOmDN4pw1geyA16UbTVBuHgRd-v_3j3Yz-Iyjl0US-pY60cA5AcrjQ0TFjma9YHNilfGKDXz6W72q1tXhlbi5-qw5wl8o8WiWg2kHbL2tH19uNqFvezJesqOSsTi-K3SzWbK2dSoJKnc_z-R0yTpZpx1u0nX4c5",
"snippet": "FOOTBALL中文(简体)翻译:剑桥词典",
"rank": 8
}
]
}
Last updated