# Validate Japanese Phone Numbers and Postal Codes

**Use case:** 

Check Japanese postal codes against official Japan Post data, fill in the address, find the postal code for an address and format phone numbers with their type.

## Input

```json
{
  "records": [
    {
      "id": 1,
      "postalCode": "１００－０００５",
      "address": "東京都千代田区丸ノ内1丁目1-1",
      "phone": "03(1234)5678"
    },
    {
      "id": 2,
      "postalCode": "5300001",
      "address": "大阪市北区梅田3-1-3",
      "phone": "０９０１２３４５６７８"
    }
  ],
  "postalCodeField": "postalCode",
  "addressField": "address",
  "phoneField": "phone"
}
```

## Output

```json
{
  "postalCode": {
    "label": "Postal code"
  },
  "postalCodeValid": {
    "label": "Postal code valid"
  },
  "prefecture": {
    "label": "Prefecture"
  },
  "city": {
    "label": "City"
  },
  "town": {
    "label": "Town"
  },
  "addressPostalCode": {
    "label": "Address postal code"
  },
  "addressMatchLevel": {
    "label": "Address match level"
  },
  "postalCodeMatchesAddress": {
    "label": "Postal code matches address"
  },
  "phoneNational": {
    "label": "Phone national"
  },
  "phoneType": {
    "label": "Phone type"
  },
  "phoneValid": {
    "label": "Phone valid"
  },
  "error": {
    "label": "Error"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Japan Postal Code & Phone Number Validator Actor is ready to run with the inputs already set for "Validate Japanese Phone Numbers and Postal Codes". [Sign up or log in](https://console.apify.com/create-task-from-example/3Jqdha1UCaUm9yeCQ) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Validate Japanese Phone Numbers and Postal Codes" task

The Japan Postal Code & Phone Number Validator Actor will start running based on the input automatically. You can also change all the input fields, like records, postal code field, and more, to match your specific use case.

### 3. Receive the "Validate Japanese Phone Numbers and Postal Codes" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as postal code, postal code valid, prefecture, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Validate Japanese Phone Numbers and Postal Codes" task via API](https://apify.com/ohs999/jp-contact-cleaner.md).

## About this Actor

This example demonstrates how to use [Japan Postal Code & Phone Number Validator](https://apify.com/ohs999/jp-contact-cleaner.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ohs999/jp-contact-cleaner.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/ohs999/jp-contact-cleaner.md

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`).
