x402-gateway
Pay-per-lookup data for AI agents. Authoritative Swedish company and vehicle data, paid per call in USDC on Base via the x402 protocol. No account, no contract, no API key — HTTP 402 is the whole onboarding.
payments: on (eip155:84532)MOCK MODE — all data is fixture data, no live sources connected
How it works
GETany paid endpoint → you get402 Payment Requiredwith payment instructions.- Your x402 client (e.g.
@x402/fetch) signs a USDC payment and retries with thePAYMENTheader. - The gateway verifies, serves the data, then settles on-chain. Cache hits are instant.
Free endpoints: /api/v1/catalog, /api/v1/se/company/schema, /api/v1/se/vehicle/schema — inspect shapes before paying.
Gateway
| Endpoint | Price | What you get |
|---|---|---|
GET /api/v1/ping | $0.001 | Paid ping — test the x402 payment flow end-to-end |
Sweden (se)
| Endpoint | Price | What you get |
|---|---|---|
GET /api/v1/se/company/{orgnr} | $0.005 | Swedish company basics by org.nr |
GET /api/v1/se/company/search | $0.01 | Search Swedish companies by name |
GET /api/v1/se/company/{orgnr}/annual-report | $0.02 | Latest digital annual report (iXBRL) with normalized key figures |
GET /api/v1/se/company/{orgnr}/representatives | $0.4 | Board and signatory rule (styrelse + firmateckning) |
GET /api/v1/se/vehicle/{regnr} | $1.2 | Swedish vehicle data by registration number |
GET /api/v1/se/vehicle/{regnr}/valuation | $0.5 | Market valuation for a Swedish vehicle |
Sources: Bolagsverket, SCB, Vägtrafikregistret (Transportstyrelsen). Data is served with source attribution in every response.
Try it with curl
# Free: inspect the catalog
curl -s ${BASE_URL:-http://localhost:3000}/api/v1/catalog | jq
# Paid: without payment you get the 402 challenge
curl -si ${BASE_URL:-http://localhost:3000}/api/v1/ping | head -20
# Paid with an x402 wallet (see @x402/fetch or the x402:client script)
pnpm x402:client /api/v1/se/company/5565550123