Core APIs
...
Baidu
Core Requests
Search
3min
baidu search parameters get 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 for example, to request baidu search results for the keyword pizza , the request would be http https //api serpwow\ com/live/search?api key=demo\&engine=baidu\&q=pizzacurl l get https //api serpwow\ com/live/search \\ d api key="demo" \\ d engine="baidu" \\ d q="pizza"const axios = require('axios'); // set up the request parameters const params = { api key "demo", engine "baidu", q "pizza" } // make the http get request axios get('https //api serpwow\ com/live/search', { params }) then(response => { // print the json response console log(json stringify(response data, 0, 2)); }) catch(error => { // catch and print the error console log(error); })import requests import json \# set up the request parameters params = { 'api key' 'demo', 'engine' 'baidu', 'q' 'pizza' } \# make the http get request api result = requests get('https //api serpwow\ com/live/search', params) \# print the json response print(json dumps(api result json()))\<?php \# set up the request parameters $querystring = http build query(\[ 'api key' => 'demo', 'engine' => 'baidu', 'q' => 'pizza' ]); \# make the http get request $ch = curl init(sprintf('%s?%s', 'https //api serpwow\ com/live/search', $querystring)); curl setopt($ch, curlopt returntransfer, true); curl setopt($ch, curlopt followlocation, true); \# the following options are required if you're using an outdated openssl version \# more details https //www openssl org/blog/blog/2021/09/13/letsencryptrootcertexpire/ curl setopt($ch, curlopt ssl verifyhost, false); curl setopt($ch, curlopt ssl verifypeer, false); curl setopt($ch, curlopt timeout, 180); $api result = curl exec($ch); curl close($ch); \# print the json response echo $api result; ?> 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 https //docs trajectdata com/serpwow/search api/pagination docs for more information next steps baidu search results https //docs trajectdata com/serpwow/search api/results/baidu/search