All APIs

Search and places

Baidu Search API

Retrieve native Baidu Search data.

Make a request

Use your existing PrismCrawl API key and credit balance. A completed request consumes one credit, including recognized empty or unavailable results and source changes found during a valid continuation. Validation and operational errors remain uncharged. Each completed continuation request is billed separately.

POST /v1/baidu/search
curl 'https://api.prismcrawl.com/v1/baidu/search' \
  --request POST \
  --header 'content-type: application/json' \
  --header 'x-api-key: <PRISMCRAWL_API_KEY>' \
  --data '{
  "query": "coffee"
}'

Supported parameters

ParameterUsage
queryRequiredText to search for on the selected service.
pageOne-based page number.
deviceDevice presentation for the source request.

desktop, mobile, tablet

htmlReturn the encoded original response rather than parsed JSON.
zero_traceDo not archive source or parsed response artifacts.
ctResult language: 1 for all languages, 2 for Simplified Chinese, 3 for Traditional Chinese.
pnZero-based result offset. Cannot be combined with a page after page 1.
rnRequested results per page, up to 50. Baidu web supports this on desktop and tablet.
gpcTime interval as stf=START,END|stftype=1, using Unix seconds.
q5Restrict matching to page titles (1) or URLs (2).
q6Restrict results to this domain.
bsPrevious search query.
oqOriginal query when following a related search.
fSearch origin: 8 for normal search, 3 for a suggestion, 1 for a related search.

1, 3, 8

Structured results

Read items from data.content.results. The response also includes the search metadata, pagination state, and any extracted SERP features. Optional fields appear when supplied by the provider.

addresscategorycoordinatesdescriptionidlatitudelongitudenamephonepositionrankratingrating_maxrating_sourcereview_countsnippetsourcethumbnailtitletypeurlwebsite

SDKs and guides

The official SDKs cover this endpoint with typed parameters, automatic retries, and pagination helpers.