YepAPI
SERP

Baidu SERP

Baidu search results — organic rankings on China's dominant search engine.

POST/v1/serp/baidu
$0.01/call

Usage

const res = await fetch('https://api.yepapi.com/v1/serp/baidu', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ query: 'cloud computing services', depth: 10 }),
});
const { data } = await res.json();
console.log(data);
curl -X POST https://api.yepapi.com/v1/serp/baidu \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "cloud computing services", "depth": 10}'

Request Body

ParameterTypeRequiredDescriptionDefault
querystringYesSearch query to look up on Baidu
depthnumberNoNumber of results to return10
location_codenumberNoTarget country code (e.g., 2840 for US). See Location Codes.2840
languagestringNoISO language code (e.g., en, es)"en"

Response

{
  "ok": true,
  "data": {
    "query": "cloud computing",
    "totalResults": 0,
    "results": []
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.querystringThe search query that was executed on Baidu
data.totalResultsnumberTotal number of Baidu results for the query
data.resultsobject[]Array of search result items (may be empty for some queries)
data.results[].positionnumberPosition in search results (1-indexed)
data.results[].typestringResult type (e.g., organic)
data.results[].titlestringTitle of the search result
data.results[].urlstringURL of the search result page
data.results[].descriptionstringSnippet or description shown in Baidu results
data.results[].domainstringDomain of the result URL
Under the Hood

Under the hood, this queries our SERP engine. We normalize the response format and flatten nested structures for consistency.

On this page