W

Workers · Address Preflight

by Workers

POSTBase

$0.02

per call · USD Coin on Base

Town-level Japan Post evidence for buyer agents. Returns MATCHED, AMBIGUOUS, CONFLICT, or NOT_FOUND with ordered candidates, provenance, limitations, and the next safe input action.

Endpoint

POST https://chappy-japan-address-preflight.pre23964wb.workers.dev/v1/jp/address/preflight

1

Calls / 30d

1

Unique payers / 30d

Sep 8

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://chappy-japan-address-preflight.pre23964wb.workers.dev/v1/jp/address/preflight", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "postal_code": "1000001",
    "raw_address": "東京都千代田区千代田1-1",
    "use_case": "delivery"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://chappy-japan-address-preflight.pre23964wb.workers.dev/v1/jp/address/preflight" \
  -H "Content-Type: application/json" \
  -d '{"postal_code":"1000001","raw_address":"東京都千代田区千代田1-1","use_case":"delivery"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "candidate_count": 1,
  "decision": "MATCHED",
  "decision_scope": "JAPAN_POST_POSTAL_TO_TOWN_CONSISTENCY_ONLY",
  "ok": true,
  "postal_code": "1000001",
  "reason_codes": [
    "UNIQUE_TOWN_LEVEL_MATCH"
  ],
  "recommended_action": "CONTINUE_WITH_EXTERNAL_CHECKS"
}

Payment details

Pay to0x2a997f68413b58766264bf10747e8700c8d59053
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Data & Enrichment and the homepage with a featured placement.

Get featured →

More from Workers & similar services