Torify
Japan's AI agent market is growing at 46% CAGR toward $2.4B by 2030 — yet most AI agents can't reliably convert a wareki date or validate an invoice number. Torify fixes that: 42 Japanese locale endpoints, built for agents.
No competitor aggregates authoritative JP lookups in one API
No other REST API aggregates Japan locale tools for AI agents. Wareki, invoice T-number, 法人番号, and 39 more — one endpoint, one price.
Free MCP Tier
Works in Claude Desktop & Cursor — zero config, 100 req/day/IP, no wallet required.
Add to Claude Desktop in 30 seconds
Free tier — no API key, no wallet needed.
{
"mcpServers": {
"torify": {
"type": "http",
"url": "https://torify-mcp.torify.workers.dev"
}
}
}
Or via CLI: claude mcp add torify --transport http https://torify-mcp.torify.workers.dev
Free tier limit: 100 requests/day/IP. No API key or wallet required.
Core Primitives
The 6 endpoints that handle 80% of Japan-localization needs for AI agents.
| Endpoint | What it solves | Key response fields |
|---|---|---|
/v1/houjin/lookup | Corporate number → company identity | name, address, status, confidence, verified_at |
/v1/invoice/verify | Invoice number → NTA registration check | registered, confidence, registrantName, verified_at |
/v1/address/normalize | Raw Japanese address → structured components | prefecture, city, town, rest |
/v1/wareki/convert | Era date ↔ Gregorian (Meiji–Reiwa) | era, eraYear, eraRomaji, formatted |
/v1/name/romanize | カタカナ name → Hepburn romanization | romaji, parts (passport-style) |
/v1/phone/validate | Phone number → E.164 + area code info | e164, valid, areaCode, type |
Quick Start (REST / x402)
Authentication: attach X-PAYMENT (x402 USDC) or X-API-Key (subscription). Free endpoints below need neither.
# Verify a Japanese invoice number against NTA
curl "https://torify.dev/v1/invoice/verify?number=T1234567890123" -H "X-PAYMENT: <base64-payment>"
# Look up a company by corporate number (法人番号)
curl "https://torify.dev/v1/houjin/lookup?number=7000012050002" -H "X-PAYMENT: <base64-payment>"
# Consumption tax (no payment header required on local dev)
curl "https://torify.dev/v1/tax/calculate?amount=10000&category=standard"
# Japanese public holiday check
curl "https://torify.dev/v1/holiday/check?date=2026-05-03"
# Wareki → Gregorian
curl "https://torify.dev/v1/wareki/convert?direction=g2w&date=2026-05-08"
# Phone number E.164 normalization
curl "https://torify.dev/v1/phone/validate?phone=03-1234-5678"
Example Responses
Every endpoint returns {"ok":true,"data":{...}} on success, or {"ok":false,"error":{"code":"...","message":"..."}} on failure.
{
"ok": true,
"data": {
"era": "令和", "eraYear": 8, "eraRomaji": "Reiwa",
"formatted": "令和8年5月8日", "gregorian": "2026-05-08"
}
}
{
"ok": true,
"data": {
"number": "T1234567890123", "registered": true,
"confidence": 0.99, "registrantName": "株式会社サンプル",
"verified_at": "2026-05-08T12:00:00Z"
}
}
{
"ok": true,
"data": {
"houjinBangou": "7000012050002", "name": "国税庁",
"address": "東京都千代田区霞が関3丁目1-1",
"status": "active", "confidence": 0.99
}
}
x402-fetch SDK (TypeScript)
For AI agents that pay per call — no subscription needed. USDC on Base L2.
// Agent sends USDC automatically on every 402 response
import { createWalletClient, http } from 'viem';
import { privateKeyToAccount } from 'viem/accounts';
import { base } from 'viem/chains';
import { wrapFetchWithPayment } from 'x402-fetch';
const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);
const walletClient = createWalletClient({ account, chain: base, transport: http() });
const fetch402 = wrapFetchWithPayment(fetch, walletClient);
// Pays $0.02 USDC automatically — agent just calls the API
const res = await fetch402('https://torify.dev/v1/invoice/verify?number=T1234567890123');
const { ok, data } = await res.json();
// { ok: true, data: { registered: true, confidence: 0.99, ... } }
Data sources: Corporate & invoice data from Japan NTA official API. Wareki, holiday, and postal data are offline tables. Kanji-to-kana uses Cloudflare Workers AI (Llama 3.3 70B inference).
All Endpoints — $0.02 / call
Flat rate for all 42 endpoints. USDC on Base via x402 protocol.
📅 Calendar & Dates
Japanese era dates, public holidays, statutory rest days, and age/school-year calculations.
| Endpoint | Description | Price |
|---|---|---|
/v1/wareki/convert | Era date ↔ Gregorian (Meiji / Taisho / Showa / Heisei / Reiwa) | $0.02 |
/v1/holiday/check | Japanese public holiday check + annual list | $0.02 |
/v1/legal-holiday/check | Statutory rest day (法定休日) check — Labor Standards Act Art. 35 + overtime premium rate | $0.02 |
/v1/age/calculate | Age, school year, era-age calculation (Apr 1 rule) | $0.02 |
⚖️ Legal & Tax
Invoice validation & NTA registry lookup, consumption tax calculation, electronic bookkeeping compliance, and law search.
| Endpoint | Description | Price |
|---|---|---|
/v1/invoice/validate | Invoice number format check (no NTA call) | $0.02 |
/v1/invoice/verify | Invoice number → NTA registration check (confidence score) | $0.02 |
/v1/tax/calculate | Consumption tax: 10% standard / 8% reduced, rounding modes | $0.02 |
/v1/eltax/check | Electronic bookkeeping law (電帳法) compliance checklist | $0.02 |
/v1/law/search | Law title search via e-Gov Law API v2 (政府標準利用規約) | $0.02 |
🏢 Corporate & KYC
Corporate number (法人番号) lookup, My Number validation, and industry classification.
| Endpoint | Description | Price |
|---|---|---|
/v1/houjin/lookup | Corporate number → company info (NTA, confidence score) | $0.02 |
/v1/mynumber/validate | My Number format check (Verhoeff checksum) | $0.02 |
/v1/industry/lookup | JSIC Rev.14 industry classification code lookup | $0.02 |
🗺️ Geo & Address
Postal code → address lookup, address normalization, JIS X 0402 region codes, WGS84 ↔ JGD2011 coordinate conversion, and GSI geocoding.
| Endpoint | Description | Price |
|---|---|---|
/v1/postal/lookup | Postal code → prefecture / city / town | $0.02 |
/v1/address/normalize | Japanese address → structured prefecture / city / town | $0.02 |
/v1/region/lookup | JIS X 0402 prefecture / city code lookup | $0.02 |
/v1/coordinate/convert | WGS84 ↔ JGD2011 coordinate conversion | $0.02 |
/v1/geo/geocode | Address string → lat/lng (国土地理院 GSI, PDL 1.0) | $0.02 |
/v1/geo/reverse-geocode | lat/lng → municipality + town name (国土地理院 GSI, PDL 1.0) | $0.02 |
💰 Finance & Banking
Zengin bank/branch lookup, bank search and listing, transfer format validation, Japan Post account conversion, and 3D Secure applicability.
| Endpoint | Description | Price |
|---|---|---|
/v1/bank/lookup | Zengin bank code → bank name + branch (1,150+ banks, full Zengin database) | $0.02 |
/v1/bank/search | Search banks or branches by partial name (kanji/kana/romaji) | $0.02 |
/v1/bank/list | All Japanese financial institutions list (paginated) | $0.02 |
/v1/bank/transfer/validate | Bank transfer account format validation (全銀) | $0.02 |
/v1/yucho/convert | Japan Post account (記号・番号) → bank transfer format | $0.02 |
/v1/payment/3ds/check | 3D Secure 2.0 requirement check (MCC / BIN) | $0.02 |
📝 Text & Names
Kanji reading, kana conversion, NFKC normalization, name romanization, name validation, and surname/given-name splitting.
| Endpoint | Description | Price |
|---|---|---|
/v1/kanji/to-kana | Kanji → Hiragana / Katakana (engine upgrade · ETA 2026-06-01) | $0.02 |
/v1/kanji/normalize | Non-standard kanji → standard form (IVS, old→new) | $0.02 |
/v1/kana/convert | Hiragana ↔ Katakana ↔ Half-width Kana conversion | $0.02 |
/v1/text/normalize | Full-width ↔ half-width normalization (NFKC / ASCII) | $0.02 |
/v1/name/romanize | Japanese name → Hepburn romanization (passport-style) | $0.02 |
/v1/name/validate | Japanese name validation (人名用漢字) | $0.02 |
/v1/name/split | Japanese full name → surname / given name split | $0.02 |
🆔 Identity & Validation
Passport, social insurance, license plate, JAN barcode, MEXT school code, and Japanese phone number validation.
| Endpoint | Description | Price |
|---|---|---|
/v1/passport/validate | Japanese passport number format check | $0.02 |
/v1/insurance/validate | Social insurance number format check | $0.02 |
/v1/plate/validate | License plate / VIN validation | $0.02 |
/v1/barcode/validate | JAN code / ISBN-13 validation | $0.02 |
/v1/school-code/validate | MEXT school code (13-char) validation + type/establishment/prefecture decomposition | $0.02 |
/v1/phone/validate | Phone number validation + E.164 normalization | $0.02 |
🛠️ Diagnostics
Free utility endpoints for connection diagnostics.
| Endpoint | Description | Price |
|---|---|---|
/v1/whoami | Self IP address + country/region/ASN (diagnostic) | Free |
Subscription Plans
Free Trial — 100 calls / month
100 calls / month free · All 42 endpoints · No wallet needed · Resets monthly
Sign up with email: POST /v1/trial/signup → get an X-Trial-Key header. Read the docs →
Pro — $19 / month
10,000 calls / month · All 42 endpoints · No x402 wallet needed
Use X-API-Key: your-key header. Subscribe to Pro on Polar →
Enterprise — $149 / month
1,000,000 calls/month (Fair Use) · Priority support · Custom SLA · Ideal for Japan-expansion teams
Billed via Polar. Provisioned within 24h. Contact →
Available On
Find and install Torify through AI agent marketplaces and discovery networks.
Documentation
Full API docs · OpenAPI 3.1 · A2A Agent Card · Service Status · Uptime Monitor ↗ · llms.txt · llms-full.txt
FAQ
What is Torify?
Torify is a pay-per-call API service providing Japanese locale tools for AI agents — corporate verification, invoice compliance, address normalization, wareki date conversion, and more. Access via REST + x402 ($0.02/call), monthly subscription (Pro $19/mo), or free MCP for Claude Desktop/Cursor.
How do I verify a Japanese invoice number (インボイス番号)?
Call /v1/invoice/verify?number=T1234567890123. Torify queries the Japan NTA official API and returns registered: true/false, confidence, and registrantName. Format-only check (no NTA call): /v1/invoice/validate.
How do I look up a Japanese company by corporate number (法人番号)?
Call /v1/houjin/lookup?number=7000012050002. Returns company name, address, legal type (KK/GK/etc.), status (active/closed/merged), and confidence score from the NTA 法人番号 Web API.
What is wareki and how do I convert it?
Wareki (和暦) is the Japanese imperial era calendar — Meiji, Taisho, Showa, Heisei, Reiwa. Call /v1/wareki/convert?direction=g2w&date=2026-05-08 to get 令和8年5月8日, or direction=w2g to convert back to Gregorian.
Which access method should I use?
Free Trial (100 calls/mo) — Sign up with POST /v1/trial/signup, get an X-Trial-Key header. 100 calls/month free, resets on the 1st. No wallet, no credit card.
Free MCP — Use Claude Desktop or Cursor for interactive Japan-locale tasks. Zero config, 100 req/day/IP.
x402 per-call ($0.02) — Best for low-volume or occasional use (<2,500 calls/mo). Needs a USDC wallet on Base L2. No signup.
Pro subscription ($19/mo) — Best when call volume exceeds ~2,500 calls/mo, or when you want no wallet setup. API key, no x402 required.
Enterprise ($149/mo) — High-volume Japan-expansion teams needing 1,000,000 calls/month (Fair Use) + SLA.
Do I need a crypto wallet?
No — the free MCP tier requires no payment. For x402 per-call access you need USDC on Base L2. For Pro/Enterprise subscriptions, payment is via Polar (card — no crypto wallet required).
How do I add Torify to Claude Desktop?
Add to claude_desktop_config.json: {"torify": {"type": "http", "url": "https://torify-mcp.torify.workers.dev"}}. No key required. You get wareki, invoice, corporate lookup, postal, name romanization, geo, and more directly in Claude. (kanji-to-kana is being upgraded to a lightweight engine; ETA 2026-06-01)