Baidu Top Searches API

For some searches, Baidu search includes a "Top Searches" block. SerpApi is able to scrape, extract, and make sense of this information. When a Baidu search contains top searches, they are parsed and exist within the top_searches array in the JSON output. SerpApi is able to extract position, text, link, tag, and count for each top searches result.

JSON structure overview

{
  ...
  "top_searches": [
    {
      "position": "Integer - Position of Search Query in Most Searched Queries",
      "text": "String - Query Text",
      "link": "String - URL to the query",
      "serpapi_link": "String - SerpApi link to the query",
      "tag": "String - Search Tag",
      "count": "String - Search Count"
    },
    ...
  ],
  ...
}

API Examples

Results for: Coffee

Results for: Coffee

JSON Example

{
  ...
  "top_searches": [
    {
      "position": 1,
      "text": "“两会时间”即将开启",
      "link": "https://www.baidu.com/s?wd=%E2%80%9C%E4%B8%A4%E4%BC%9A%E6%97%B6%E9%97%B4%E2%80%9D%E5%8D%B3%E5%B0%86%E5%BC%80%E5%90%AF&usm=1&ie=utf-8&rsv_pq=e588e3430001be28&oq=torque%20group%20international%20fortune%20limited%22%20(%E7%A0%B4%E4%BA%A7%20%7C%20%E6%B8%85%E7%9B%98%20%7C%20%E5%80%92%E9%97%AD%20%7C%20%E6%8C%87%E6%8E%A7%20%7C%20%E9%9A%90&rsv_t=32fdRa26yujosvR2i5FGrhqowCVFg0mnFQki6Qsu6cdxBx1gNpKQ7Ud4X3Q&rqid=e588e3430001be28&rsf=d4f5542ff78f7da47d7a8771beafb9a8_1_15_1&rsv_dl=0_right_fyb_pchot_20811&sa=0_right_fyb_pchot_20811",
      "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=baidu&f=8&pn=0&q=%E2%80%9C%E4%B8%A4%E4%BC%9A%E6%97%B6%E9%97%B4%E2%80%9D%E5%8D%B3%E5%B0%86%E5%BC%80%E5%90%AF&rn=51",
      "count": "492万",
      "tag": "热"
    },
    {
      "position": 2,
      "text": "中方:美过航台海加速“台独”覆灭",
      "link": "https://www.baidu.com/s?wd=%E4%B8%AD%E6%96%B9%3A%E7%BE%8E%E8%BF%87%E8%88%AA%E5%8F%B0%E6%B5%B7%E5%8A%A0%E9%80%9F%E2%80%9C%E5%8F%B0%E7%8B%AC%E2%80%9D%E8%A6%86%E7%81%AD&usm=1&ie=utf-8&rsv_pq=e588e3430001be28&oq=torque%20group%20international%20fortune%20limited%22%20(%E7%A0%B4%E4%BA%A7%20%7C%20%E6%B8%85%E7%9B%98%20%7C%20%E5%80%92%E9%97%AD%20%7C%20%E6%8C%87%E6%8E%A7%20%7C%20%E9%9A%90&rsv_t=32fdRa26yujosvR2i5FGrhqowCVFg0mnFQki6Qsu6cdxBx1gNpKQ7Ud4X3Q&rqid=e588e3430001be28&rsf=d4f5542ff78f7da47d7a8771beafb9a8_1_15_2&rsv_dl=0_right_fyb_pchot_20811&sa=0_right_fyb_pchot_20811",
      "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=baidu&f=8&pn=0&q=%E4%B8%AD%E6%96%B9%3A%E7%BE%8E%E8%BF%87%E8%88%AA%E5%8F%B0%E6%B5%B7%E5%8A%A0%E9%80%9F%E2%80%9C%E5%8F%B0%E7%8B%AC%E2%80%9D%E8%A6%86%E7%81%AD&rn=51",
      "count": "486万",
      "tag": "热"
    },
    {
      "position": 3,
      "text": "这些三月新规关乎你我的生活",
      "link": "https://www.baidu.com/s?wd=%E8%BF%99%E4%BA%9B%E4%B8%89%E6%9C%88%E6%96%B0%E8%A7%84%E5%85%B3%E4%B9%8E%E4%BD%A0%E6%88%91%E7%9A%84%E7%94%9F%E6%B4%BB&usm=1&ie=utf-8&rsv_pq=e588e3430001be28&oq=torque%20group%20international%20fortune%20limited%22%20(%E7%A0%B4%E4%BA%A7%20%7C%20%E6%B8%85%E7%9B%98%20%7C%20%E5%80%92%E9%97%AD%20%7C%20%E6%8C%87%E6%8E%A7%20%7C%20%E9%9A%90&rsv_t=32fdRa26yujosvR2i5FGrhqowCVFg0mnFQki6Qsu6cdxBx1gNpKQ7Ud4X3Q&rqid=e588e3430001be28&rsf=d4f5542ff78f7da47d7a8771beafb9a8_1_15_3&rsv_dl=0_right_fyb_pchot_20811&sa=0_right_fyb_pchot_20811",
      "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=baidu&f=8&pn=0&q=%E8%BF%99%E4%BA%9B%E4%B8%89%E6%9C%88%E6%96%B0%E8%A7%84%E5%85%B3%E4%B9%8E%E4%BD%A0%E6%88%91%E7%9A%84%E7%94%9F%E6%B4%BB&rn=51",
      "count": "471万",
      "tag": "热"
    },
  ...
}