# Tencent Maps China Local Business Intelligence (`quanmatrix/tencent-maps-business-intelligence`) Actor

Extract public Tencent Maps business listings and turn repeat snapshots into local-market movement signals.

- **URL**: https://apify.com/quanmatrix/tencent-maps-business-intelligence.md
- **Developed by:** [Rafael Barreto Haddad](https://apify.com/quanmatrix) (community)
- **Categories:** Lead generation, Travel
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## Tencent Maps China Local Business Intelligence

Turn public Tencent Maps search results into repeatable local-market intelligence rather than another static POI export.

### Why use this Actor

Tencent Maps is useful for understanding local visibility in China, but a one-time place list does not tell you whether a brand is gaining or losing search presence. This Actor is designed for recurring city/category monitoring: capture one search-market snapshot, reuse it in the next run, and receive exact rank changes, tracked-brand visibility share, and deterministic actions.

### Key features

- Logged-out public Tencent Maps browser-search extraction with no Tencent API key or account credentials.
- Stable Tencent `uid`, business name, address, coordinates, current search-market rank, and available public place fields.
- Multi-city and multi-keyword inputs for repeatable market coverage.
- Optional `trackedBrands` list for brand visibility monitoring.
- `trackedBrandSharePct` and per-place `visibilityScore` for each city/category market.
- Reusable `previousSnapshot` input keyed by Tencent `uid + city + keyword`.
- Exact `previousRank` and `rankDelta` calculations between runs.
- Deterministic `NEW_LISTING`, `RANK_GAIN`, `RANK_LOSS`, `DEFEND_TOP3`, and `MONITOR` actions.
- Fails closed when the public browser transport produces no real POIs. Diagnostic placeholders are never treated as production results.

### Output

Each dataset row includes `uid`, `name`, `address`, `city`, `keyword`, latitude/longitude, available rating/review/phone fields, `marketRank`, `previousRank`, `rankDelta`, `isTrackedBrand`, `trackedBrandSharePct`, `visibilityScore`, `agentAction`, source surface, and timestamp.

### Example workflow

Run `keywords: ["咖啡"]`, `cities: ["深圳"]`, and `trackedBrands: ["星巴克", "瑞幸"]` to capture the current coffee-search market. Store those rows. On the next scheduled run, pass them as `previousSnapshot`. A Starbucks location moving from rank 8 to rank 3 receives `rankDelta: 5` and `RANK_GAIN`; a tracked brand holding a top-three position can receive `DEFEND_TOP3`.

### Use cases

Use it for China local SEO, retail-network monitoring, restaurant and hotel market mapping, competitor visibility tracking, branch expansion research, franchise territory review, category landscaping, lead discovery, EV-charging network intelligence, pharmacy coverage, shopping-center monitoring, and recurring brand-share briefs.

### Pricing

The product uses one primary pay-per-result event: one normalized Tencent Maps business-intelligence row. The factory target is USD 0.0015 per result before canonical plan-tier pricing adjustments. Final release pricing remains governed by the factory's pricing and margin gates.

### Inputs

- `keywords`: one or more Chinese business/category queries.
- `cities`: one or more Chinese city names.
- `maxResults`: maximum normalized rows returned across the run.
- `trackedBrands`: optional name fragments used for brand-share and top-rank monitoring.
- `previousSnapshot`: optional prior output rows for exact rank movement.
- `diagnostic`: troubleshooting-only switch; keep disabled for production workflows.

### Competitive positioning

A mature Tencent Maps Actor already exists for rich POI/deep-detail extraction. This product deliberately does not claim superiority by merely returning the same fields. Its differentiation is the recurring intelligence layer: exact prior-snapshot search-rank movement plus tracked-brand visibility/share scoring and deterministic actions in the same run.

### Limitations

Tencent Maps frontend and network contracts can change. Search results represent the current public ranked search surface and are not intended to represent an exhaustive city census. Deep reviews, photos, mini-program data, and other detail-heavy surfaces are intentionally outside the present parity scope. The Actor does not bypass login, CAPTCHA, private sessions, or restricted APIs.

### Technical approach

The Actor launches Chromium on Apify, opens the public `map.qq.com` interface, submits the same logged-out POI search a visitor can perform, and normalizes real public search responses. It does not require private Tencent cookies or an API key. The Actor throws on zero real POIs rather than converting a transport failure into a successful-looking dataset.

### Data ethics

Use this Actor for legitimate public-business research and monitoring. Users remain responsible for applicable law, platform terms, rate discipline, and appropriate downstream use of local-business data.

# Changelog

This Actor's version history is a separate document: https://apify.com/quanmatrix/tencent-maps-business-intelligence/changelog.md

# Actor input Schema

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

Chinese business/category search terms.

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

Chinese city names.

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

Maximum normalized places returned across all city/keyword combinations.

## `trackedBrands` (type: `array`):

Optional brand/name fragments used for visibility-share and top-rank monitoring.

## `previousSnapshot` (type: `array`):

Optional prior rows from this Actor. Rows are matched by uid + city + keyword to calculate exact market-rank deltas.

## `diagnostic` (type: `boolean`):

Emit bounded browser-transport diagnostics only when no POIs can be normalized. Keep off for production runs.

## `mcpConnectors` (type: `array`):

Optional MCP connectors authorized in your Apify account. Use them to send or write this Actor result to tools such as Slack, Notion, GitHub, Sentry, Supabase, or another compatible MCP service.

## `mcpActionPreset` (type: `string`):

Choose a safe action pattern. AUTO\_SAFE\_WRITE discovers a compatible non-destructive write tool automatically; use a specific preset for Slack, GitHub, Notion, or database delivery.

## `mcpToolName` (type: `string`):

Exact MCP tool to call after the Actor produces its result, for example send\_message, create\_issue, or create\_page. Leave blank when no external action should run.

## `mcpToolArguments` (type: `object`):

JSON object passed to the selected MCP tool. String values may use {{actor\_title}}, {{result\_summary}}, or {{result\_json}} placeholders.

## `mcpFailOnError` (type: `boolean`):

When enabled, an MCP delivery error fails the Actor run. Disabled by default so data extraction and intelligence results remain available even if the external destination is unavailable.

## Actor input object example

```json
{
  "keywords": [
    "咖啡"
  ],
  "cities": [
    "深圳"
  ],
  "maxResults": 5,
  "trackedBrands": [],
  "previousSnapshot": [],
  "diagnostic": false,
  "mcpActionPreset": "AUTO_SAFE_WRITE",
  "mcpToolName": "",
  "mcpToolArguments": {},
  "mcpFailOnError": false
}
```

# Actor output Schema

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

Public Tencent Maps business rows and derived local-market signals.

# 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 = {
    "previousSnapshot": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("quanmatrix/tencent-maps-business-intelligence").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 = { "previousSnapshot": [] }

# Run the Actor and wait for it to finish
run = client.actor("quanmatrix/tencent-maps-business-intelligence").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 '{
  "previousSnapshot": []
}' |
apify call quanmatrix/tencent-maps-business-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,quanmatrix/tencent-maps-business-intelligence"
        }
    }
}
```

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/RLifV3E6zB2s2qijB/builds/ERd9FrY1oU8tZ5YG3/openapi.json
