DataForSEO SERP API
  1. Baidu Organic SERP
DataForSEO SERP API
  • Google SERP
    • Google Organic SERP
      • Google Organic SERP POST
      • Google Organic SERP Completed Tasks
      • Google Organic SERP GET Regular
      • Google Organic SERP GET Advanced
      • Google Organic SERP GET HTML
      • Google Organic SERP Live Regular
      • Google Organic SERP Live Advanced
      • Google Organic SERP Live HTML
    • Google Maps SERP
      • Google Maps SERP POST
      • Google Maps SERP Completed Tasks
      • Google Maps SERP GET Advanced
      • Google Maps SERP Live
    • Google Local Finder SERP
      • Google Local Finder SERP POST
      • Google Local Finder SERP Completed Tasks
      • Google Local Finder SERP GET Advanced
      • Google Local Finder SERP GET HTML
      • Google Local Finder SERP Live Advanced
      • Google Local Finder SERP Live HTML
    • Google News SERP
      • Google News SERP POST
      • Google News SERP Completed Tasks
      • Google News SERP GET Advanced
      • Google News SERP GET HTML
      • Google News SERP Live Advanced
      • Google News SERP Live HTML
    • Google Events SERP
      • Google Events SERP POST
      • Google Events SERP Completed Tasks
      • Google Events SERP GET Advanced
      • Google Events SERP Live Advanced
      • Google Events Locations for SERP
    • Google Images SERP
      • Google Images SERP POST
      • Google Images SERP Completed Tasks
      • Google Images SERP GET Advanced
      • Google Images SERP GET HTML
      • Google Images SERP Live Advanced
      • Google Images SERP Live HTML
    • Google Search By Image
      • Google Search By Image POST
      • Google Search By Image Completed Tasks
      • Google Search By Image GET Advanced
      • Google Search By Image GET HTML
    • Google Jobs SERP
      • Google Jobs SERP POST
      • Google Jobs SERP Completed Tasks
      • Google Jobs SERP GET Advanced
      • Google Jobs SERP GET HTML
      • Google Jobs Locations for SERP
    • Google Autocomplete SERP
      • Google Autocomplete SERP POST
      • Google Autocomplete SERP Completed Tasks
      • Google Autocomplete SERP GET Advanced
      • Google Autocomplete SERP Live Advanced
    • Google Dataset Search
      • Google Dataset Search POST
      • Google Dataset Search Completed Tasks
      • Google Dataset Search GET Advanced
      • Google Dataset Search Live Advanced
    • Google Dataset Info
      • Google Dataset Info POST
      • Google Dataset Info Completed Tasks
      • Google Dataset Info GET Advanced
      • Google Dataset Info Live Advanced
    • Google Ads Advertisers SERP
      • Google Ads Advertisers SERP POST
      • Google Ads Advertisers SERP Completed Tasks
      • Google Ads Advertisers SERP GET Advanced
      • Google Ads Advertisers SERP Live Advanced
      • Google Ads Advertisers Locations for SERP
    • Google Ads Search SERP
      • Google Ads Search SERP POST
      • Google Ads Search SERP Completed Tasks
      • Google Ads Search SERP GET Advanced
      • Google Ads Search SERP Live Advanced
      • Google Ads Search Locations for SERP
    • Google Finance Explore SERP
      • Google Finance Explore SERP POST
      • Google Finance Explore SERP Completed Tasks
      • Google Finance Explore SERP GET Advanced
      • Google Finance Explore SERP GET HTML
      • Google Finance Explore SERP Live Advanced
      • Google Finance Explore SERP Live HTML
    • Google Finance Markets SERP
      • Google Finance Markets SERP POST
      • Google Finance Markets SERP Completed Tasks
      • Google Finance Markets SERP GET Advanced
      • Google Finance Markets SERP GET HTML
      • Google Finance Markets SERP Live Advanced
      • Google Finance Markets SERP Live HTML
    • Google Finance Quote SERP
      • Google Finance Quote SERP POST
      • Google Finance Quote SERP Completed Tasks
      • Google Finance Quote SERP GET Advanced
      • Google Finance Quote SERP GET HTML
      • Google Finance Quote SERP Live Advanced
      • Google Finance Quote SERP Live HTML
    • Google Finance Ticker Search
      • Google Finance Ticker Search SERP POST
      • Google Finance Ticker Search SERP Completed Tasks
      • Google Finance Ticker Search SERP GET Advanced
      • Google Finance Ticker Search SERP Live Advanced
    • Google Languages for SERP
      GET
    • Google Locations for SERP
      GET
  • Bing SERP
    • Bing Organic SERP
      • Bing Organic SERP POST
      • Bing Organic SERP Completed Tasks
      • Bing Organic SERP GET Regular
      • Bing Organic SERP GET Advanced
      • Bing Organic SERP GET HTML
      • Bing Organic SERP Live Regular
      • Bing Organic SERP Live Advanced
      • Bing Organic SERP Live HTML
    • Bing Local Pack SERP
      • Bing Local Pack SERP POST
      • Bing Local Pack SERP Completed Tasks
      • Bing Local Pack SERP GET Regular
      • Bing Local Pack SERP GET HTML
      • Bing Local Pack SERP Live Regular
      • Bing Local Pack SERP Live HTML
    • Bing Languages for SERP
      GET
    • Bing Locations for SERP
      GET
  • YouTube SERP
    • YouTube Organic SERP
      • YouTube Organic SERP POST
      • YouTube Organic SERP Completed Tasks
      • YouTube Organic SERP GET Advanced
      • YouTube Organic SERP Live Advanced
    • YouTube Video Info SERP
      • YouTube Video Info SERP POST
      • YouTube Video Info SERP Completed Tasks
      • YouTube Video Info SERP GET Advanced
      • YouTube Video Info SERP Live Advanced
    • YouTube Video Subtitles SERP
      • YouTube Video Subtitles SERP POST
      • YouTube Video Subtitles SERP Completed Tasks
      • YouTube Video Subtitles SERP GET Advanced
      • YouTube Video Subtitles SERP Live Advanced
    • YouTube Video Comments SERP
      • YouTube Video Comments SERP POST
      • YouTube Video Comments SERP Completed Tasks
      • YouTube Video Comments SERP GET Advanced
      • YouTube Video Comments SERP Live Advanced
    • YouTube Languages for SERP
    • YouTube Locations for SERP
  • Yahoo SERP
    • Yahoo Organic SERP
      • Yahoo Organic SERP POST
      • Yahoo Organic SERP Completed Tasks
      • Yahoo Organic SERP GET Regular
      • Yahoo Organic SERP GET Advanced
      • Yahoo Organic SERP GET HTML
      • Yahoo Organic SERP Live Regular
      • Yahoo Organic SERP Live Advanced
      • Yahoo Organic SERP Live HTML
    • Yahoo Languages for SERP
    • Yahoo Locations for SERP
  • Baidu SERP
    • Baidu Organic SERP
      • Baidu Organic SERP POST
        POST
      • Baidu Organic SERP Completed Tasks
        GET
      • Baidu Organic SERP GET Regular
        GET
      • Baidu Organic SERP GET Advanced
        GET
      • Baidu Organic SERP GET HTML
        GET
    • Baidu Languages for SERP
      GET
    • Baidu Locations for SERP
      GET
  • Naver SERP
    • Naver Organic SERP POST
    • Naver Organic SERP Completed Tasks
    • Naver Organic SERP GET Regular
    • Naver Organic SERP GET Advanced
    • Naver Organic SERP GET HTML
  • Seznam SERP
    • Seznam Organic SERP
      • Seznam Organic SERP POST
      • Seznam Organic SERP Completed Tasks
      • Seznam Organic SERP GET Regular
      • Seznam Organic SERP GET Advanced
      • Seznam Organic SERP GET HTML
    • Seznam Languages for SERP
    • Seznam Locations for SERP
  1. Baidu Organic SERP

