# AMap (Gaode 高德地图) POI Scraper — China Places Data (`china-data-lab/amap-poi-scraper`) Actor

Scrape Amap (Gaode), China's largest map service, for points of interest: cafés, restaurants, shops, hotels, chain stores and any other business or place. Search by keyword and city (adcode or city name), paginate automatically, and get normalized JSON records with name, address, category and POI...

- **URL**: https://apify.com/china-data-lab/amap-poi-scraper.md
- **Developed by:** [lijinyu](https://apify.com/china-data-lab) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.44 / 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/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

## Amap (Gaode) POI Scraper — China Business & Place Data

Scrape **Amap (Gaode, 高德地图)**, China's largest map and navigation service, for points of interest: cafés, restaurants, shops, hotels, gyms, pharmacies, chain stores — any business or place that exists on the map.

Give it a keyword and a city, get back clean JSON: name, address, category, POI type code, lng/lat, district adcode, POI ID, deep link, and — when the merchant publishes one — a business landline or hotline.

No cookies. No login. No API key. No proxy.

### Why Amap POI data

Amap is the default map on Chinese phones and the reference layer behind most local search, delivery and travel apps. If a shop exists in China, it exists in Amap — with an address, a category, a coordinate and often a phone number.

That makes Amap the practical source for anything location-based in China:

- **Local SEO**: check whether your brand's outlets are actually listed, with the right name, address and category.
- **Market entry research**: count how many competitors already operate in a district before you sign a lease or open a store.
- **Store locator datasets**: build the outlet list behind a "find a store near me" page, with real coordinates.
- **Competitor outlet mapping**: map a chain's footprint city by city, then diff it month over month.

Western map datasets cover China poorly: names are transliterated, coverage stops at tier-1 cities, and coordinates drift. Amap is the ground truth Chinese users see.

### What you get

Every POI is one flat record. Fields below are exactly what the actor emits:

| Field | Example | Notes |
| --- | --- | --- |
| `name` | `星巴克(新世界店)` | Chinese, as displayed on the map |
| `address` | `南京西路2-68号3F北中庭` | Street address, Chinese |
| `category` | `咖啡厅` | Mapped from `typecode` (see Notes) |
| `typecode` | `050501` | Amap POI classification code, raw |
| `city` | `上海` | Resolved from your `city` input |
| `city_adcode` | `310000` | The admin code you searched in |
| `adcode` | `310101` | The POI's own district code (Huangpu, Shanghai) |
| `poi_id` | `B0HGO9VFQ3` | Amap POI ID — stable, use it as a join key |
| `location.lng` / `location.lat` | `121.473616` / `31.235348` | GCJ-02 coordinates, as Amap serves them |
| `modxy` | `121.476661,31.234527` | Amap's raw `lng,lat` string when present |
| `entrances` | `[{"lat": 31.234527, "lng": 121.476661}]` | Entrance coordinates when Amap has them |
| `tel` | `021-63128320` | Merchant **landline / 400-800 hotline** only |
| `image_url` | `https://store.is.autonavi.com/showpic/...` | Storefront photo from the detail page |
| `url` | `https://www.amap.com/place/B0HGO9VFQ3` | Canonical Amap page |
| `keyword` | `咖啡` | Which keyword produced this row |
| `page` | `1` | Which result page it came from |
| `scraped_at` | `2026-11-29T02:48:24.537797+00:00` | ISO 8601, UTC |

### Use cases

- **Local SEO audits** — verify name / address / category / phone for every outlet of a brand
- **Market entry research** — how dense is the coffee market in Jing'an vs. Pudong, by category
- **Store locator datasets** — coordinates + addresses ready for a map widget or a CSV import
- **Competitor outlet mapping** — pull a chain by keyword, then diff the POI ID set week over week
- **Site selection** — count anchor businesses (地铁站, 商场, 写字楼) around a candidate address
- **Sales prospecting** — build a list of cafés / restaurants / gyms in a city, with public phone numbers
- **Academic & urban research** — POI density and category mix as a proxy for commercial structure

### How it works

| Step | Endpoint | What it gives | Billed as |
| --- | --- | --- | --- |
| 1. Search | `GET https://www.amap.com/service/poiInfoPlan` | `poi_list` page by page: name, address, typecode, coordinates, adcode, POI ID | `result` |
| 2. Detail (optional) | `GET https://www.amap.com/place/<poi_id>` | schema.org `LocalBusiness` block: `telephone`, `image`, `geo` | `poi-detail`, only when a phone or photo actually lands in the record |

Pagination walks `pagenum` until Amap returns no new POIs or `maxItems` is hit. If a page comes back as an HTML shell or an error instead of JSON, that page is skipped and the walk continues — a single bad response never kills the run.

### Input example

```json
{
  "mode": "search",
  "keywords": ["咖啡"],
  "city": "310000",
  "maxItems": 10
}
```

A two-city, two-keyword sweep:

```json
{
  "mode": "search",
  "keywords": ["咖啡", "火锅"],
  "city": "深圳",
  "maxItems": 100,
  "maxPages": 5,
  "includeDetails": true
}
```

`city` accepts an adcode (`310000` Shanghai, `110000` Beijing, `440300` Shenzhen, `330100` Hangzhou) or a city name (`上海`, `深圳`).

### Output example

Real records from a run with the input above:

```json
[
  {
    "name": "瑞幸咖啡(海洋大厦店)",
    "address": "延安东路550号海洋大厦一层105B室",
    "category": "咖啡厅",
    "typecode": "050500",
    "city": "上海",
    "city_adcode": "310000",
    "adcode": "310101",
    "poi_id": "B0FFK009RX",
    "location": { "lng": 121.48147499999999, "lat": 31.230775 },
    "modxy": "121.48137456673454,31.230704904416392",
    "entrances": [{ "lat": 31.230704904416392, "lng": 121.48137456673454 }],
    "tel": "4000100100",
    "image_url": "https://store.is.autonavi.com/showpic/c287706810a95e84ab635a931ccf264d?operate=original",
    "url": "https://www.amap.com/place/B0FFK009RX",
    "keyword": "咖啡",
    "page": 1,
    "scraped_at": "2026-11-29T02:48:24.016755+00:00"
  },
  {
    "name": "星巴克(新世界店)",
    "address": "南京西路2-68号3F北中庭",
    "category": "咖啡厅",
    "typecode": "050501",
    "city": "上海",
    "city_adcode": "310000",
    "adcode": "310101",
    "poi_id": "B0HGO9VFQ3",
    "location": { "lng": 121.47361599999999, "lat": 31.235348 },
    "modxy": "",
    "entrances": [],
    "tel": "021-63128320",
    "image_url": "http://store.is.autonavi.com/showpic/ec3440dbf3d8f9de23da5c7a0cf58ad7",
    "url": "https://www.amap.com/place/B0HGO9VFQ3",
    "keyword": "咖啡",
    "page": 1,
    "scraped_at": "2026-11-29T02:48:24.537797+00:00"
  },
  {
    "name": "Costa Coffee(上海华美达店)",
    "address": "南京东路719号南新雅大酒店1层(近贵州路)",
    "category": "咖啡厅",
    "typecode": "050500",
    "city": "上海",
    "city_adcode": "310000",
    "adcode": "310101",
    "poi_id": "B0FFG0Z4RZ",
    "location": { "lng": 121.47677499999998, "lat": 31.234575 },
    "modxy": "121.476661,31.234527",
    "entrances": [{ "lat": 31.234527, "lng": 121.476661 }],
    "tel": "021-63512916",
    "image_url": "https://store.is.autonavi.com/showpic/79578efebc3cbd3c3d3243f52b9e3522",
    "url": "https://www.amap.com/place/B0FFG0Z4RZ",
    "keyword": "咖啡",
    "page": 1,
    "scraped_at": "2026-11-29T02:48:24.968874+00:00"
  }
]
```

### Pricing

Pay per event — you are charged for what the run actually produced:

| Event | Charged for | Price (FREE tier) |
| --- | --- | --- |
| `result` | one POI record returned in the dataset | $0.012 |
| `poi-detail` | one POI whose detail page was fetched **and** added a public phone or a photo | $0.006 |

Volume tiers discount the same events: SILVER 95%, GOLD 87%, PLATINUM and DIAMOND 80%. A run also incurs the one-time `apify-actor-start` event.

`poi-detail` is only charged when the detail fetch actually contributed data. A POI whose detail page comes back empty, or whose only number is a mobile that is dropped for privacy, stays at the `result` price. If you only need names, addresses and coordinates, set `includeDetails: false` — then no `poi-detail` event can happen at all. Verified on real runs: 10 POIs with details → 10 × `result` + 10 × `poi-detail`; 4 POIs with `includeDetails: false` → 4 × `result`, 0 × `poi-detail`.

### Notes and limits

- **Business and place data only.** The actor collects what a shop sign says: name, address, category, coordinates, and a merchant's published landline/hotline. It does not collect personal mobile numbers, private addresses or any personal profile data. If Amap lists an 11-digit mobile for a small merchant, that number is **dropped**, not returned — `tel` stays `null`. In a 10-POI Shanghai café run, 5 merchants had a public landline/400 number (kept) and 5 listed only a mobile (dropped).
- **`category` is mapped, `typecode` is raw.** `category` comes from Amap's published POI type-code table: first-level codes (`05` 餐饮服务, `06` 购物服务, `10` 住宿服务 …) plus the common dining second-level codes (`0505` 咖啡厅, `0503` 快餐厅 …). An unmapped code keeps `typecode` and leaves `category` as `null` — the actor never guesses a category name.
- **Coordinates are GCJ-02**, the Chinese national coordinate system Amap serves. Convert to WGS-84 before plotting on OpenStreetMap tiles; skipping the conversion shifts points by 100–700 m in Chinese cities.
- **The list endpoint moved.** Older scrape recipes call `/service/poiInfo`. That path now returns the site's HTML shell (~85 KB, starts with `\r\n<!DOCTYPE html>`), which is why `r.json()` blows up around char 2. This actor uses `/service/poiInfoPlan` (verified JSON) and keeps `/service/poiInfo` only as a fallback candidate.
- **Amap caps 20 POIs per page**, and deep pagination is finite (a Shanghai café query reports 600 total, i.e. 30 pages). `maxPages` is a safety stop; the walk normally ends earlier.
- Rate limits are handled by retrying with backoff. Very large runs from one IP may get throttled — lower `maxPages` or split by city.
- Export results as JSON, CSV or Excel from the dataset tab, or pull them with the Apify API.

# Actor input Schema

## `mode` (type: `string`):

search = keyword search over Amap places, paginated per keyword.

## `keywords` (type: `array`):

What to look for. Chinese works best (咖啡, 火锅, 便利店, 健身房); English brand names also work (Starbucks).

## `city` (type: `string`):

Amap adcode (310000 Shanghai, 110000 Beijing, 440300 Shenzhen, 330100 Hangzhou) or a city name (上海 / 深圳).

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

Hard cap on returned POIs across all keywords. Keep it low while testing, you pay per POI returned plus one detail charge per POI that comes back with a phone or a photo.

## `pagesize` (type: `integer`):

POIs requested per page. Amap caps this at 20; larger values are clamped.

## `maxPages` (type: `integer`):

Safety stop for pagination. Normally the actor stops earlier when Amap runs out of results or maxItems is reached.

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

Fetch each POI's detail page to add the merchant's public landline or hotline and a photo. Each POI that actually yields a phone or a photo is charged one extra 'poi-detail' event; POIs without details are not. Personal mobile numbers are never collected.

## Actor input object example

```json
{
  "mode": "search",
  "keywords": [
    "超市"
  ],
  "city": "110000",
  "maxItems": 10,
  "pagesize": 20,
  "maxPages": 10,
  "includeDetails": false
}
```

# 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 = {
    "keywords": [
        "超市"
    ],
    "city": "110000",
    "maxItems": 10,
    "includeDetails": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("china-data-lab/amap-poi-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 = {
    "keywords": ["超市"],
    "city": "110000",
    "maxItems": 10,
    "includeDetails": False,
}

# Run the Actor and wait for it to finish
run = client.actor("china-data-lab/amap-poi-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 '{
  "keywords": [
    "超市"
  ],
  "city": "110000",
  "maxItems": 10,
  "includeDetails": false
}' |
apify call china-data-lab/amap-poi-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,china-data-lab/amap-poi-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/bPXeJDmW7UTlyXXdK/builds/LE5IE02QioAyDJ6dY/openapi.json
