Baidu Related Topics API

Baidu search can contain a "Related Topics" block. In the JSON output, they are parsed and exist within the related_topics array. "Related Topics" block contains query, link, thumbnail, snippet and serpapi_link for each query.

API Examples

JSON structure overview

{
  "related_topics": [
    {
      "query": "String - Query of the related topic",
      "link":  "String - Link to the Baidu search",
      "thumbnail":  "String - Thumbnail to the related topic",
      "snippet":  "String - Snippet to the related topic",
      "serpapi_link":  "String - Link to the SerpApi search"
    },
    ...
  ],
}

Mobile Results for: 小米

Mobile Results for: 小米

JSON Example

{
  ...
  "related_topics": [
    {
      "link": "https://m.baidu.com/s?word=%E4%B8%89%E6%98%9F&sa=re_dl_er_28339_1&euri=6021ba483fe140b4b6c20cc47e22ce88&rqid=6933011065114161441&params_ssrt=node-san&oq=小米",
      "thumbnail": "https://t11.baidu.com/it/u=3922181731,3308899672&fm=58",
      "query": "三星",
      "serpapi_link": "https://serpapi.com/search.json?device=mobile&engine=baidu&f=8&q=%E4%B8%89%E6%98%9F",
      "snippet": "韩国第一大企业"
    },
    {
      "link": "https://m.baidu.com/s?word=OPPO&sa=re_dl_er_28339_2&euri=1dccce80e5014e7589935275ad115f1d&rqid=6933011065114161441&params_ssrt=node-san&oq=小米",
      "thumbnail": "https://t12.baidu.com/it/u=4269102761,965157556&fm=58",
      "query": "OPPO",
      "serpapi_link": "https://serpapi.com/search.json?device=mobile&engine=baidu&f=8&q=OPPO",
      "snippet": "全球性移动互联网公司"
    },
    {
      "link": "https://m.baidu.com/s?word=%E9%AD%85%E6%97%8F&sa=re_dl_er_28339_3&euri=a7813f0c3dfc45038387f9e1d0c03bde&rqid=6933011065114161441&params_ssrt=node-san&oq=小米",
      "thumbnail": "https://t12.baidu.com/it/u=2925680942,3026283835&fm=58",
      "query": "魅族",
      "serpapi_link": "https://serpapi.com/search.json?device=mobile&engine=baidu&f=8&q=%E9%AD%85%E6%97%8F",
      "snippet": "中国智能手机十大品牌"
    },
    ...
  ]
  ...
}