# Tencent Maps Scraper | Places, Phones, Ratings & Dianping Data (`memo23/tencent-maps-scraper`) Actor

Fast Tencent Maps (腾讯地图 / QQ Maps) scraper for Chinese businesses and landmarks. Extracts phones, ratings, Dianping review counts, group-buy deals, hotel rates, rankings, WeChat mini programs, WGS-84/GCJ-02 coordinates, cross-platform IDs, photos, menus, tags and reviews. No login.

- **URL**: https://apify.com/memo23/tencent-maps-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Lead generation, Travel
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 places

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Tencent Maps Scraper (腾讯地图 / QQ Maps)

Extract structured business, restaurant, hotel, and landmark data from **Tencent Maps (腾讯地图 / QQ Maps)** across mainland China — with **no login, no API key, and no browser overhead**.

Each place row includes up to **75 data fields**: name, category, full address, phone numbers, rating, full **Dianping (大众点评)** review count, average spend per person, Meituan group-buy vouchers & set meals, restaurant cuisines & services (table booking, online queue, delivery), hotel stars & OTA rates (Ctrip, eLong, Meituan, Fliggy), local leaderboard rankings, WeChat mini programs, **WGS-84 & GCJ-02** coordinates, cross-platform IDs (`dianpingId`, `amapId`, `meituanId`, `ctripId`, `fliggyId`, `elongId`), plus optional photos (up to ~200), recommended menu with prices, visitor tags, and up to 10 reviews.

***

### Why Choose This Actor?

- **Full Dianping review counts, not just map snippets.** While basic map listings only attach 3–9 reviews, enabling `includeReviewCount` (on by default) pulls the full Dianping review count (often thousands to tens of thousands) alongside group-buy deals, cuisines, booking/queue/delivery flags, rankings, and WeChat mini programs.
- **Hotel OTA price comparison built in.** Hotel searches automatically return star ratings, check-in/check-out times, and starting nightly rates across Ctrip, eLong, Meituan, Fliggy, and Vfuchong — plus cross-platform hotel IDs for instant joining.
- **Breaks past the ~800-result city cap.** When a city search needs more results than a single Tencent Maps search returns, the actor automatically subdivides district by district. Province and nationwide searches automatically expand city by city, busiest cities first.
- **Both WGS-84 and GCJ-02 coordinates.** Mainland China maps use offset GCJ-02 coordinates. Every row includes accurate WGS-84 coordinates (`latitude`, `longitude`, `navLatitude`, `navLongitude`) ready for Google Maps, Mapbox, and GIS tools, plus raw GCJ-02 values (`latitudeGcj02`, `longitudeGcj02`).
- **English or Chinese input.** Search with `hotpot`, `coffee`, `Shanghai`, `Sichuan`, or Chinese terms like `火锅`, `酒店`, `海底捞`, `北京`.

***

### Quick Start Examples

#### 1. List Shanghai hotpot restaurants (default)

```json
{
  "searchQueries": ["hotpot"],
  "cities": ["Shanghai"],
  "maxItems": 100
}
```

#### 2. Include photos, recommended menus, visitor tags, and reviews

```json
{
  "searchQueries": ["hotpot"],
  "cities": ["Shanghai"],
  "maxItems": 20,
  "includeReviewCount": true,
  "includeDetails": true,
  "maxReviews": 10
}
```

#### 3. Compare Beijing hotel rates across Ctrip, eLong, Meituan & Fliggy

```json
{
  "searchQueries": ["酒店"],
  "cities": ["Beijing"],
  "maxItems": 100,
  "includeReviewCount": true
}
```

#### 4. Refresh specific places by Tencent Maps URL or Place ID

```json
{
  "startUrls": [
    { "url": "https://map.qq.com/m/detail/poi/poid=6592306437757169526" },
    { "url": "https://map.qq.com/?what=咖啡&city=上海" }
  ],
  "poiIds": ["18195819856201555906"],
  "includeDetails": true,
  "maxReviews": 5
}
```

***

### Supported Inputs

| Input | Field | Behavior |
|---|---|---|
| `hotpot`, `coffee`, `酒店`, `海底捞` | `searchQueries` | Searches each keyword in each city (or all of China if `cities` is empty) |
| `Shanghai`, `上海`, `Sichuan`, `310000` | `cities` | Accepts English/Pinyin names, Chinese names, province names, or 6-digit adcodes |
| `https://map.qq.com/m/detail/poi/poid=...` | `startUrls` | Scrapes that exact place (never filtered by `minRating`) |
| `https://map.qq.com/?what=咖啡&city=上海` | `startUrls` | Runs that search (also supports `wd`/`keyword` + `c`/`region` and `apis.map.qq.com/uri/v1/search`) |
| `6592306437757169526` | `poiIds` | Refreshes exact Tencent Maps place IDs |