Baidu Organic SERP GET HTML

GET
/serp/baidu/organic/task_get/html/{id}
Get Baidu Organic SERP HTML Results by id. The HTML function in Baidu SERP API arovides a raw SERP HTML page for the specified keyword, search engine, and location.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.dataforseo.com/v3/serp/baidu/organic/task_get/html/' \
--header 'Authorization: Basic Og=='
Response Response Example
{
    "version": "0.1.20241227",
    "status_code": 20000,
    "status_message": "Ok.",
    "time": "0.1492 sec.",
    "cost": 0,
    "tasks_count": 1,
    "tasks_error": 0,
    "tasks": [
        {
            "id": "04041004-8029-0066-0000-314577dd02b8",
            "status_code": 20000,
            "status_message": "Ok.",
            "time": "0.1130 sec.",
            "cost": 0,
            "result_count": 1,
            "path": [
                "v3",
                "serp",
                "baidu",
                "organic",
                "task_get",
                "html",
                "04041004-8029-0066-0000-314577dd02b8"
            ],
            "data": {
                "api": "serp",
                "function": "task_get",
                "se": "baidu",
                "se_type": "organic",
                "keyword": "albert einstein",
                "location_name": "China",
                "language_name": "Chinese (Simplified)",
                "device": "desktop",
                "os": "windows"
            },
            "result": [
                {
                    "keyword": "albert einstein",
                    "type": "organic",
                    "se_domain": "baidu.com",
                    "location_code": 2156,
                    "language_code": "zh_CN",
                    "datetime": "2025-04-04 07:04:27 +0000",
                    "items_count": 1,
                    "items": [
                        {
                            "page": 1,
                            "date": "2025-04-04T07:22:59.3235425Z",
                            "html": "<!DOCTYPE html>\n<!--STATUS OK-->\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n    \r\n\r\n\r\n    \r\n    \r\n    \n\n\n\n\n<html class=\"\">\n\t<head>\n\t\t\n\t\t<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">\n\t\t<meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\">\n\t\t\t\t\t\t\t<meta content=\"always\" name=\"referrer\">\n\t\t        <meta name=\"theme-color\" content=\"#ffffff\">\n        <link rel=\"shortcut icon\" href=\"https://www.baidu.com/favicon.ico\" type=\"image/x-icon\" />\n        <link rel=\"icon\" sizes=\"any\" mask href=\"https://www.baidu.com/favicon.ico\">\n        <link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/content-search.xml\" title=\"百度搜索\" />\n\t  \t<link rel=\"stylesheet\" data-for=\"result\" href=\"https://pss.bdstatic.com/r/www/static/font/cosmic/pc/cos-icon_8bae49a.css\"/>\n\t\t<link rel=\"apple-touch-icon-precomposed\" href=\"https://psstatic.cdn.bcebos.com/video/wiseindex/aa6eef91f8b5b1a33b454c401_1660835115000.png\">\n\t\t\n\t\t\n\t<title>albert einstein_百度搜索</title>\n\n\t\t\n\n\t\t\n\t<style data-for=\"result\" type=\"text/css\" id=\"css_newi_result\">html{font-size:100px}\nhtml body{font-size:.14rem;font-size:14px}\nbody{color:#333;background:#fff;padding:6px 0 0;margin:0;position:relative}\nbody,th,td,.p1,.p2{font-family:arial}\np,form,ol,ul,li,dl,dt,dd,h3{margin:0;padding:0;list-style:none}\ninput{padding-top:0;padding-bottom:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}\ntable,img{border:0}\ntd{font-size:9pt;line-height:18px}\nem{font-style:normal}\nem{font-style:normal;color:#c00}\na em{text-decoration:underline}\ncite{font-style:normal;color:green}\n.m,a.m{color:#666}\na.m:visited{color:#606}\n.g,a.g{color:green}\n.c{color:#77c}\n.f14{font-size:14px}\n.f10{font-size:10.5pt}\n.f16{font-size:16px}\n.f13{font-size:13px}\n.bg{background-image:url(https://pss.bdstatic.com/r/www/cache/static/protocol/https/global/img/icons_441e82f.png);_background-image:url(https://pss.bdstatic.com/r/www/cache/static/protocol/https/global/img/icons_d5b04cc.gif);background-repeat:no-repeat}\n#u,#head,#tool,#search,#foot{font-size:12px}\n.logo{width:117px;height:38px;cursor:pointer}\n.p1{line-height:120%;margin-left:-12pt}\n.p2{width:100%;line-height:120%;margin-left:-12pt}\n#wrapper{_zoom:1}\n#container{word-break:break-all;word-wrap:break-word;position:relative}\n.container_s{width:1002px}\n.container_l{width:1222px}\n#content_left{width:636px;float:left;padding-left:35px}\n#content_right{border-left:1px solid #e1e1e1;float:right}\n.container_s #content_right{width:271px}\n.container_l #content_right{width:434px}\n.content_none{padding-left:35px}\n.pc-fresh-smooth *{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}\n#u{color:#999;white-space:nowrap;position:absolute;right:10px;top:4px;z-index:299}\n#u a{color:#00c;margin:0 5px}\n#u .reg{margin:0}\n#u .last{margin-right:0}\n#u .un{font-weight:700;margin-right:5px}\n#u ul{width:100%;background:#fff;border:1px solid #9b9b9b}\n#u li{height:25px}\n#u li a{width:100%;height:25px;line-height:25px;display:block;text-al

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Path Params
id
string 
required
Task identifier.

Responses

🟢200Success
application/json
Body
object {0}
Modified at 2025-05-30 08:09:22
Previous
Baidu Organic SERP GET Advanced
Next
Baidu Languages for SERP
Built with