Core APIs
...
Baidu
Core Requests

Search

3min

Baidu Search Parameters

GET /search?engine=baidu

The Baidu Search Parameters are applicable when making a request with engine=baidu to retrieve Baidu search results for a given search term. The search term is specified in the q parameter.

Baidu Search Results
Baidu Search Results


For example, to request Baidu search results for the keyword pizza , the request would be:

HTTP
Curl
Node.js
Python
PHP



Baidu Search Parameters

The following parameters are available for all requests made when engine=baidu .

Parameter

Required

Description

engine

required

Should be set to engine=baidu .

q

required

The keyword you want to use to perform the search.

query_type

optional

Determines where Baidu searches for your query, can be set to page_title (to have Baidu search within the page title - similar to Google's intitle: query parameter) or web_address (to have Baidu search within the sites web address - similar to Google's inurl: query parameter).

results_language

optional

Determines whether Baidu limits the results to those in specific languages, can be set to all (to remove any limit), simplified_chinese or traditional_chinese .

page

optional

Determines the page of results to return, defaults to 1 .

max_page

optional

Use the max_page parameter to get multiple pages of results in one request. The API will automatically paginate through pages and concatenate the results into one response. See the Pagination docs for more information.



Next Steps      Baidu Search Results

Updated 15 Aug 2024
Did this page help you?