***

### Input Configuration

| Parameter | Type | Default | Description |
|---|---|---|---|
| `searchQueries` | `string[]` | `["hotpot"]` | Keywords, categories, or brand names in English or Chinese. |
| `cities` | `string[]` | `["Shanghai"]` | Target cities or provinces in English or Chinese. Leave empty to search all of China (busiest cities first). |
| `maxItems` | `integer` | `100` | Maximum places per search (one keyword in one city). Above ~800 results, subdivides by district. |
| `minRating` | `string` | none | Filter search results by minimum rating out of 5 (`"3"`, `"3.5"`, `"4"`, `"4.5"`, `"4.8"`). Unrated places are skipped. Direct place IDs/links are never filtered. |
| `startUrls` | `{ url: string }[]` | `[]` | Tencent Maps place links or search links. |
| `poiIds` | `string[]` | `[]` | Tencent Maps place IDs (9–20 digits). |
| `includeReviewCount` | `boolean` | `true` | Adds full Dianping review count, group-buy deals, restaurant services, hotel stars & OTA rates, rankings, and WeChat mini programs. Turn off for ultra-fast basic lists. |
| `includeDetails` | `boolean` | `false` | Adds `imageUrl`, `images` (up to ~200), `menu` (recommended dishes with prices & likes), and `tags` (visitor tags with counts). |
| `maxReviews` | `integer` (0–10) | `0` | Number of visitor reviews to include per place. Any value > 0 also enables `includeDetails`. |

***

### Output Fields

Every item in the dataset has a consistent schema (`null` when unavailable on Tencent Maps):

- **Identity**: `id`, `url`, `name`, `category`, `categoryPath`, `categoryCode`, `cuisines`, `businessStatus`, `introduction`, `description`, `features`, `recommendedDishes`, `tips`, `brandId`, `merchantName`
- **Contact**: `phone`, `phones`
- **Ratings & Metrics**: `rating`, `dianpingReviewCount`, `reviewsShown`, `reviewsSource`, `photosCount`, `averagePrice`, `currency`, `popularity`, `rank`, `clickCounts`
- **Location & Hours**: `address`, `merchantAddress`, `district`, `city`, `province`, `adcode`, `cityCode`, `provinceCode`, `countryCode`, `latitude`, `longitude`, `latitudeGcj02`, `longitudeGcj02`, `navLatitude`, `navLongitude`, `isIndoor`, `floorName`, `buildingId`, `parentPlaceId`, `areaSqm`, `openingHours`, `openingHoursSchedule`, `updatedAt`
- **Cross-Platform IDs**: `dianpingId`, `meituanId`, `amapId`, `ctripId`, `fliggyId`, `elongId`, `wechatMiniProgramId`
- **Deals, Hotels, Services & Rankings** (`includeReviewCount`): `hasGroupBuy`, `groupBuyDeals`, `hotelStars`, `checkInTime`, `checkOutTime`, `hotelRates`, `rateCalendar`, `wechatMiniPrograms`, `rankings`, `acceptsReservations`, `reservationUrl`, `offersOnlineQueue`, `offersDelivery`
- **Place Details** (`includeDetails` / `maxReviews`): `imageUrl`, `images`, `menu`, `tags`, `reviews`
- **Run Metadata**: `searchQuery`, `searchCity`, `scrapedAt`

#### Example Output Row

```json
{
  "id": "12017873546725958686",
  "url": "https://map.qq.com/m/detail/poi/poid=12017873546725958686",
  "name": "海底捞火锅(吴中路店)",
  "category": "火锅",
  "categoryPath": ["美食", "火锅"],
  "cuisines": ["四川火锅"],
  "businessStatus": "OPERATIONAL",
  "phone": "021-60985633",
  "phones": ["021-60985633", "021-60985632"],
  "rating": 4.7,
  "dianpingReviewCount": 27462,
  "averagePrice": 119,
  "currency": "CNY",
  "address": "上海市闵行区吴中路1100号天弘商务楼1-2层",
  "district": "闵行区",
  "city": "上海市",
  "province": "上海市",
  "adcode": "310112",
  "latitude": 31.179591,
  "longitude": 121.381736,
  "latitudeGcj02": 31.177722,
  "longitudeGcj02": 121.386373,
  "dianpingId": "ywEE-AuSZJnJCuVy02jTDg",
  "amapId": "B0FFF9RHKM",
  "hasGroupBuy": true,
  "acceptsReservations": true,
  "offersOnlineQueue": true,
  "offersDelivery": true,
  "wechatMiniProgramId": "wx1ddeb67115f30d1a",
  "searchQuery": "hotpot",
  "searchCity": "Shanghai",
  "scrapedAt": "2026-11-24T07:55:58.000Z"
}
```

