Baidu Documents Results API

For some searches, Baidu includes a "Documents" block, containing documents from Baidu Wenku. SerpApi is able to scrape, extract, and make sense of this information. When a Baidu search contains documents results, they are parsed and exist within the documents_results array in the JSON output. SerpApi is able to extract title, link, snippet, reads, and total_pages for each documents result.

API Examples

JSON structure overview

{
  ...
  "documents_results": [
    {
      "title": "String - Document title",
      "link": "String - URL to the document",
      "snippet": "String - Optional snippet of the document",
      "reads": "Integer - Read count of the document",
      "total_pages": "Integer - Total pages of the document"
    },
    ...
  ],
  ...
}

Mobile Results for: 专利模板

Mobile Results for: 专利模板

JSON Example

{
  ...
  "documents_results": [
    {
      "link": "https://m.baidu.com/from=0/bd_page_type=1/ssid=0/uid=0/pu=usm%400%2Csz%40320_1001%2Cta%40iphone_2_9.0_24_80.0/baiduid=249A028AC8BFFC01A5481C0ECB67D609/w=0_10_/t=iphone/l=1/tc?ref=www_iphone&lid=8538401973307772582&order=1&gsflag=0&fm=alop&isAtom=1&clk_info=%7B%22tplname%22%3A%22jy_rota_wenshu%22%2C%22srcid%22%3A267%2C%22jumpType%22%3A%22%22%7D&is_baidu=0&tj=jy_rota_wenshu_1_0_10_title&wd=&eqid=767e7f5b38810ea610000004634faa9b&w_qd=IlPT2AEptyoA_yk664EcwumuB5RVn8q&bdver=2&tcplug=1&dict=-1&sec=24823&di=f4d9b74ac677b967&bdenc=1&nsrc=q7V81mz5OzqUVqvRttPTtoxGLUaPd0TFtzh3eumH%2FXEso2klFhafAwau6ROm1nayAKhwBo2gZI9%2B3DINesrGW97yMYcnsb%2F7D2ct7dqNf%2F2sSjTzfbNon9AYHF0g%2FVSv8b1ZFIuZyclhcz5SfnsRrA%3D%3D",
      "title": "(完整版)专利申请模板",
      "snippet": "专利名称: 申报类别(发明、实用新型、外观设计): 摘要: 1、说明书摘要文字部分应当写明发明或者实用新型的名称和所属的技术领域,清楚反 映所...",
      "reads": 5242,
      "total_pages": 6
    },
    {
      "link": "https://m.baidu.com/from=0/bd_page_type=1/ssid=0/uid=0/pu=usm%400%2Csz%40320_1001%2Cta%40iphone_2_9.0_24_80.0/baiduid=249A028AC8BFFC01A5481C0ECB67D609/w=0_10_/t=iphone/l=1/tc?ref=www_iphone&lid=8538401973307772582&order=1&gsflag=0&fm=alop&isAtom=1&clk_info=%7B%22tplname%22%3A%22jy_rota_wenshu%22%2C%22srcid%22%3A267%2C%22jumpType%22%3A%22%22%7D&is_baidu=0&tj=jy_rota_wenshu_1_0_10_title&wd=&eqid=767e7f5b38810ea610000004634faa9b&w_qd=IlPT2AEptyoA_yk664EcwumuB5RVn8q&bdver=2&tcplug=1&dict=-1&sec=24823&di=48aab5d1a1b2faf9&bdenc=1&nsrc=q7V81mz5OzqUVqvRttPTtoxGLUaPd0TFtzh3eumH%2FXEysat%2B8n%2BJD4q2n8NvBGzTG5uUtYEub9FOblNJIeYa1vuxp0GpAiyPnIeGnmZ1kw763%2F8vLY2BT37m2l%2BqJvEeWbEg9JkxB7eQROvvP%2FiuGw%3D%3D",
      "title": "专利撰写模板",
      "reads": 22,
      "total_pages": 8
    },
    {
      "link": "https://m.baidu.com/from=0/bd_page_type=1/ssid=0/uid=0/pu=usm%400%2Csz%40320_1001%2Cta%40iphone_2_9.0_24_80.0/baiduid=249A028AC8BFFC01A5481C0ECB67D609/w=0_10_/t=iphone/l=1/tc?ref=www_iphone&lid=8538401973307772582&order=1&gsflag=0&fm=alop&isAtom=1&clk_info=%7B%22tplname%22%3A%22jy_rota_wenshu%22%2C%22srcid%22%3A267%2C%22jumpType%22%3A%22%22%7D&is_baidu=0&tj=jy_rota_wenshu_1_0_10_title&wd=&eqid=767e7f5b38810ea610000004634faa9b&w_qd=IlPT2AEptyoA_yk664EcwumuB5RVn8q&bdver=2&tcplug=1&dict=-1&sec=24823&di=c472eff800641996&bdenc=1&nsrc=q7V81mz5OzqUVqvRttPTtoxGLUaPd0TFtzh3eumH%2FXFNiI3%2BAs5fweeOtOZ%2FBu3Oqnq4WeXQUOQ1eAj6Dyd0N%2F4jXAAV10zYAQh%2F9zjjYIiP64OZDk1%2Fbwv6pC2%2FVh9p2hkPdGOn1S2NEWb0q7rKiA%3D%3D",
      "title": "发明专利撰写模板五篇",
      "reads": 2237,
      "total_pages": 44
    },
    {
      "link": "https://m.baidu.com/from=0/bd_page_type=1/ssid=0/uid=0/pu=usm%400%2Csz%40320_1001%2Cta%40iphone_2_9.0_24_80.0/baiduid=249A028AC8BFFC01A5481C0ECB67D609/w=0_10_/t=iphone/l=1/tc?ref=www_iphone&lid=8538401973307772582&order=1&gsflag=0&fm=alop&isAtom=1&clk_info=%7B%22tplname%22%3A%22jy_rota_wenshu%22%2C%22srcid%22%3A267%2C%22jumpType%22%3A%22%22%7D&is_baidu=0&tj=jy_rota_wenshu_1_0_10_title&wd=&eqid=767e7f5b38810ea610000004634faa9b&w_qd=IlPT2AEptyoA_yk664EcwumuB5RVn8q&bdver=2&tcplug=1&dict=-1&sec=24823&di=41ab803c7c9d71ad&bdenc=1&nsrc=q7V81mz5OzqUVqvRttPTtoxGLUaPd0TFtzh3eumH%2FXGqKDHwoGDZguhwU1GxfZoJGwyGmkIMqQjoDsBNA6OwJAaT%2FGAfhYALriSaXRSgBpWWETzAw31oWA4PkfmBH%2BUjjaslHv2BzmYkAOCFo0b07w%3D%3D",
      "title": "(完整版)专利申请模板.doc",
      "reads": 475,
      "total_pages": 6
    }
  ],
  ...
}