Baidu Maps Business Scraper for China avatar

Baidu Maps Business Scraper for China

Pricing

from $1.55 / 1,000 baidu maps business scraper for chinas

Go to Apify Store
Baidu Maps Business Scraper for China

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

Vitalii Bondarev

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

12 days ago

Last modified

Features

Limited permissions

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.

FieldTypeWhat is returned
searchQuerystringKeyword that produced the row
uidstringBaidu place UID from the card
namestringBusiness name from the card
areastringArea text when shown
ratingnumberPublic rating when a numeric rate is shown
averagePriceCnynumberAverage price in CNY parsed from card price text
categorystringVisible category when shown
openingHoursstringOpening-hours text when shown
highlightsarray of stringsHighlight phrases on the card, each phrase once
tagsarray of stringsStandardized tags split on semicolons
resultRankinteger1-based card position using the card index and pn page number when the index is numeric
baiduMapsUrlstringListing 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.

EventWhen it is chargedFree-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

  1. Open the Actor on Apify and sign in with your own Apify account.
  2. Enter one to five keywords in queries.
  3. Set cityCode to the numeric Baidu city code; leave 131 for Beijing.
  4. Set maxResults to the maximum rows wanted across all keywords. The default is 50 and the maximum is 500.
  5. Keep the Apify Proxy setting, or set useApifyProxy to false for direct requests.
  6. Start the run and open the Dataset.
  7. 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

ParameterWhat it doesDefault
queriesRequired list of keywords. Empty strings are dropped, surrounding spaces are trimmed, and at most five keywords are searched in order.None. Prefill is 餐馆.
cityCodeNumeric Baidu Maps city code sent with every keyword. Values outside 1–9999 are clamped into that range. Beijing is 131.131
maxResultsMaximum listing rows written across all keywords. Values outside 1–500 are clamped into that range.50
proxyConfigurationWhen 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.

ConditionWhat you seeWhat to do
queries is missing, blank, or unusableThe 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 sentThat string is searched as the only keyword.Prefer a one-to-five item array.
A card has no UID or nameThe card is not stored.Expect fewer rows than cards on the page.
A page has no parseable listingsThe 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 failsEach 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 pagesPaging 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 createdBefore 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.

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.