Baidu Search API Documentation
Baidu is a leading search engine in China, known for its extensive reach and popularity among Chinese internet users. It plays a crucial role in the digital landscape of China, providing a wide range of services including web search, image search, and map services. Unlike Google, which exited the Chinese market in 2010 and is only accessible in Hong Kong, Baidu continues to dominate the search engine market in mainland China.
The Baidu Search API, accessed via the endpoint /api/v1/search?engine=baidu
, allows for the scraping of real-time search results.
API Parameters
Search Query
-
- Name
-
q
- Required
- Required
- Description
-
Parameter defines the query you want to search. You can use anything that you would use in a regular Baidu search. e.g.
intitle:
,site:
,filetype:
and more.
Localization
-
- Name
-
ct
- Required
- Optional
- Description
-
This parameter controls the language of search results. There are three options:
0
- Simplified and Traditional Chinese. (Default)1
- Simplified Chinese.2
- Traditional Chinese.
Filters
-
- Name
-
gpc
- Required
- Optional
- Description
-
Defines the specific time period for search results using Unix Timestamps. The parameter format should be
stf=START_TIME,END_TIME|stftype=1
, whereSTART_TIME
andEND_TIME
are Unix Timestamps marking the start and end of the desired timeframe. For example, usingstf=1683108267,1714730667|stftype=1
would limit results to those within a year.
Pagination
-
- Name
-
num
- Required
- Optional
- Description
-
This parameter specifies the number of results to display per page. Maximum number -
50
. Use in combination with thepage
parameter to implement pagination functionality.
-
- Name
-
page
- Required
- Optional
- Description
-
This parameter indicates which page of results to return. By default, it is set to
1
. Use in combination with the num parameter to implement pagination.
Engine
-
- Name
-
engine
- Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
baidu
.
API key
-
- Name
-
api_key
- Required
- Required
- Description
-
The
api_key
authenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY
) or in the Authorization header (Bearer YOUR_API_KEY
).
API Examples
Organic Results
![Organic Results](/assets/docs/baidu/organic_results-660d89a72dc05cd716f7a829e41db374ab927ccb663f06530daa4f1a0da7901c.png)
https://www.searchapi.io/api/v1/search?engine=baidu&q=Animal+Planet
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "baidu",
"q": "Animal Planet"
}
response = requests.get(url, params = params)
print(response.text)
{
"organic_results": [
{
"position": 1,
"title": "Animal Planet | Catch Up On Full Episodes For Free",
"link": "https://www.ctv.ca/animal-planet",
"displayed_link": "www.animalplanet.ca/",
"snippet": "42m 12s 42 minutes 12 seconds The Playboy Murders S2 E5 - Horror in the Hamptons Sign In 42m 12s 42 minutes 12 seconds On the Case With Paula Zahn S27 E5 - When the Music's Over ...",
"thumbnail": "https://t9.baidu.com/it/u=743351702,288797789&fm=217&app=126&size=f242,150&n=0&f=JPEG&fmt=auto?s=2582CFB794D379ED6F2994B10300F081&sec=1714842000&t=4a9655a77979233d0f9b092204f9f84e"
},
{
"position": 2,
"title": "【动物星球】动物星球商城_Animal Planet是什么牌子",
"link": "https://pinpai.smzdm.com/59685/",
"displayed_link": "什么值得买",
"snippet": "实时推荐动物星球(Animal Planet)商城正品特价。结合动物星球评测与动物星球最新资讯,全方位介绍Animal Planet是什么牌子?什么值得买综合各类动物星球优惠信息,计算最优购买方案,帮您轻松搞定正品...",
"snippet_highlighted_words": ["Animal", "Planet"],
"thumbnail": "https://t8.baidu.com/it/u=1026803159,4238637210&fm=217&app=126&size=f242,150&n=0&f=JPEG&fmt=auto?s=01F65C9344640CAA12FCF17B0300D030&sec=1714842000&t=c3db150577185f3a818a8bbe73ddd2c4"
},
...
]
}
Answer Box - AI Content
![Answer Box - AI Content](/assets/docs/baidu/answer_box_ai_content-bdff5b6d241457d11bb14ae4dd04ee1f7c01ac5a3c8e95236ba9130901221c3c.png)
https://www.searchapi.io/api/v1/search?engine=baidu&q=%E6%8B%8D%E7%85%A7%E6%80%8E%E6%A0%B7%E6%89%BE%E8%A7%92%E5%BA%A6
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "baidu",
"q": "拍照怎样找角度"
}
response = requests.get(url, params = params)
print(response.text)
{
"answer_box": {
"title": "拍照怎样找角度",
"link": "http://nourl.ubs.baidu.com/278",
"type": "ai_content",
"answer": "拍照时找角度的关键在于创造视觉上的吸引力和深度,同时展现被摄主体的特征和美。以下是一些有效的技巧和建议:\n走动并调整构图:通过从不同角度和高度观察,寻找最佳拍摄角度。调整透视和旋转,以获得画面的平衡和最佳构图效果。\n靠近拍摄对象:拍摄特写照片,可以捕捉到更多的细节,适用于宠物、产品、食品等拍摄。\n使用引导线和框架:寻找具有引导视线功能的线条或框架,为图像添加透视框,增加维度和视角变化。\n寻找反射和有趣的构图:拍摄反射角的照片,如水面反射,可以产生不熟悉的感觉,增加图像的趣味性。\n使用阴影作为构图的一部分:阴影可以在画面中产生戏剧性效果,是构图的重要元素。\n从不同角度拍摄:尝试从腰部高度或调整到不同的角度拍摄,以获得不同的视觉效果。\n倾斜相机:稍微倾斜相机,跳出常见的构图规则,有时能拍出不同的照片。\n尝试新角度:如贴地拍摄、平视拍摄、俯拍/仰拍、错位拍摄等,这些角度可以让画面呈现不同的效果。\n考虑拍摄高度和方向:根据被摄主体的特征和摄影师想要表达的情感,选择平拍、仰拍或俯拍等不同的高度,以及正面、侧面、背面等不同的方向。\n结合拍摄距离:根据需要表达的内容,选择远景、全景、中景、近景或特写等不同的拍摄距离,以突出主题或情绪。"
}
}
Answer Box - AI Search
![Answer Box - AI Search](/assets/docs/baidu/answer_box_ai_search-8e8d22d888a396ec68609993f1e6efc7e0445fe56f435eefc6b9ba4b0986e6f1.png)
https://www.searchapi.io/api/v1/search?engine=baidu&q=%E7%AC%AC%E4%B8%80%E7%89%9B%E9%A1%BF%E5%AE%9A%E5%BE%8B
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "baidu",
"q": "第一牛顿定律"
}
response = requests.get(url, params = params)
print(response.text)
{
"answer_box": {
"type": "ai_search",
"answer": "牛顿第一定律的5个变形公式 查看全文 \n牛顿第一运动定律,简称牛顿第一定律。又称惯性定律、惰性定律。常见的完整表述:任何物体都要保持匀速直线运动或静止状态,直到外力迫使它改变运动状态为止。 牛顿在《自然哲学的数学原理》中的原始表述是:任何物体都要保持匀速直线运动或静止...\n\n牛顿第一定律公式 查看全文 \n这一定律是由伟大的物理学家、数学家艾萨克牛顿在17世纪末所提出的。牛顿第一定律给物理学的发展确立了基础,同时,它也是现代宇宙论的基础理论。 牛顿第一定律的公式是:F=mA。在这个公式中,F表示受力,m表示质量,a表示加速度。这就...\n\n牛顿第一定律 查看全文 \n虽然物体不受外力作用的情况是不存在的,但是由于牛顿第一定律是建立在 ___ ■勺基础上的,经过 ___ 得出的,因而是正确的。 8. 在平直轨道上行驶的列车车厢内,在水平桌面上放置一个小球,突然小球向前 运动,这时列车是在 ___ :...\n\n牛顿第一定律 查看全文 \n牛顿第一定律的正式表述为:“一个物体如果没有受到外力作用,或受到的外力平衡相互抵消,那么它将保持静止或匀速直线运动的状态。”这可以解释为物体具有惯性,即物体在没有外力干扰的情况下,会维持原有的运动状态。这意味着如果一个物体静...\n",
"references": [
{
"title": "牛顿第一定律的5个变形公式 查看全文 ",
"snippet": "牛顿第一运动定律,简称牛顿第一定律。又称惯性定律、惰性定律。常见的完整表述:任何物体都要保持匀速直线运动或静止状态,直到外力迫使它改变运动状态为止。 牛顿在《自然哲学的数学原理》中的原始表述是:任何物体都要保持匀速直线运动或静止...",
"source": "百度文库"
},
...
]
}
}
Answer Box - Calculator
![Answer Box - Calculator](/assets/docs/baidu/answer_box_calculator-d4727f40ed3fa1265a4889a46efbd56586fcb3cac0d9a4c1d30c9a72eb1f0401.png)
https://www.searchapi.io/api/v1/search?engine=baidu&q=5%21%2A4%21
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "baidu",
"q": "5!*4!"
}
response = requests.get(url, params = params)
print(response.text)
{
"answer_box": {
"type": "calculator",
"query": "5!*4!",
"answer": "2880"
}
}
Answer Box - Dictionary
![Answer Box - Dictionary](/assets/docs/baidu/answer_box_dictionary-a66e5a69deb85eb8f183829a9c2b413c1f13f4b26e345a986ffd1d46c45a628e.png)
https://www.searchapi.io/api/v1/search?engine=baidu&q=New+York
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "baidu",
"q": "New York"
}
response = requests.get(url, params = params)
print(response.text)
{
"answer_box": {
"title": "new york - 百度翻译",
"type": "dictionary",
"displayed_link": "搜索智能聚合",
"translation_meaning": "纽约",
"pronunciations": {
"uk": {
"phonetic": "[njuː jɔːk]",
"chinese_character": "英",
"audio_link": "https://sensearch.baidu.com/gettts?lan=uk&spd=3&source=alading&text=New%20York"
},
"us": {
"phonetic": "[nuː jɔrk]",
"chinese_character": "美",
"audio_link": "https://sensearch.baidu.com/gettts?lan=en&spd=3&source=alading&text=New%20York"
}
},
"word_definition": [
{
"part_of_speech": "n.",
"text": "纽约;缩写词为NY;"
}
],
"example": {
"english_text": "Could you forward any mail to us in New York?",
"translation": "你能不能把所有信件转寄到纽约给我们?",
"audio_link": "https://sensearch.baidu.com/gettts?lan=en&spd=3&source=alading&text=Could%20you%20forward%20any%20mail%20to%20us%20in%20New%20York%3F"
}
}
}
Ads
![Ads](/assets/docs/baidu/ads-a29d444bbb99f1c68a21faffc481dd3d10c694bbc503ad679e44a47827693cfb.png)
https://www.searchapi.io/api/v1/search?engine=baidu&q=Microsoft
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "baidu",
"q": "Microsoft"
}
response = requests.get(url, params = params)
print(response.text)
{
"ads": [
{
"position": 1,
"title": "office for mac 破解版下载中文版-0ffice mac版下载-..",
"link": "https://mac.mac89.com/mac/2993.html",
"source": "长沙库绒科技有限公司",
"date": "2024-06",
"snippet": "office for mac 破解版下载 包括Word、Excel、PowerPoint、Outlook、等经典..",
"thumbnail": "https://fc5tn.baidu.com/it/u=643289431,2937772818&fm=202?x=0&y=0&h=146&w=259&vh=146.00&vw=259.00&oh=146.00&ow=259.00"
},
...
{
"position": 3,
"title": "word mac版本下载-简体中文-永久使用-支持M1/M2-Word ..",
"link": "https://mac.mac89.com/mac/2990.html",
"source": "长沙库绒科技有限公司",
"date": "2024-06",
"snippet": "word mac版本最新版的带给大家,word中文版是查看,编辑和创建文档必备的办公软件之一,提供丰富的功能集,有效提高办公效率.永久使用,低至49!安心下载!",
"sitelinks": {
"expanded": [
{
"title": "Word Mac",
"link": "https://mac.mac89.com/mac/2990.html",
"snippet": "简体中文",
"thumbnail": "https://ms.bdimg.com/pacific/0/pic/1494304078_2140388939.jpg?x=0&y=0&h=340&w=510&vh=340.00&vw=510.00&oh=340.00&ow=510.00"
},
...
]
},
"thumbnail": "https://fc1tn.baidu.com/it/u=294194447,3814647998&fm=202&mola=new&crop=v1"
},
...
]
}
Knowledge Graph
![Knowledge Graph](/assets/docs/baidu/knowledge_graph-a5e199b93dda1c79e4d8d6a67db06760fae6c38dec6b0a53924559d21bcd1550.png)
https://www.searchapi.io/api/v1/search?engine=baidu&q=ChatGPT
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "baidu",
"q": "ChatGPT"
}
response = requests.get(url, params = params)
print(response.text)
{
"knowledge_graph": {
"title": "ChatGPT(OpenAI发布的聊... - 百度百科",
"link": "https://baike.baidu.com/item/ChatGPT/62446358",
"displayed_link": "百度百科",
"snippet": "ChatGPT(全名:Chat Generative Pre-trained Transformer),是OpenAI研发的一款聊天机器人程序,于2022年11月30日发布。ChatGPT是人工智能技术驱动的自然语言处理工具,它能够基于在预训练阶段所见的模式和统计规律,来生成回答,还能根据聊天的上下文进行...详情",
"snippet_highlighted_words": ["ChatGPT", "ChatGPT"],
"sitelinks": {
"inline": [
{
"title": "发展历程",
"link": "http://www.baidu.com/link?url=YkfAk31SvtGjo0aT7gt_tZFz4NpTd4PCKDv2oYIHG5XPRsEW4aqcMExV1fclhMYbzraJ6sFBcFD98jkYWWQzuYzcGDNf_G4wKl0RCnR4-4a"
},
...
]
},
"thumbnail": "https://gimg3.baidu.com/topone/src=https%3A%2F%2Fbkimg.cdn.bcebos.com%2Fsmart%2F63d9f2d3572c11dfa9ec5d9d5b7f75d0f703918f644e-bkimg-process%2Cv_1%2Crw_1%2Crh_1%2Cmaxl_800%2Cpad_1%3Fx-bce-process%3Dimage%2Fresize%2Cm_pad%2Cw_348%2Ch_348%2Ccolor_ffffff&refer=http%3A%2F%2Fwww.baidu.com&app=2011&size=w931&n=0&g=0n&er=404&q=75&fmt=auto&maxorilen2heic=2000000?sec=1714842000&t=64402f72cb8a4b6b5c759ee3f1b2a236"
}
}
Top Searches
![Top Searches](/assets/docs/baidu/top_searches-ae47f486404da021580faf0fb687c40ea0a3896daa59ceec634c924f6fd78125.png)
https://www.searchapi.io/api/v1/search?engine=baidu&q=Ford
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "baidu",
"q": "Ford"
}
response = requests.get(url, params = params)
print(response.text)
{
"top_searches": [
{
"position": 1,
"query": "习近平寄语新时代青年",
"link": "https://www.baidu.com/s?wd=%E4%B9%A0%E8%BF%91%E5%B9%B3%E5%AF%84%E8%AF%AD%E6%96%B0%E6%97%B6%E4%BB%A3%E9%9D%92%E5%B9%B4&usm=2&ie=utf-8&rsv_pq=b386609900023cba&oq=Ford&rsv_t=4ac4JiQk6DlFhyCjLy9ZVmNrIlbdj0vQIurBsuBGEh08Gf3%2FI%2Fjlfov%2FeJo&rqid=b386609900023cba&rsf=8b9bda9ccf388a2ae1c8d629c663b434_1_15_1&rsv_dl=0_right_fyb_pchot_20811&sa=0_right_fyb_pchot_20811"
},
{
"position": 2,
"query": "员工一年因迟到被扣20万工资",
"link": "https://www.baidu.com/s?wd=%E5%91%98%E5%B7%A5%E4%B8%80%E5%B9%B4%E5%9B%A0%E8%BF%9F%E5%88%B0%E8%A2%AB%E6%89%A320%E4%B8%87%E5%B7%A5%E8%B5%84&usm=2&ie=utf-8&rsv_pq=b386609900023cba&oq=Ford&rsv_t=4ac4JiQk6DlFhyCjLy9ZVmNrIlbdj0vQIurBsuBGEh08Gf3%2FI%2Fjlfov%2FeJo&rqid=b386609900023cba&rsf=8b9bda9ccf388a2ae1c8d629c663b434_1_15_2&rsv_dl=0_right_fyb_pchot_20811&sa=0_right_fyb_pchot_20811",
"is_hot": true
},
...
]
}
Top Stories
![Top Stories](/assets/docs/baidu/top_stories-fc3c40d8239cdd7bf5d8a57299d6c1e4467dd7c37abdf1dd2f6504eefbf63956.png)
https://www.searchapi.io/api/v1/search?engine=baidu&q=%E6%96%B0%E9%97%BB%E7%9B%B4%E6%92%AD
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "baidu",
"q": "新闻直播"
}
response = requests.get(url, params = params)
print(response.text)
{
"top_stories": [
{
"title": "6月6日起,“大皖新闻”现场直播安徽新高考",
"link": "https://baijiahao.baidu.com/s?id=1800996017349062945&wfr=spider&for=pc",
"source": "大皖新闻",
"date": "前天12:57",
"snippet": "本次直播活动从6月6日开启,连续四天。为了让广大考生和家长更加直观地了解考场环境和设施,大皖新闻特别安排了考点探访环节。6月6日下午4时起,记者将实地探访多个考点,介..."
},
...
]
}
Blogs
![Blogs](/assets/docs/baidu/blogs-f1326985798294eec9707375429805f6e5b69fb89d60a5ddcdfe4f494d718d90.png)
https://www.searchapi.io/api/v1/search?engine=baidu&q=ChatGPT
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "baidu",
"q": "ChatGPT"
}
response = requests.get(url, params = params)
print(response.text)
{
"blogs": [
{
"title": "ChatLLM-EVALUATION",
"link": "http://www.baidu.com/link?url=rXg7nExwwUV-bL7dOSQItV9hF1qhPpxHfh77_76NeTjXCUH7C3dNNFpu7440xPwqFOqm5_qxEOpsIvjUcCWvRNC3WXVI6Z3yV63MliaLfQACm7PzGAM9V_dbNPbEOipQ",
"source": "飞桨AI Studio",
"snippet": "探索以用户体验为基础的大模型测评机制 本项目提供一键式的基于多个LLM的生成效果评测。方便开发者从LLM的生成效果角度自我评价模型效果,也方便高阶开发者更为直观且准..."
},
{
"title": "ChatGPT 怎么用最新详细教程-新手小白一看就会",
"link": "http://www.baidu.com/link?url=Jz9OhEktPMYaGF9clGQ8sv7Rl0HFGp79Qq_1BdJTinUp7WrwdpJNRcbjl7VZDvTacPkeL5x5Np6xPRLx56oyktYkqbV-OnApVxO_lT99pEm",
"source": "博客园",
"snippet": "ChatGPT 以其强大的信息整合和对话能力惊艳了全球,在自然语言处理上面表现出了惊人的能力。这么强大的工具我们都想体验一下,那么 ChatGPT 怎么用呢?本文将给你逐步详..."
},
{
"title": "爆火Chatgpt注册 chatgpt使用 完全指南",
"link": "http://www.baidu.com/link?url=GVNfXt9XPBaR3qUuOTRa-axDhKYmo2gF0rQYc9qBFR9fu6tdlcgtzJUVedvgxEsTZdSJMNzlKSseMPutZRf0bgX09MzbD7DhuKsdpwUWCYu",
"source": "CSDN",
"snippet": "ChatGPT是一种语言模型,它被训练来对对话进行建模。它能够通过学习和理解人类语言来进行对话,并能够生成适当的响应。ChatGPT使用了一种叫做Transformer的神经网络架构...",
"reads": "1万次阅读"
},
...
]
}
Inline Shopping
![Inline Shopping](/assets/docs/baidu/inline_shopping-5593f34d3c8dfa4f36a2a37c9bfd1943544a99214b07a43a4e60032dd35d2404.png)
https://www.searchapi.io/api/v1/search?engine=baidu&q=Iphone+14
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "baidu",
"q": "Iphone 14"
}
response = requests.get(url, params = params)
print(response.text)
{
"inline_shopping": [
{
"position": 1,
"title": "Apple/苹果 iPhone 14 (A2884) 256...",
"link": "http://item.m.jd.com/product/100046043018.html?cu=true&utm_source=baidu-juhe&utm_medium=kong&utm_campaign=t_1000151230_juhe",
"seller": "京东",
"price": "¥5499",
"extracted_price": 5499,
"thumbnail": "https://t14.baidu.com/it/u=2735956988,123407491&fm=224&app=112&size=h200&n=0&f=PNG?sec=1717520400&t=ee28f35d6e8e49618e4496a5c40977e5"
},
...
]
}
Inline Images
![Inline Images](/assets/docs/baidu/inline_images-97f23fb47c43dec8662372adffc38a30b973177859517c7722a06ae273c54b40.png)
https://www.searchapi.io/api/v1/search?engine=baidu&q=Red+Panda
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "baidu",
"q": "Red Panda"
}
response = requests.get(url, params = params)
print(response.text)
{
"inline_images": {
"total_images": 1763,
"suggestions": [
{
"title": "动物",
"link": "http://www.baidu.com/link?url=fk1_f1wVR-5VLuybRMyHaqtVcgbT5f5QZvPMazYupVlqTfQyiR_f-SWBrsLE12Zkg93XPeBsF_fe_EVQHIRPdqaydOuTroZB8L5JtJdDPVVwWzBkkn6B8otUHkX1AX-77J4tglY1XeZRyPhrtk7Zb3Z3NtJEb-AANSh80-rF_M62eSFIg6lueVLS9K2q4TrTaOTtfbjM5XCfRNsixIsKsAHege8PvfgFtxouR1UFmOUECp1LzyNPmxouBuLfGg5bOYnl1HKWJ2s4xY526-pmZINyMdC4pm8y1K2QsffZCA1RqMsz94sGoVTuNKyawDZUbi5AcZh5Z0AUc5aFNZ4v7ed1Pvf1rFlMURuHOaK1ONQTOfJNwg8dBRaBa2-_jCuJmZMdDRCn0DEj9hGo8aS1P83u2UiqckrqTGizF8WJG_hoEfYEh6y6CjoMbun9DWs6pJUutTR5M3eIxS7TVOoBcaRslGcfrDAAtRTYVRBlVIzNhdK2vR4UMfJbymwjr3Mh"
},
...
],
"images": [
{
"title": "40 interesting red pandas facts",
"original": {
"link": "http://www.seriousfacts.com/wp-content/uploads/2017/04/Endangered-Wildlife-min.jpg"
},
"thumbnail": "https://img1.baidu.com/it/u=97579814,1985408671&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1714842000&t=a98cf748267d44caa6ba1a3f67457a76"
},
...
]
}
}
Inline Videos
![Inline Videos](/assets/docs/baidu/inline_videos-23946c71df87d2cd4bf5d621a4006b036248be884ae00cb1911d6bfb6dba59a6.png)
https://www.searchapi.io/api/v1/search?engine=baidu&q=%E6%B5%81%E8%A1%8C%E9%9F%B3%E6%A8%82%E8%A6%96%E9%A0%BB
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "baidu",
"q": "流行音樂視頻"
}
response = requests.get(url, params = params)
print(response.text)
{
"inline_videos": [
{
"position": 1,
"title": "【2024抖音流行热门歌曲合集】精选50首好听的...",
"link": "http://www.baidu.com/link?url=9-_GsS1HAsfvn6pNvbPbjRi0no_m9lcnymDPLyrMUvE0Zyma9F4pXEIYwo93uuhF6ToNcC2o2-xQKz0IyEfDY_",
"source": "哔哩哔哩",
"length": "04:09",
"image": "https://t15.baidu.com/it/u=4162299121,3594302814&fm=225&app=113&size=f256,170&n=0&f=JPEG&fmt=auto?s=1E88FF05581176CE989CD9E10300F031&sec=1717866000&t=163be2528c28b03b29f4966d352351be"
},
...
]
}
Related Searches
![Related Searches](/assets/docs/baidu/related_searches-cd3db7287d1ac2f98aa40d2a59e331f6c6f824200bd9b91a56e8a9422ef3bd08.png)
https://www.searchapi.io/api/v1/search?engine=baidu&q=Airplane
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "baidu",
"q": "Airplane"
}
response = requests.get(url, params = params)
print(response.text)
{
"related_searches": [
{
"query": "飞机飞机plane的英文歌",
"link": "https://www.baidu.com/s?wd=%E9%A3%9E%E6%9C%BA%E9%A3%9E%E6%9C%BAplane%E7%9A%84%E8%8B%B1%E6%96%87%E6%AD%8C&rsf=101631108&rsp=0&f=1&rs_src=0&rsv_pq=cbcaafed000dbb44&rsv_t=7f938BxeOiT%2BfQBj6Pdsmqy%2BcOyhEfh4jyjqb%2FDcvHSj2yt67aEb8CK1aGc"
},
{
"query": "下载AIRPLANE",
"link": "https://www.baidu.com/s?wd=%E4%B8%8B%E8%BD%BDAIRPLANE&rsf=101636803&rsp=1&f=1&rs_src=0&rsv_pq=cbcaafed000dbb44&rsv_t=7f938BxeOiT%2BfQBj6Pdsmqy%2BcOyhEfh4jyjqb%2FDcvHSj2yt67aEb8CK1aGc"
},
...
]
}
People Also Search For
![People Also Search For](/assets/docs/baidu/people_also_search_for-180685cc9d683b9ef720d8c89e8251ae8ebc8286dcaba563687904f2b743d18a.png)
https://www.searchapi.io/api/v1/search?engine=baidu&q=Python+courses
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "baidu",
"q": "Python courses"
}
response = requests.get(url, params = params)
print(response.text)
{
"people_also_search_for": [
{
"query": "python中real的含义",
"link": "https://www.baidu.com/s?wd=python%E4%B8%ADreal%E7%9A%84%E5%90%AB%E4%B9%89&usm=3&ie=utf-8&rsv_pq=fa36f00a000f5182&oq=Python%20tutorial&rsv_t=f80cl92oDNmKaMxE25keFNUHvQsq%2F6XsA99qvN5a%2B%2FcqRrqFqKRtnGwmlmo&rsf=101631108&rsv_dl=0_prs_28608_1"
},
{
"query": "Python官方文档中文版",
"link": "https://www.baidu.com/s?wd=Python%E5%AE%98%E6%96%B9%E6%96%87%E6%A1%A3%E4%B8%AD%E6%96%87%E7%89%88&usm=3&ie=utf-8&rsv_pq=fa36f00a000f5182&oq=Python%20tutorial&rsv_t=f80cl92oDNmKaMxE25keFNUHvQsq%2F6XsA99qvN5a%2B%2FcqRrqFqKRtnGwmlmo&rsf=101633403&rsv_dl=0_prs_28608_2"
},
...
]
}