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

  1. GET any paid endpoint → you get 402 Payment Required with payment instructions.
  2. Your x402 client (e.g. @x402/fetch) signs a USDC payment and retries with the PAYMENT header.
  3. 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

EndpointPriceWhat you get
GET /api/v1/ping$0.001Paid ping — test the x402 payment flow end-to-end

Sweden (se)

EndpointPriceWhat you get
GET /api/v1/se/company/{orgnr}$0.005Swedish company basics by org.nr
GET /api/v1/se/company/search$0.01Search Swedish companies by name
GET /api/v1/se/company/{orgnr}/annual-report$0.02Latest digital annual report (iXBRL) with normalized key figures
GET /api/v1/se/company/{orgnr}/representatives$0.4Board and signatory rule (styrelse + firmateckning)
GET /api/v1/se/vehicle/{regnr}$1.2Swedish vehicle data by registration number
GET /api/v1/se/vehicle/{regnr}/valuation$0.5Market 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