China Address & Region Code Normalizer avatar

China Address & Region Code Normalizer

Pricing

from $5.00 / 1,000 results

Go to Apify Store
China Address & Region Code Normalizer

China Address & Region Code Normalizer

Parses mainland China addresses into province, city, county, administrative codes, and normalized detail addresses.

Pricing

from $5.00 / 1,000 results

Rating

0.0

(0)

Developer

Vaque Wei

Vaque Wei

Maintained by Community

Actor stats

1

Bookmarked

1

Total users

0

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

Parse messy mainland China address strings into standardized province, prefecture-level city, county/district, 6-digit GB/T 2260 administrative division codes, and clean detail addresses. Built for cross-border e-commerce, logistics/ERP, CRM deduplication, and AI data pipelines.

1-Click Try: Click Start with the prefilled Chinese addresses to see structured region codes and normalized output in seconds—no setup required. Last verified: November 2026.

Why this Actor

Raw Chinese shipping and CRM addresses frequently omit provinces, mix municipalities (北京/上海/天津/重庆) with districts, use county short names, or reference historical administrative divisions. Simple regex parsers silently misclassify ambiguous districts. This Actor uses a structured historical division dataset (1980–2024) and explicitly flags ambiguous inputs instead of guessing.

Key Features

  • Standardized 3-Level Parsing: Extracts canonical province, city, county, plus provinceCode, cityCode, countyCode.
  • Clean Street Extraction: Strips matched region prefixes into detailAddress and builds a clean normalizedAddress.
  • Batch Ready: Processes up to 1,000 addresses per run and preserves your custom id for seamless database/CSV joins.
  • Historical Snapshots (1980–2024): Match legacy addresses against a specific year's administrative division table.
  • Safe Ambiguity Handling: Unqualified duplicate district names (e.g., 朝阳区 without city context) are returned as unmatched with a clear warning rather than assigned randomly.

Works with AI Agents (MCP), n8n, Make & REST API

  • Compact JSON Output: Fast execution (~5s) with clean, predictable fields for LLM agents, Apify MCP (mcp.apify.com), n8n, Make, or Zapier.

Input Examples

Simple Batch Input (Default 1-Click Run)

{
"addresses": [
"广东省深圳市南山区深南大道10000号",
"北京市海淀区中关村大街1号"
],
"dataYear": 2024,
"matchingMode": "leftToRight",
"matchCountyShortNames": true
}

Structured Input (With Custom Record IDs & Historical Year)

{
"records": [
{"id": "order-1001", "address": "广东省深圳市南山区深南大道10000号", "year": 2024},
{"id": "order-1002", "address": "四川省重庆市渝中区解放碑", "year": 1995}
]
}

When records is supplied, it takes precedence over addresses.

Example Output

{
"id": null,
"inputAddress": "广东省深圳市南山区深南大道10000号",
"status": "matched",
"matchLevel": "county",
"province": "广东省",
"city": "深圳市",
"county": "南山区",
"provinceCode": "440000",
"cityCode": "440300",
"countyCode": "440305",
"detailAddress": "深南大道10000号",
"normalizedAddress": "广东省深圳市南山区深南大道10000号",
"dataYear": 2024,
"warning": null
}

Accuracy & Limitations

  • The bundled division dataset covers 1980 through 2024.
  • This Actor performs administrative division parsing and code normalization—it does not geocode lat/lng coordinates, verify building existence, or return personal data.
  • Powered by the MIT-licensed cnloc project.