Baidu Maps Business Scraper for China
Pricing
from $1.55 / 1,000 baidu maps business scraper for chinas
Baidu Maps Business Scraper for China
Collect public Baidu Maps business listings by keyword and city. Get name, area, rating, average price, category, hours, tags, highlights, rank, and listing URL when shown. Run with keywords and a city code; no login or API key. Pricing: $0.00155 per result row on Free.
Pricing
from $1.55 / 1,000 baidu maps business scraper for chinas
Rating
0.0
(0)
Developer
Vitalii Bondarev
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
1
Monthly active users
12 days ago
Last modified
Categories
Features
Share
Scrape Baidu Maps business listings by keyword and city for lead generation and local business research. The Actor reads server-rendered mobile listing pages. No Baidu login or API key is needed; you only need an Apify account.
- Extract place UIDs, names, areas, ratings, average prices, categories, hours, highlights, tags, ranks, and listing URLs when shown.
- Build lead lists of businesses, categories, areas, and Baidu Maps URLs.
- Compare ratings and average prices for businesses in one city, such as restaurants in Beijing.
- Check local opening hours, highlights, and tags.
- Search one to five keywords with one Baidu city code.
What you get
Each Dataset row is one listing parsed from a Baidu Maps mobile search card. The run searches map.baidu.com, follows later result pages on that host, and stores a card only when it has both a place UID and business name. The listing URL comes from the card; the run does not open it to add fields.
The same UID is stored once per keyword; the same place can appear again for another keyword. UID, highlights, and tags are stored even when they are not shown in the Dataset overview.
| Field | Type | What is returned |
|---|---|---|
| searchQuery | string | Keyword that produced the row |
| uid | string | Baidu place UID from the card |
| name | string | Business name from the card |
| area | string | Area text when shown |
| rating | number | Public rating when a numeric rate is shown |
| averagePriceCny | number | Average price in CNY parsed from card price text |
| category | string | Visible category when shown |
| openingHours | string | Opening-hours text when shown |
| highlights | array of strings | Highlight phrases on the card, each phrase once |
| tags | array of strings | Standardized tags split on semicolons |
| resultRank | integer | 1-based card position using the card index and pn page number when the index is numeric |
| baiduMapsUrl | string | Listing URL from the card, resolved on map.baidu.com |
Note: A value not shown on a card, or a rating or price text with no number, is omitted. The Actor does not manufacture coordinates, distances, scores, or other missing values.
A leading 营业时间 label is removed from opening hours only when it starts the text. Yen signs are removed before average prices are read as numbers.
Sample output
This is one listing returned for 餐馆 with city code 131. Field names and values are parsed from the card.
{"searchQuery": "餐馆","uid": "210d8d7d184acd0c14b54bce","name": "新新湘菜馆(新中街二条店)","baiduMapsUrl": "https://map.baidu.com/mobile/webapp/place/detail/qt=ninf&wd=%E9%A4%90%E9%A6%86&c=131&pn=0&uid=210d8d7d184acd0c14b54bce&industry=cater&qid=3752326537129033441/showall=1&pos=0&da_ref=listclk&da_qrtp=36&da_adtp=&da_log=&da_adquery=餐馆&da_adtitle=新新湘菜馆(新中街二条店)&da_adindus=美食;中餐厅&detail_from=list","resultRank": 1,"tags": ["美食", "中餐厅"],"area": "东城区","rating": 4.1,"averagePriceCny": 73.8,"category": "湘菜","highlights": ["停车免费", "店面不大", "口味较重"],"openingHours": "全年 周一至周日 营业时间: 10:30-22:30"}
Pricing
Billing is pay-per-event. The prices below are Free-plan prices.
You pay only for the events listed below. This Actor does not use the Pay per event + usage option, so the platform usage of your runs (compute, proxy traffic and storage) is not billed to you separately.
| Event | When it is charged | Free-plan price |
|---|---|---|
apify-actor-start (Actor Start) | When the Actor starts. The number of events depends on Actor memory: one event per GB, with a minimum of one event. | $0.00005 per event |
apify-default-dataset-item (Baidu Maps Business Scraper for China) | One Dataset row: one scraped result with all fields. This is the primary event. | $0.00155 per result row |
On Free, 50 results = $0.07755: 50 dataset rows at $0.00155 ($0.0775) plus one Actor Start event at $0.00005.
On Free, 1,000 rows = 1,000 × $0.00155 = $1.55 and 10,000 rows = 10,000 × $0.00155 = $15.50 in row events, plus $0.00005 per Actor Start event.
The Apify Free plan includes $5 of monthly platform usage credit. The $5 credit covers 3,225 rows after one Actor Start event, from floor((5 - 0.00005) / 0.00155) = 3225.
How to use
- Open the Actor on Apify and sign in with your own Apify account.
- Enter one to five keywords in
queries. - Set
cityCodeto the numeric Baidu city code; leave 131 for Beijing. - Set
maxResultsto the maximum rows wanted across all keywords. The default is 50 and the maximum is 500. - Keep the Apify Proxy setting, or set
useApifyProxyto false for direct requests. - Start the run and open the Dataset.
- Repeat the run through Apify Schedules.
{"queries": ["餐馆"],"cityCode": 131,"maxResults": 30,"proxyConfiguration": {"useApifyProxy": true,"apifyProxyGroups": ["RESIDENTIAL"]}}
Export the Dataset as JSON or CSV, or read it through the Apify Dataset API.
Input parameters
| Parameter | What it does | Default |
|---|---|---|
| queries | Required list of keywords. Empty strings are dropped, surrounding spaces are trimmed, and at most five keywords are searched in order. | None. Prefill is 餐馆. |
| cityCode | Numeric Baidu Maps city code sent with every keyword. Values outside 1–9999 are clamped into that range. Beijing is 131. | 131 |
| maxResults | Maximum listing rows written across all keywords. Values outside 1–500 are clamped into that range. | 50 |
| proxyConfiguration | When useApifyProxy is true, requests use that Apify Proxy configuration. Otherwise, or when absent, requests are direct and use no proxy. | useApifyProxy true, apifyProxyGroups RESIDENTIAL |
Limits and edge cases
Search results and available fields depend on what Baidu Maps shows on its mobile pages. By default requests go through RESIDENTIAL Apify Proxy.
| Condition | What you see | What to do |
|---|---|---|
queries is missing, blank, or unusable | The log says "Provide at least one Baidu Maps search keyword in queries." No row or collected-count line is written. | Enter at least one keyword. |
| A single keyword string is sent | That string is searched as the only keyword. | Prefer a one-to-five item array. |
| A card has no UID or name | The card is not stored. | Expect fewer rows than cards on the page. |
| A page has no parseable listings | The log warns: "The Baidu Maps page contained no parseable business listings; the query may have no results or the source markup may have changed." That keyword stops; stored rows remain and later keywords run. | Try another keyword or city code. |
| A result-page request fails | Each request allows 30 seconds and is tried three times, waiting 1 second after the first failure and 2 seconds after the second. The log then says "Failed to fetch Baidu Maps results" with the error. Remaining pages for that keyword stop; stored rows remain and later keywords run. | Start the run again. Apify Proxy can be enabled if it was off. |
The next link is missing, repeats the current page, leaves map.baidu.com, or a keyword reaches 50 pages | Paging for that keyword stops. A link that leaves map.baidu.com also logs "Stopped pagination because the next-page link left map.baidu.com." There is no separate page-cap log line. | Use the stored rows or narrow the keywords. |
| Apify Proxy is requested but no configuration is created | Before any row is stored, the run raises "Apify Proxy was requested but no proxy configuration was created." | Correct the proxy input or set useApifyProxy to false. |
A normal finish logs the number of rows stored in that run.
FAQ
How much does it cost to scrape Baidu Maps business listings?
The Free-plan prices are $0.00155 per result row and $0.00005 per Actor Start event; see Pricing for the calculations.
Why is the Dataset empty?
The keyword may have returned no parseable cards, every card may have lacked a UID or name, or a page request may have failed before a row was stored. Check the log for the no-listings warning, fetch error, or "Collected 0 Baidu Maps listings." Confirm that queries is non-empty and that cityCode is the intended Baidu code.
Which listing details are not included?
Only the fields in the field table are stored. Coordinates, distances, phone numbers, and email addresses are not output fields.
Is it legal to collect these Baidu Maps listings?
These Baidu Maps listings are public data. Whether a use is allowed depends on Baidu Maps source terms and applicable law for your use case. This page does not provide a legal guarantee.
Related actors
- 2GIS Places Scraper — Russia & CIS Business Directory — business-directory data from 2GIS in Russia and the CIS.
- Better Business Bureau Scraper — BBB Directory — business listings from the Better Business Bureau directory.
- B2B Leads List Builder — Maps + Email + Phone Enrichment — a related maps lead-list Actor with email and phone enrichment, which this Actor does not return.