Torify

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.

42 Endpoints $0.02 / call Free MCP x402 · A2A · MCP
🗾

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.

claude_desktop_config.json
{
  "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.

EndpointWhat it solvesKey response fields
/v1/houjin/lookupCorporate number → company identityname, address, status, confidence, verified_at
/v1/invoice/verifyInvoice number → NTA registration checkregistered, confidence, registrantName, verified_at
/v1/address/normalizeRaw Japanese address → structured componentsprefecture, city, town, rest
/v1/wareki/convertEra date ↔ Gregorian (Meiji–Reiwa)era, eraYear, eraRomaji, formatted
/v1/name/romanizeカタカナ name → Hepburn romanizationromaji, parts (passport-style)
/v1/phone/validatePhone number → E.164 + area code infoe164, 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.

GET /v1/wareki/convert?direction=g2w&date=2026-05-08
{
  "ok": true,
  "data": {
    "era": "令和", "eraYear": 8, "eraRomaji": "Reiwa",
    "formatted": "令和8年5月8日", "gregorian": "2026-05-08"
  }
}
GET /v1/invoice/verify?number=T1234567890123
{
  "ok": true,
  "data": {
    "number": "T1234567890123", "registered": true,
    "confidence": 0.99, "registrantName": "株式会社サンプル",
    "verified_at": "2026-05-08T12:00:00Z"
  }
}
GET /v1/houjin/lookup?number=7000012050002
{
  "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.

npm install x402-fetch viem
// 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.

EndpointDescriptionPrice
/v1/wareki/convertEra date ↔ Gregorian (Meiji / Taisho / Showa / Heisei / Reiwa)$0.02
/v1/holiday/checkJapanese public holiday check + annual list$0.02
/v1/legal-holiday/checkStatutory rest day (法定休日) check — Labor Standards Act Art. 35 + overtime premium rate$0.02
/v1/age/calculateAge, 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.

EndpointDescriptionPrice
/v1/invoice/validateInvoice number format check (no NTA call)$0.02
/v1/invoice/verifyInvoice number → NTA registration check (confidence score)$0.02
/v1/tax/calculateConsumption tax: 10% standard / 8% reduced, rounding modes$0.02
/v1/eltax/checkElectronic bookkeeping law (電帳法) compliance checklist$0.02
/v1/law/searchLaw title search via e-Gov Law API v2 (政府標準利用規約)$0.02

🏢 Corporate & KYC

Corporate number (法人番号) lookup, My Number validation, and industry classification.

EndpointDescriptionPrice
/v1/houjin/lookupCorporate number → company info (NTA, confidence score)$0.02
/v1/mynumber/validateMy Number format check (Verhoeff checksum)$0.02
/v1/industry/lookupJSIC 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.

EndpointDescriptionPrice
/v1/postal/lookupPostal code → prefecture / city / town$0.02
/v1/address/normalizeJapanese address → structured prefecture / city / town$0.02
/v1/region/lookupJIS X 0402 prefecture / city code lookup$0.02
/v1/coordinate/convertWGS84 ↔ JGD2011 coordinate conversion$0.02
/v1/geo/geocodeAddress string → lat/lng (国土地理院 GSI, PDL 1.0)$0.02
/v1/geo/reverse-geocodelat/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.

EndpointDescriptionPrice
/v1/bank/lookupZengin bank code → bank name + branch (1,150+ banks, full Zengin database)$0.02
/v1/bank/searchSearch banks or branches by partial name (kanji/kana/romaji)$0.02
/v1/bank/listAll Japanese financial institutions list (paginated)$0.02
/v1/bank/transfer/validateBank transfer account format validation (全銀)$0.02
/v1/yucho/convertJapan Post account (記号・番号) → bank transfer format$0.02
/v1/payment/3ds/check3D 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.

EndpointDescriptionPrice
/v1/kanji/to-kanaKanji → Hiragana / Katakana (engine upgrade · ETA 2026-06-01)$0.02
/v1/kanji/normalizeNon-standard kanji → standard form (IVS, old→new)$0.02
/v1/kana/convertHiragana ↔ Katakana ↔ Half-width Kana conversion$0.02
/v1/text/normalizeFull-width ↔ half-width normalization (NFKC / ASCII)$0.02
/v1/name/romanizeJapanese name → Hepburn romanization (passport-style)$0.02
/v1/name/validateJapanese name validation (人名用漢字)$0.02
/v1/name/splitJapanese 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.

EndpointDescriptionPrice
/v1/passport/validateJapanese passport number format check$0.02
/v1/insurance/validateSocial insurance number format check$0.02
/v1/plate/validateLicense plate / VIN validation$0.02
/v1/barcode/validateJAN code / ISBN-13 validation$0.02
/v1/school-code/validateMEXT school code (13-char) validation + type/establishment/prefecture decomposition$0.02
/v1/phone/validatePhone number validation + E.164 normalization$0.02

🛠️ Diagnostics

Free utility endpoints for connection diagnostics.

EndpointDescriptionPrice
/v1/whoamiSelf 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)