百度 Baidu - Cost-Effective Baidu Search

百度 Baidu search scraper with intelligent pagination and cost optimization. Built for developers who demand reliability without hidden fees. Features device targeting, localization, time filtering, and per-page billing. No monthly rentals - pay only for what you use.

MEDIAN LAGon demand
PARAMETERS7
TOTAL USERS112
MONTHLY ACTIVE17
TOTAL RUNS4,911
RUNS SUCCEEDED100.0%
RATING5.0 (2)

Input parameters

PARAMETERTYPEREQDEFAULTDESCRIPTION
query string yes The search term to search for on Baidu.
device enum no desktop The device type to simulate for the search.
localization integer no 1 Language filter for results. 1 = All languages (default), 2 = Simplified Chinese only, 3 = Traditional Chinese only.
page integer no 1 The starting page number for search results (default: 1).
num_results integer no 10 Number of results to retrieve per page (max 50, default: 10).
time_period string no Filter results by date range using Unix timestamps.
max_pagination integer no 3 Maximum number of pages to fetch (0 = no limit, default: 3 to avoid too many requests).

Worked examples

Basic — the required input, with the schema's own example values
{
  "query": "python tutorial"
}

Tasks

Saved runs with the inputs already filled in — each one a standalone page and a working configuration example.

Request a task →

Code

curl

curl -X POST "https://api.apify.com/v2/acts/johnvc~Baidu-Search-Scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query": "python tutorial"}'

Python

from apify_client import ApifyClient

client = ApifyClient("APIFY_TOKEN")
run = client.actor("johnvc/Baidu-Search-Scraper").call(
    run_input={'query': 'python tutorial'}
)
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)