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.
Pay-Per-Call
$0.02 / call via x402. Agents pay autonomously โ no signups, no API key management.
Free MCP Tier
Works in Claude Desktop & Cursor โ zero config, 100 req/day/IP, no wallet required.
A2A Ready
Agent Card at /.well-known/agent.json. Confidence scores on all verification responses.
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": "ๆฑไบฌ้ฝๅไปฃ็ฐๅบ้ใ้ข๏ผไธ็ฎ๏ผ๏ผ๏ผ",
"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 in progress) | $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 engine upgrade in progress)