Getting Started
Lookup API
One free call returns the strongest evidence Labs has for an x402 endpoint: a paid correctness check, or a Level 0 health check.
One HTTP call returns the strongest evidence Labs has for an x402 endpoint. It's free, needs no key, and is open to browsers (CORS). The /lookup page uses the same API.
GET https://lmxlabs.app/api/lookup?url=https://api.seller.com/v1/endpointurl is the endpoint's URL. The scheme is optional, and a trailing slash, query string or fragment is ignored when matching. Only public https addresses are accepted.
For platforms
If you call the lookup from a marketplace, router, wallet or agent framework, send your platform's name in an x-lmx-platform header (or a platform query parameter if you can't set headers). It lets Labs count your usage and tell you when records you depend on change. It isn't authentication.
A named platform is usually calling from inside a payment, so its lookups never wait on a live check. You get what Labs already has on file. If Labs hasn't seen the endpoint yet, the answer is queued straight away, and the endpoint is checked on the next scheduled health run (three times a day). Ask again after that and you get the result. A named platform is never rate-limited, because it never starts a live check.
GET https://lmxlabs.app/api/lookup?url=https://api.seller.com/v1/endpoint
x-lmx-platform: your-platformNames are lowercase letters, digits, dot, dash or underscore, up to 64 characters. The full contract is in the OpenAPI spec, and a summary for AI agents is at /llms.txt.
Free integrator key (optional). A platform name in a header is self-declared. If you want your usage attributed to you for certain, write to support@lmxlabs.app for a free key and send it as an x-lmx-key header. The key sets your platform name, so you can drop x-lmx-platform. An unknown or revoked key gets a 401, so a setup mistake shows up right away; calls without a key work exactly as before. Keep the key server-side.
GET https://lmxlabs.app/api/lookup?url=https://api.seller.com/v1/endpoint
x-lmx-key: lmxk_…What comes back
Every response has "schema": "lmx.lookup/1" and a kind that says which evidence was found, strongest first.
| kind | level | Means |
|---|---|---|
paid | 1 | A paid correctness check is on file and public. paid_check.verdict is the answer grade and paid_check.record_url links the full record. |
paid_private | 1 | A paid check exists but the seller hasn't agreed to be named, so the verdict reads "private". paid_check.notified is true when the seller has been sent a finding. |
health | 0 | No paid check, but the endpoint is on the Level 0 health check list. |
first_look | 0 | Labs hadn't seen the endpoint, so it ran one unpaid check just now. The endpoint joins the health check list. |
queued | — | Only for a named platform: Labs hasn't checked the endpoint yet and didn't make you wait. It joins the health check list and is checked on the next run. Treat it as no signal. |
invalid | — | Not a public https URL. HTTP 400. |
rate_limited | — | Too many first looks (never for a named platform). HTTP 429. Live checks of new endpoints are limited to 5 a minute per caller and 60 a minute overall. Lookups of known endpoints aren't limited this way. |
Example response
{
"schema": "lmx.lookup/1",
"query": "https://api.seller.com/v1/endpoint",
"url": "https://api.seller.com/v1/endpoint",
"host": "api.seller.com",
"kind": "health",
"level": 0,
"label": "Level 0 · not correctness-tested",
"checked_at": "2026-10-19T10:17:42.000Z",
"paid_check": null,
"health": {
"method": "POST",
"url": "https://api.seller.com/v1/endpoint",
"source": "bazaar",
"outcome": "drift",
"status": "up",
"http_status": 402,
"checked_at": "2026-10-19T10:17:42.000Z",
"outcome_since": "2026-10-18T20:17:05.000Z",
"paywall": "x402 v2",
"terms": { "price_usdc": "0.050000", "pay_to": "0xabc…", "network": "eip155:8453", "asset": "0x8335…", "scheme": "exact" },
"listing": { "price_usdc": "0.010000", "pay_to": "0xabc…", "network": "eip155:8453", "asset": "0x8335…", "scheme": "exact" },
"matches_listing": false,
"drift": [{ "field": "price", "listed": "0.010000", "live": "0.050000" }],
"uptime_7d": { "up": 20, "checks": 21 },
"avg_ms": 312,
"days": [{ "day": "2026-10-19", "checks": 3, "up": 3 }],
"last_change": { "at": "2026-10-18T20:17:05.000Z", "from": "ok", "to": "drift" }
},
"endpoints": [{ "method": "POST", "url": "https://api.seller.com/v1/endpoint" }]
}Fields worth reading
| Field | Values |
|---|---|
paid_check.verdict | pass, fail, inconclusive, or private |
paid_check.checks | How many paid calls to this endpoint are on file |
health.status | up, down, not_x402, broken_402, gone, rejected, rate_limited |
health.matches_listing | false when the live 402 differs from the listing; health.drift says how |
endpoints | Other routes Labs knows on the same host and path |
Using it before a payment
const res = await fetch(
"https://lmxlabs.app/api/lookup?url=" + encodeURIComponent(endpoint),
);
const r = await res.json();
if (r.kind === "paid" && r.paid_check.verdict === "fail") {
// A confirmed wrong answer is on file. r.paid_check.record_url has the evidence.
}
if (r.health && r.health.matches_listing === false) {
// The live price or payee differs from the listing. Check r.health.drift before paying.
}Treat Level 0 as "the paywall is up and honest about its terms", not as "the answer is right". Only a paid check sets paid_check.verdict.
Request a paid check
POST https://lmxlabs.app/api/lookup
Content-Type: application/json
{ "url": "https://api.seller.com/v1/endpoint", "contact": "ops@yourcompany.dev", "note": "what your agent uses it for" }Returns 201 { "ok": true }. contact and note are optional. Up to 10 requests an hour per caller.
What's logged
Each lookup stores the URL asked about, what it matched, the kind returned, the platform name if one was sent, and a salted hash of the caller's address. The hash is for rate limits and for counting how many different callers use Labs. The address itself isn't stored.
Stability
Fields may be added to lmx.lookup/1. A change that removes or renames a field will ship under a new schema name.
Next
SDK and MCP server
Coming soon: check an x402 endpoint with Labs before your agent pays it, with local spend caps. One wrap around fetch, or one MCP tool.