DataForSEO SERP API icon

DataForSEO SERP API

DataForSEO SERP API

Actions87

Baidu → Get Baidu Organic SERP HTML

AI-generated

Summary

Retrieve the raw HTML of Baidu's organic search engine results page for a specified keyword and location, simulating a specified device and OS environment.

Inputs

  • Keyword (required) — The keyword to search for in Baidu organic SERP, up to 700 symbols, with URL-encoded characters decoded as specified.
  • Location (required) — The full name of the search engine location to target the Baidu search.
  • Language (required) — The full name of the search engine language for the search.
  • GPS Coordinates of a Location — Latitude, longitude, and radius formatted coordinates to specify a precise location.
  • Task Priority — Execution priority of the task; Normal (default) or High.
  • Device — Type of device to simulate: Desktop (default), Mobile, or Tablet.
  • OS — Operating system of the simulated device; Windows or macOS if device is Desktop, Android or iOS if Mobile or Tablet.
  • Depth — Depth of the results to retrieve; default is 100, with a valid range from 1 to 700.
  • Page Crawl Limit — Maximum number of pages to crawl; optional with limits from 1 to 100.
  • Include Direct URL for Each Ranked Result? — Boolean to include the direct URL for each ranked result; false by default.

Output shape

a JSON object containing the HTML content of the Baidu organic search results page corresponding to the specified parameters

The output contains the raw HTML of the SERP rather than structured or parsed data. Optional parameters allow control of the search scope, device simulation, and result depth. Errors or limits may be returned if parameters are invalid or limits exceeded.

Examples

Example 1: Search for keyword 'example keyword' in Beijing location with Chinese language, desktop device on Windows OS, default depth and priority, returning the Baidu organic SERP HTML.

Keyword='example keyword', Location='Beijing', Language='Chinese', Device='desktop', OS='windows', Depth=100, Priority=Normal, Include URL=false

Links

Discussion