# Baidu Maps Scraper - Chinese Business Data (`apt_marble/baidu-maps-scraper`) Actor

Extract places from Baidu Maps, China's largest local-business database. Search any keyword in any Chinese city and get names, addresses, phones, ratings, review counts, prices, opening hours, categories and coordinates. Fast, cookieless, complete unmasked data.

- **URL**: https://apify.com/apt_marble/baidu-maps-scraper.md
- **Developed by:** [Hamza](https://apify.com/apt_marble) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Baidu Maps Scraper

Extract rich place data from **Baidu Maps**, the largest maps and local-business database in China. Search by keyword and city and get clean, structured records: names, addresses, phone numbers, ratings, review counts, prices, opening hours, categories and exact coordinates.

Baidu Maps holds hundreds of millions of businesses that do not appear on any Western maps service. This actor is the simplest way to collect Chinese local-business data for lead generation, market research, competitor analysis, location intelligence and AI agents.

### What you get

- **Every field the maps service provides** - no masked or cut-down data
- **Fast** - results stream into your dataset as they are collected, first places in seconds
- **Any keyword, any Chinese city** - restaurants, hotels, shops, hospitals, banks, factories and more
- **Coordinates converted to plain latitude/longitude** - ready for your own maps and tools
- **No cookies, no accounts** - just enter a keyword and a city

### Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `keyword` | string | Yes | What to search for. Any business type, brand or place name, in Chinese or English. Examples: `咖啡`, `火锅`, `Starbucks`, `酒店`. |
| `location` | string | Yes | The city to search in. Chinese or English names both work. Examples: `北京市`, `Shanghai`, `广州市`. |
| `maxResults` | integer | No | Maximum number of places to collect. Default: `100`. |
| `maxConcurrency` | integer | No | How many result pages to load at the same time (1-10). Default: `3`. |

### Output

One dataset item per place. Example record:

```json
{
  "image": "https://poi-pic.cdn.bcebos.com/swd/28a1b2ce-de00-3b51-afb7-d02a1beaca28.jpg",
  "name": "星巴克(北京光耀东方店)",
  "rating": 3.5,
  "reviewsCount": 17,
  "price": "49.2",
  "phone": null,
  "address": "北京市海淀区羊坊店路18号光耀东方广场一层103单元",
  "categories": ["美食", "咖啡厅"],
  "openingHours": "周一至周六 06:00-21:30 周日 06:30-21:30",
  "city": "北京市",
  "area": "海淀区",
  "province": "北京市",
  "aoi": "北京西站/西客站",
  "latitude": 39.905002,
  "longitude": 116.328431,
  "uid": "261d9a8f181b11948c1a894d",
  "url": "https://map.baidu.com/?qt=inf&uid=261d9a8f181b11948c1a894d"
}
```

#### Output fields

| Field | Type | Description |
| --- | --- | --- |
| `image` | string | Main photo of the place |
| `name` | string | Place name |
| `rating` | number | Overall rating from 0 to 5 |
| `reviewsCount` | number | Number of reviews |
| `price` | string | Average spend per person, when provided |
| `phone` | string | Phone number |
| `address` | string | Full street address |
| `categories` | array | Categories, for example `Restaurant;Cafe` |
| `openingHours` | string | Opening hours as text |
| `city` | string | City |
| `area` | string | District of the city |
| `province` | string | Province |
| `aoi` | string | Named area or landmark zone the place belongs to |
| `latitude` | number | Latitude (BD-09 coordinate system) |
| `longitude` | number | Longitude (BD-09 coordinate system) |
| `uid` | string | Unique place identifier on the maps service |
| `url` | string | Link to the place page |

A field is `null` when the maps service does not provide it for that place - nothing is invented or masked.

### Use cases

- **Lead generation** - build lists of Chinese businesses with addresses and phone numbers
- **Market research** - count and map competitors in any Chinese city
- **Location intelligence** - analyze business density, ratings and prices by district
- **AI agents and RAG** - feed fresh Chinese local-business data into your agents
- **Expansion planning** - compare cities before entering the Chinese market

### FAQ

**Which cities are supported?**
Every city in China. Enter the city name in Chinese or English.

**Which keywords work best?**
Chinese keywords give the widest coverage (for example `咖啡` for coffee shops), but brand names and common English terms work too.

**What coordinate system are latitude/longitude in?**
BD-09, the coordinate system used by Chinese maps services. It converts to other systems with standard libraries when needed.

**What happens if nothing is found?**
The run still finishes successfully with a clear status message, so your schedules and integrations never break.

**Can I run this on a schedule?**
Yes - it works with Apify schedules, the API and every integration (Zapier, Make, webhooks and more).

# Actor input Schema

## `keyword` (type: `string`):

What to search for on Baidu Maps. Any business type, brand or place name, in Chinese or English. Examples: "咖啡", "火锅", "Starbucks", "酒店".

## `location` (type: `string`):

The city to search in. Accepts Chinese or English city names. Examples: "北京市", "Shanghai", "广州市".

## `maxResults` (type: `integer`):

Maximum number of places to collect. The actor stops at this number or when there are no more results.

## `maxConcurrency` (type: `integer`):

How many result pages to load at the same time. Higher is faster.

## Actor input object example

```json
{
  "keyword": "咖啡",
  "location": "北京市",
  "maxResults": 100,
  "maxConcurrency": 3
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keyword": "咖啡",
    "location": "北京市"
};

// Run the Actor and wait for it to finish
const run = await client.actor("apt_marble/baidu-maps-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "keyword": "咖啡",
    "location": "北京市",
}

# Run the Actor and wait for it to finish
run = client.actor("apt_marble/baidu-maps-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keyword": "咖啡",
  "location": "北京市"
}' |
apify call apt_marble/baidu-maps-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apt_marble/baidu-maps-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/8cpLLP716ZIeXejGo/builds/tuFniK4douhcTk7eL/openapi.json
