# Japan Corporate Registry Diff: New Companies (`jp_registry_data/japan-corporate-registry-diff`) Actor

Track Japan's company registry by corporate number: new companies, name changes, relocations, closures and mergers from the official NTA Web-API. Filter by date, prefecture and event type. English field names, pay per event ($3 per 1,000 events). Needs your own free NTA application ID.

- **URL**: https://apify.com/jp_registry_data/japan-corporate-registry-diff.md
- **Developed by:** [JP Registry Data](https://apify.com/jp_registry_data) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 company registry events

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Japan Corporate Registry Diff — New Companies, Name Changes, Relocations & Closures

Get a clean, English-labelled feed of **changes in the Japan company registry**: new companies in Japan, trade-name changes, head-office relocations, closures and mergers, all keyed by the 13-digit **corporate number** (法人番号). Data comes from the National Tax Agency (NTA) Corporate Number Web-API, the official source that covers every legal entity in Japan.

Looking for new companies only, without an NTA application ID? Use [Japan New Companies Monitor](https://apify.com/jp_registry_data/japan-new-company-monitor).

You choose a date range, optional prefectures and the event types you care about. The Actor returns one structured row per event, ready for your CRM, lead pipeline, KYB checks or market research.

### What is Japan Corporate Registry Diff?

Japan assigns every legal entity a 13-digit **corporate number** (法人番号). The NTA publishes a daily *diff* of registry changes, but the API is documented only in Japanese, requires a registered application ID, returns Shift-JIS/UTF-8 CSV with 30 positional columns, and limits each request to a short date window.

This Actor does that work for you:

- Splits long date ranges into API-sized windows and follows pagination.
- Filters by prefecture (all 47 supported) and by event type.
- Maps the NTA process codes to readable event types.
- Returns a small, stable schema with English field names.

### What data does it return?

Each dataset item is one registry event:

| Field | Description |
|---|---|
| `corporateNumber` | 13-digit Japanese corporate number (法人番号) |
| `name` | Registered trade name (商号), in Japanese |
| `prefecture` | Prefecture of the registered head office |
| `city` | City / ward |
| `streetAddress` | Remainder of the address |
| `address` | Full address (prefecture + city + street) |
| `eventType` | `new_incorporation`, `name_change`, `address_change`, `closure` or `merger` |
| `eventDate` | Date the change took effect (falls back to `publishedDate` when the registry gives none) |
| `publishedDate` | Date the NTA published the change |

Only the three basic public items (name, address, corporate number) plus the event type and dates are returned. **No personal data** (such as representative names) is included.

#### Event types

| `eventType` | NTA process code | Meaning |
|---|---|---|
| `new_incorporation` | 01 | A new corporate number was assigned (new company) |
| `name_change` | 11 | Trade name changed |
| `address_change` | 12 | Registered head-office address in Japan changed |
| `closure` | 21 | Registry record closed |
| `merger` | 71 | Dissolved by absorption-type merger |

Correction rows (re-publications that fix earlier data) are excluded for every event type, so a correction is not reported as a new event.

### How to use it

1. Click **Try for free**.
2. Enter your own **Houjin-Bangou Web-API application ID** (required, see the FAQ).
3. Set **Date from** and **Date to**. Leave both empty to get yesterday's changes (Japan time).
4. Optionally pick **Prefectures** (empty = all of Japan) and **Event types** (empty = all five).
5. Optionally set **Max items** to cap the output (and your cost).
6. Run the Actor and download the results as JSON, CSV, Excel or via the API.

**Tip — daily monitoring:** schedule the Actor to run every morning with empty dates and `eventTypes: ["new_incorporation"]`. You get a daily list of newly incorporated companies, which you can forward with a webhook or an integration.

### Input example

```json
{
  "dateFrom": "2026-09-01",
  "dateTo": "2026-09-30",
  "prefectures": ["13", "27"],
  "eventTypes": ["new_incorporation", "address_change"],
  "maxItems": 5000,
  "applicationId": "YOUR_NTA_APPLICATION_ID"
}
```

Prefectures use the JIS X 0401 code (`"01"` Hokkaido … `"13"` Tokyo … `"27"` Osaka … `"47"` Okinawa). The input form shows the English names.

### Output example

```json
{
  "corporateNumber": "1234567890123",
  "name": "株式会社サンプル",
  "prefecture": "東京都",
  "city": "千代田区",
  "streetAddress": "丸の内１丁目１－１",
  "address": "東京都千代田区丸の内１丁目１－１",
  "eventType": "new_incorporation",
  "eventDate": "2026-09-01",
  "publishedDate": "2026-09-03"
}
```

### Pricing

This Actor uses **pay-per-event** pricing. You pay only for what you get:

| Event | When it is charged | Price |
|---|---|---|
| Actor start | Once per run (Apify's standard start event) | Apify default |
| `company-event` | Once per registry event written to the dataset | $3.00 per 1,000 events ($0.003 each) |

Examples: 100 events cost $0.30, 5,000 events cost $15.00. The start event is $0.00005 per GB of memory, so a default 1 GB run adds $0.00005. No platform-usage charges are added on top for you.

A run that finds no events costs only the start event. You can set a **maximum total charge** for a run in the Apify Console. The Actor stops writing rows when that limit is reached.

### Limitations

- **Changes only.** The Actor returns registry changes (diffs), not a full company list.
- **Date range:** up to 366 days per run, no future dates. Longer histories can be fetched in several runs.
- **Request budget per run:** the date range is split into windows of about 50 days, and each window is queried once per selected prefecture (busy windows need extra pages). Runs that would need more than 250 window × prefecture queries are rejected up front; shorten the period or select fewer prefectures. If the API request budget still runs out mid-run, the rows already written are kept. Rows are written one whole window at a time, so the status message tells you the last published date that is complete; start the next run from the following day. If a run fails for another reason or stops at `maxItems` or the charge limit, it does not report a resume date, and re-running the same range can return rows you already have.
- **Order and `maxItems`:** rows are written in chronological order of `publishedDate`. When `maxItems` is reached, the earliest events are kept and the remaining date windows are not fetched.
- **Publication lag:** the NTA publishes changes with a delay of a few business days, so the most recent days may be incomplete when you run. `eventDate` may therefore be earlier than `publishedDate`.
- **Japanese text:** names and addresses are returned as registered, in Japanese. The schema and event types are in English.
- **No industry, phone, website or representative data.** The NTA API provides only the three basic items.
- **Pace:** requests to the NTA API are deliberately spaced at least one second apart to respect the public service. Long, multi-prefecture ranges may take several minutes.

### FAQ

**Is this data legal to use commercially?**
The data is public information released by the National Tax Agency. Its terms of use follow the Public Data License (公共データ利用規約 第1.0版), which requires attribution and a note when data is processed. Please review the terms for your own use case. See the attribution below.

**Do I need my own NTA application ID?**
Yes. The **Houjin-Bangou Web-API application ID** field is required, and this Actor does not provide a shared ID. The ID is free: apply for it on the NTA Corporate Number Publication Site (Web-API page). Requests are sent with your ID, so the NTA's terms of use for the Web-API apply to your use.

It is a secret input, stored encrypted by Apify, and this Actor does not write it to the output or the logs.

**Why is a company I know missing?**
Check the date range against `publishedDate`, not the incorporation date. Changes appear in the diff when the NTA publishes them.

**Can I get the full list of all companies?**
Not with this Actor. It returns changes (diffs). It is designed for monitoring and incremental updates.

### Data source and attribution

Source: National Tax Agency Corporate Number Publication Site (国税庁法人番号公表サイト), https://www.houjin-bangou.nta.go.jp/

出典：国税庁法人番号公表サイト（国税庁）（<https://www.houjin-bangou.nta.go.jp/>）

This Actor processes the data (filtering, field mapping, English labels). The output is not the original NTA data as published. 国税庁法人番号公表サイト（国税庁）（<https://www.houjin-bangou.nta.go.jp/>）を加工して作成

This service uses the NTA Corporate Number System Web-API, but the content of the service is not guaranteed by the National Tax Agency. (このサービスは、国税庁法人番号システムWeb-API 機能を利用して取得した情報をもとに作成しているが、サービスの内容は国税庁によって保証されたものではない)

Terms: [Corporate Number Publication Site terms of use](https://www.houjin-bangou.nta.go.jp/riyokiyaku/) (based on the [Public Data License v1.0](https://www.digital.go.jp/resources/open_data/public_data_license_v1.0)) and [Web-API terms of use](https://www.houjin-bangou.nta.go.jp/webapi/riyokiyaku.html).

### Support

Found a bug or need another field or filter? Open an issue on the Actor's **Issues** tab. Feature requests from real users decide what gets built next.

# Actor input Schema

## `dateFrom` (type: `string`):

Start of the period (YYYY-MM-DD, Asia/Tokyo). Defaults to yesterday in Asia/Tokyo. The number of period windows (about 50 days each) × prefectures is limited to 250; each query may need extra pages (see README).

## `dateTo` (type: `string`):

End of the period (YYYY-MM-DD, Asia/Tokyo). Defaults to yesterday in Asia/Tokyo, or to dateFrom if dateFrom is later. Must not be before dateFrom or in the future. The period is at most 366 days. The number of period windows (about 50 days each) × prefectures is limited to 250; each query may need extra pages (see README).

## `prefectures` (type: `array`):

Limit to these prefectures (JIS X 0401 codes, shown with English names). Leave empty for all of Japan.

## `eventTypes` (type: `array`):

Which registry events to output: new companies, name changes, relocations, closures, mergers. Leave empty for all five.

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

Maximum number of items to output (also caps the pay-per-event cost). Results are in chronological order of publication, so the earliest events are kept.

## `applicationId` (type: `string`):

Required. Your own application ID for the National Tax Agency Corporate Number Web-API (free; apply on the NTA Corporate Number Publication Site). This Actor does not provide a shared ID.

## Actor input object example

```json
{
  "prefectures": [
    "13"
  ],
  "eventTypes": [
    "new_incorporation"
  ],
  "maxItems": 100
}
```

# 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 = {
    "prefectures": [
        "13"
    ],
    "eventTypes": [
        "new_incorporation"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("jp_registry_data/japan-corporate-registry-diff").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 = {
    "prefectures": ["13"],
    "eventTypes": ["new_incorporation"],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("jp_registry_data/japan-corporate-registry-diff").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 '{
  "prefectures": [
    "13"
  ],
  "eventTypes": [
    "new_incorporation"
  ],
  "maxItems": 100
}' |
apify call jp_registry_data/japan-corporate-registry-diff --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jp_registry_data/japan-corporate-registry-diff"
        }
    }
}
```

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/4qn8FS1lGUjxTrXqL/builds/P101HVAEu527UchfI/openapi.json
