Baidu Social Media Results API
For some searches, Baidu includes social media result blocks. SerpApi is able to scrape, extract, and make sense of this information. When a Baidu search contains social media results, they are parsed and exist within the social_media_results
array in the JSON output.
SerpApi is able to extract link
, avatar
, nickname
, date
, source
, snippet
, inline_images
, verified
, comments
and likes
for each social media result.
API Examples
JSON structure overview
{
...
"social_media_results": [
{
"link": "String - URL to the post",
"avatar": "String - Avatar of the author",
"nickname": "String - Nickname of the author",
"date": "String - Date of the post",
"source": "String - Source of the post",
"snippet": "String - Snippet of the post",
"inline_images": "Array - Optional images of the post",
"verified": "Boolean - Whether the author is verified",
"comments": "Object - Comments info of the post, including `link` and `count`",
"likes": "Integer - Like count of the post",
},
...
],
...
}
Results for: S12
{
...
"social_media_results": [
{
"link": "http://weibo.com/6368965125/MaVvR9Keh",
"avatar": "https://gimg3.baidu.com/reyi/src=https%3A%2F%2Ftvax4.sinaimg.cn%2Fcrop.0.0.600.600.1024%2F006X1wLXly8h6xw8txbtjj30go0go0t9.jpg&refer=http%3A%2F%2Fwww.baidu.com&app=2003&size=f9999,10000&n=0&g=0n&er=404&q=75&fmt=auto&maxorilen2heic=2000000?sec=1666285200&t=37c296607ae771777a44802d2430be78",
"verified": true,
"nickname": "虎扑电竞",
"date": "16小时前",
"source": "微博",
"snippet": "真的要好好保护好自己! S12八强赛八支队伍目前状况 RGE:无 JDG:Yagao RNG:选手Breathe",
"inline_images": [
"https://t9.baidu.com/it/u=1684485964,4015917555&fm=70&app=139&size=r1,1&n=0&g=8n&f=JPEG?s=3093317689F4ACDA5EFAAF810200A08F&sec=1666285200&t=9c599a0b6d43f58c25e5f2bbadc2b1b6"
],
"comments": {
"link": "https://m.baidu.com/from=0/bd_page_type=1/ssid=0/uid=0/pu=usm%406%2Csz%401320_2001%2Cta%40iphone_1_13.5_24_83.0/baiduid=D323F16ABE215D72CBB491D2C8C73EDD/w=0_10_/t=iphone/l=1/tc?ref=www_iphone&lid=8280846382192848295&order=13&gsflag=4&fm=alop&isAtom=1&clk_info=%7B%22tplname%22%3A%22rel_ugc_dynamic%22%2C%22srcid%22%3A28445%2C%22jumpType%22%3A%22%22%7D&filter=1&is_baidu=0&tj=rel_ugc_dynamic_13_0_10_l1&wd=&eqid=72eb79e92a2eeda710000006634f9b93&w_qd=IlPT2AEptyoA_yiGTZG&bdver=2&tcplug=1&dict=-1&sec=24822&di=822ed671b08730c5&bdenc=1&nsrc=NAIzSX19S0RUo71%2FdpsrFai%2FF%2FLET3wunY5EL%2FfbrbQi3TLsMDqnH1PubPqbtK6gAof8x7BJxWcVsX88HcrLZGfBXu0%2BaUroJHNz%2Fdz0SXc%3D",
"count": 197
},
"likes": 800
},
{
"link": "http://weibo.com/7400905898/Mb0dui5GO",
"avatar": "https://gimg3.baidu.com/reyi/src=https%3A%2F%2Ftvax4.sinaimg.cn%2Fcrop.27.31.191.191.180%2F0084RrHYly8gcbaevh5s2j307z06774d.jpg&refer=http%3A%2F%2Fwww.baidu.com&app=2003&size=f9999,10000&n=0&g=0n&er=404&q=75&fmt=auto&maxorilen2heic=2000000?sec=1666285200&t=8a33d61c46178b3b97f0cde5814b60a3",
"verified": true,
"nickname": "图灵的猫",
"date": "4小时前",
"source": "微博",
"snippet": "「英雄联盟」我用AI预测了今年S12的冠军,让我们一周以后见分晓吧[奋斗]「微博公开课」图灵的猫的微博视频",
"inline_images": [
"https://t9.baidu.com/it/u=1954994388,3752160712&fm=70&app=139&size=f9999,10000&n=0&f=JPEG&fmt=auto&maxorilen2heic=2000000?s=0165D30207833CEB14A0832303007053"
],
"comments": {
"link": "https://m.baidu.com/from=0/bd_page_type=1/ssid=0/uid=0/pu=usm%406%2Csz%401320_2001%2Cta%40iphone_1_13.5_24_83.0/baiduid=D323F16ABE215D72CBB491D2C8C73EDD/w=0_10_/t=iphone/l=1/tc?ref=www_iphone&lid=8280846382192848295&order=14&gsflag=4&fm=alop&isAtom=1&clk_info=%7B%22tplname%22%3A%22rel_ugc_dynamic%22%2C%22srcid%22%3A28446%2C%22jumpType%22%3A%22%22%7D&filter=1&is_baidu=0&tj=rel_ugc_dynamic_14_0_10_l1&wd=&eqid=72eb79e92a2eeda710000006634f9b93&w_qd=IlPT2AEptyoA_yiGTZG&bdver=2&tcplug=1&dict=-1&sec=24822&di=7ba241ed64cb0eaf&bdenc=1&nsrc=NAIzSX19S0RUo71%2FdpsrFSPv0vBQv4ge1tALP6bMMaLbiGIHM%2FpGP4RuHM%2B8y8OHQ25PpCSbn63oJanTcc%2Bt7xXG3ylLhwcw6LS%2BFwM1n6A%3D",
"count": 0
},
"likes": 30
}
],
...
}