Japanese driver license numbers are 12 digits with embedded prefecture code. Torify validates the format for HR onboarding and KYC flows.
https://torify.dev/v1/license/validate
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
number |
string | Yes | 12-digit driver license number | 123456789012 |
{ "ok": true, "data": { "valid": true } }
curl "https://torify.dev/v1/license/validate?number=123456789012"
import { wrapFetchWithPayment } from 'x402-fetch';
import { privateKeyToAccount } from 'viem/accounts';
const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);
const fetchWithPayment = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPayment(
'https://torify.dev/v1/license/validate?number=123456789012'
);
const data = await res.json();
console.log(data); // { ok: true, data: { ... } }
import requests
# Free MCP tier (no auth) or API key (X-API-Key header)
res = requests.get(
"https://torify.dev/v1/license/validate?number=123456789012",
headers={"X-API-Key": "your_torify_pro_key"}
)
print(res.json())
/v1/mynumber/validate — Japan My Number Validation API
/v1/passport/validate — Japan Passport Number Validation API
/v1/insurance/validate — Japan Social Insurance Number Validation API
/v1/plate/validate — Japan License Plate Validation API