The x402 directory API

Everything on /x402/services is also data. Free, no key, no sign-up. Use it to pick a service before you pay, to build a dashboard, or to check a site your agent is about to call. Building an agent that buys? Start with x402 for agents: find, judge and pay, with examples.

Endpoints

All GET, all JSON except the badge (SVG). CORS is open (access-control-allow-origin: *).
EndpointWhat it returns
/x402/services.jsonThe directory: one entry per site, with health, price, trust, categories and domain proof.
/x402/suggest.jsonSites whose host starts with what the user has typed (2 to 40 characters), up to 8, for a search box. Cheap and cached; the full search is services.json.
/x402/service/<host>.jsonOne site's full public record: its listings, wallets, checks, reviews and domain proof.
/x402/state.jsonState of x402: totals, directories, prices, networks, categories, new sites, weekly health changes, the on-chain measurement.
/x402/new.atomAtom feed: sites that first appeared in the directory in the last 7 days.
/x402/changes.atomAtom feed: sites that proved their domain, and listings that went down or came back, in the last 14 days.
/x402/badge/<host>.svgAn embeddable badge with the site's health, linking to its page.

/x402/services.json parameters

qWords in a site's host or description.
catOne category: data-finance, search-web, ai-models, crypto-onchain, media, devtools, identity-trust, commerce, social, weather-geo or other.
needPlain words for what you need ("weather forecast for a city"). Returns sites in the order find_tool ranks their best option, each with the same facts. Limited per address.
verifiedtrue: only sites whose owner proved domain control (a DNS record or file naming their wallet).
networkbase, polygon, or a CAIP-2 id such as eip155:8453.
sortresources (default), host, up, verified, price, trust, reviews, latency.
page1, 2, ... (50 sites a page; the answer says how many pages).

Examples

curl "https://aipaygen.com/x402/services.json?cat=weather-geo&verified=true&sort=trust"
curl "https://aipaygen.com/x402/services.json?need=convert%20currency"
curl "https://aipaygen.com/x402/service/example.com.json"
curl "https://aipaygen.com/x402/state.json"

Embed a badge: <a href="https://aipaygen.com/x402/service/YOURHOST"><img src="https://aipaygen.com/x402/badge/YOURHOST.svg" alt="Listed on AIPayGen" height="22"></a>

To find a service by what an agent needs, find_tool (free, also over MCP) with pay_with_x402: true answers with the same ranking and puts the same directory block on each x402 option.

Fields

Each entry of services carries: host, description, resources, up, price_min, price_max, networks, sources, wallets, trust, categories, domain_verified, directory. A site's own record (/x402/service/<host>.json) carries: host, page, json, badge, description, categories, listings, listings_answering, price_usd_min, price_usd_max, networks, sources, health, trust, reviews, delivery_checks, domain, wallets, owner, similar, uptime_30d, seen_on_base, settlements_by_day, last_settlement_seen, resources, license, updated_at. Prices are USD per call as quoted by the service's own 402; health is the share of our checks that passed; every chain figure is labelled with what it counts.

Stability. The fields named on this page won't be removed or renamed without 30 days' notice (we announce it on the changelog). We may add fields, so read what you need and ignore the rest.

Limits and fair use

No key is needed. Answers (and the Atom feeds) are cached for 5 to 30 minutes, so asking more often gains nothing. The searches (need) and the "add your service" form are limited per address and overall (about 60 a minute; over it you get a 429 with retry-after). Please keep to a few requests a second.

Licence

The data is CC BY 4.0: use it freely, including commercially, and credit "AIPayGen (https://aipaygen.com/x402/state)". Sites listed here can ask to be hidden (see /x402/services); hidden sites are left out of every endpoint. Not a total of x402 payments: chain figures are one slice, counted by us, with the method stated.