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": "ๆฑไบฌ้ƒฝๅƒไปฃ็”ฐๅŒบ้œžใŒ้–ข๏ผ“ไธ็›ฎ๏ผ‘๏ผ๏ผ‘",
    "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 in progress)$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 engine upgrade in progress)