***

### Use Cases

| Team | Use Case |
|---|---|
| **Lead Generation & Sales** | Build clean phone, address, and opening-hours lists for restaurants, clinics, retailers, and venues across Chinese cities. |
| **Market & Competitive Intelligence** | Track brand footprints (`brandId`), Dianping review volume, average spend, group-buy discounting, and local popularity rankings. |
| **Hospitality & Travel** | Compare starting nightly rates across Ctrip, eLong, Meituan, and Fliggy and join datasets using cross-platform hotel IDs. |
| **GIS & Location Analytics** | Drop accurate WGS-84 coordinates and mall/building hierarchy (`parentPlaceId`, `floorName`, `isIndoor`) directly into maps and BI tools. |

***

### FAQ

**Do I need a Tencent Maps API key or Chinese account?**
No. The actor works out of the box with zero credentials.

**Are duplicate places removed across multiple queries or cities?**
Yes. Places are deduplicated globally by Tencent Maps `id` within each run.

**Why are there two sets of coordinates?**
Chinese mapping platforms use the offset GCJ-02 datum. Use `latitude` / `longitude` (WGS-84) for GPS, Google Maps, OpenStreetMap, and standard GIS tools, or `latitudeGcj02` / `longitudeGcj02` for Chinese map SDKs.

# Actor input Schema

## `searchQueries` (type: `array`):

What to look for, in English or Chinese: <code>hotpot</code>, <code>coffee</code>, <code>酒店</code>, <code>海底捞</code>. Each term is searched in each city. Duplicate places are saved once.

## `cities` (type: `array`):

Chinese cities or provinces, in English or Chinese (<code>Shanghai</code>, <code>上海</code>, <code>Beijing</code>, <code>Sichuan</code>). Leave empty to search all of China, busiest cities first.

## `maxItems` (type: `integer`):

Maximum places to return per search (one term in one city). Above ~800 results in a city, automatically subdivides by district. Place IDs and place links always return their place.

## `minRating` (type: `string`):

Keep only search results rated at least this (out of 5). Unrated places are skipped when set. Place IDs and place links are never filtered.

## `startUrls` (type: `array`):

Paste <code>map.qq.com</code> links: place links (<code>https://map.qq.com/m/detail/poi/poid=…</code>) or search links (<code>https://map.qq.com/?what=咖啡\&city=上海</code>).

## `poiIds` (type: `array`):

Tencent Maps place IDs (e.g. <code>6592306437757169526</code>) from a previous run's <code>id</code> field or a place link's <code>poid</code>.

## `includeReviewCount` (type: `boolean`):

Adds full Dianping review count, Meituan group-buy vouchers & set meals, restaurant cuisines & booking/queue/delivery flags, hotel stars & booking site rates, local rankings and WeChat mini programs. Turn off for ultra-fast basic place lists.

## `includeDetails` (type: `boolean`):

Adds main photo and up to ~200 photo URLs, top recommended dishes with prices & likes, and visitor tags with counts.

## `maxReviews` (type: `integer`):

Number of visitor reviews to include per place (up to 10). Any value above 0 also enables place details.

## Actor input object example

```json
{
  "searchQueries": [
    "hotpot"
  ],
  "cities": [
    "Shanghai"
  ],
  "maxItems": 100,
  "includeReviewCount": true,
  "includeDetails": false,
  "maxReviews": 0
}
```

# Actor output Schema

## `dataset` (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 = {
    "searchQueries": [
        "hotpot"
    ],
    "cities": [
        "Shanghai"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/tencent-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 = {
    "searchQueries": ["hotpot"],
    "cities": ["Shanghai"],
}

# Run the Actor and wait for it to finish
run = client.actor("memo23/tencent-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 '{
  "searchQueries": [
    "hotpot"
  ],
  "cities": [
    "Shanghai"
  ]
}' |
apify call memo23/tencent-maps-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/tencent-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/cwx40a8DKJzoJqqBf/builds/O2JJVnoOwVEvLnHpi/openapi.json
