# Taiwan Address to English Translator + Postal Code (`zriil/taiwan-address-english`) Actor

Translate Taiwan addresses from Chinese to the official English format used by Chunghwa Post, with the 3-digit postal code. Bulk, offline, for shipping labels, cross-border e-commerce, logistics and CRM cleanup.

- **URL**: https://apify.com/zriil/taiwan-address-english.md
- **Developed by:** [zriil](https://apify.com/zriil) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 translated addresses

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

## Taiwan Address to English Translator + Postal Code

Translate **Taiwan addresses from Chinese into the English format used by Chunghwa Post** (Taiwan's postal service), and get the **3-digit postal code**, in bulk. Built for shipping labels, cross-border e-commerce, logistics, travel and CRM data cleanup.

| Input | Output |
|---|---|
| 臺北市大安區忠孝東路三段5巷7號2樓 | 2F., No. 7, Ln. 5, Sec. 3, Zhongxiao E. Rd., Da'an Dist., Taipei City 106, Taiwan (R.O.C.) |
| 台南市南區惠南街109巷20號3樓之2 | 3F.-2, No. 20, Ln. 109, Huinan St., South Dist., Tainan City 702, Taiwan (R.O.C.) |
| 新北市板橋區中山路一段161號5樓502室 | Rm. 502, 5F., No. 161, Sec. 1, Zhongshan Rd., Banqiao Dist., New Taipei City 220, Taiwan (R.O.C.) |
| 臺北市北投區大業路怡和巷1號 | No. 1, Yihe Ln., Daye Rd., Beitou Dist., Taipei City 112, Taiwan (R.O.C.) |

### What you get

| Field | Meaning |
|---|---|
| `englishAddress` | Full English address, smallest unit first |
| `postalCode3` | 3-digit postal code of the district |
| `city`, `district` | Recognized city / county and district (Chinese) |
| `input` | Your original address |

Handles 台 / 臺, full-width digits, a leading postal code, sections written as 3段 or 三段, numbered streets (崇明18街), 之 (5之1號, 3樓之2), basements (B1, 地下1樓), rooms (室), villages and neighborhoods (村 / 里 / 鄰) and named lanes.

### Pricing

You pay only for addresses that were **successfully translated**. Addresses that cannot be parsed are free; turn on *Save failed addresses* to see why each one failed.

### Data and privacy

- Translations come from Chunghwa Post open data (road and village name translations, district postal codes), licensed under Taiwan's Open Government Data License v1.0, bundled into the tool. Abbreviations follow Chunghwa Post's published guide (No., F, Rm., Ln., Aly., Sec., Vil., Neighborhood, Rd., St., Blvd.).
- Runs **offline**: your addresses are processed only inside your run and are not sent to any other service or kept by this tool.
- Roads newer than the official translation table, and a few rural address styles, may not be translated (and are not charged). Postal codes are 3-digit (district level).
- Not affiliated with Chunghwa Post.

# Actor input Schema

## `addresses` (type: `array`):

One address per line, starting with the city / county, e.g. 臺北市大安區忠孝東路三段5巷7號2樓. 台 / 臺, full-width digits and a leading postal code are all fine. Up to 50,000 per run.

## `includeFailed` (type: `boolean`):

Addresses that cannot be translated are never charged. Turn this on to save them (with the reason) to the run's key-value store under FAILED.

## Actor input object example

```json
{
  "addresses": [
    "臺北市大安區忠孝東路三段5巷7號2樓",
    "台南市東區崇明18街12號"
  ],
  "includeFailed": true
}
```

# 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 = {
    "addresses": [
        "臺北市大安區忠孝東路三段5巷7號2樓",
        "台南市東區崇明18街12號"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("zriil/taiwan-address-english").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 = { "addresses": [
        "臺北市大安區忠孝東路三段5巷7號2樓",
        "台南市東區崇明18街12號",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("zriil/taiwan-address-english").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 '{
  "addresses": [
    "臺北市大安區忠孝東路三段5巷7號2樓",
    "台南市東區崇明18街12號"
  ]
}' |
apify call zriil/taiwan-address-english --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zriil/taiwan-address-english"
        }
    }
}
```

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/6FtFBAyXhFcNJLfEA/builds/FcJBG2Uqb8GVDbXBH/openapi.json
