How to lint an x402 listing from code or CI with an API

Updated 2026-11-10

Use when an agent must lint an x402 listing, or check which of a seller's routes the Bazaar lists, before publishing.

From an MCP client, add https://tanod.dev/mcp and call lint_x402_listing; the first 10 calls per IP per UTC day are free (shared by all utilpeek tools), then each call is USD 0.001 with x402, no key or signup. Coverage mode costs USD 0.01 and is never free.

POST an x402 listing, or the URL of a live x402 endpoint, to /v1/x402/lint. It returns the problems found, a 0 to 100 score and a suggested description that includes a "Use when" sentence. The rules are the same as in the free x402 listing lint browser tool.

Why it matters: 94.4% of 34,062 Bazaar listings have no "use when" sentence (see State of the x402 Bazaar), and the checklist for getting listed and featured is in How to get an x402 endpoint listed and featured in the CDP Bazaar.

What it checks

Description: present; at most 500 characters (an error above 500, a warning above 450, because CDP rejects longer ones at settle time); and a "use when" style sentence (a warning if missing). Resource URL: present, absolute and https. mimeType: present (error) and shaped like type/subtype (warning). outputSchema (or extensions.bazaar in v2): present and not empty. Each accepts entry: an amount (maxAmountRequired or amount) that is a positive whole-number string, a network, an asset, and a payTo that is an EVM (0x plus 40 hex) or Solana address.

The score is 100, less 20 per error and 5 per warning, never below 0. Each problem has a stable code (for example description_too_long, missing_use_when, output_schema_missing, pay_to_invalid), a severity of error or warning and a message that includes the fix. v1 and v2 listings both work.

Request

Send exactly one of listing or url; both or neither is a 422.

listing is an x402 PaymentRequired object (v1 or v2), a bare accepts entry or a Bazaar discovery item, as JSON. It may also be a string holding the JSON text or the base64 PAYMENT-REQUIRED header value. At most 1 MB.

curl, a listing, using the free tier
curl -s -X POST https://tanod.dev/v1/x402/lint \
  -H 'X-Tanod-Free: 1' -H 'content-type: application/json' \
  -d '{"listing": {"x402Version": 2, "resource": {"url": "https://api.example.com/v1/weather", "description": "Weather forecast for a city.", "mimeType": "application/json"}, "accepts": [{"scheme": "exact", "network": "eip155:8453", "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "amount": "10000", "payTo": "0x209693Bc6afc0C5328bA36FaF03C514EF312287C"}]}}'

url is an https x402 endpoint. It is fetched once (GET, or POST if GET answers 405) and its 402 response is linted, reading the PAYMENT-REQUIRED header first and the body otherwise. The response then also has http_status, method and read_from (header or body).

curl, a live endpoint
curl -s -X POST https://tanod.dev/v1/x402/lint \
  -H 'X-Tanod-Free: 1' -H 'content-type: application/json' \
  -d '{"url": "https://api.example.com/v1/weather"}'

URL safety limits. https only, on port 443, with a plain public host name: no user info, no fragment, no IP address, no internal names such as .local or .internal. The name must resolve to public addresses only, and the connection goes to the address that was checked. Redirects are never followed, the wait is 10 seconds and the reply is capped at 256 kB. An endpoint that is unreachable, blocked, redirects, answers anything but 402 or has a body that is not JSON is a 422 and is not charged. The fetched text is only linted, never run.

Response

Response (example from the API spec, trimmed)
{
  "source": "listing",
  "url": null,
  "problems": [
    {
      "code": "missing_use_when",
      "severity": "warning",
      "message": "When-to-use sentence: No \"use when\" sentence found. Fix: Add one, for example: ..."
    }
  ],
  "score": 95,
  "errors": 0,
  "warnings": 1,
  "checks_passed": 9,
  "description_length": 28,
  "suggested_description": "Weather forecast for a city. Use when an agent needs weather data from this endpoint.",
  "suggested_length": 85,
  "checked_at": "2026-10-09T08:00:00Z",
  "note": "Automated checks of the listing rules Tanod knows ..."
}

suggested_description keeps your original text, adds a "Use when ..." sentence if there is none and is at most 500 characters. It is a draft to review, not a rewrite of your meaning. Results are automated checks of the rules Tanod knows (the Coinbase CDP 500-character limit, the Bazaar https requirement, required fields); the facilitator or catalog may apply others.

Doing this by hand? Use the free x402 listing lint in your browser: nothing is uploaded and it never contacts your endpoint.

Recipe: check 20 endpoints before paying any of them

Agents that buy from many x402 sellers sometimes pay a third party for a verification pass. One public example on Moltbook was 1 USDC for 20 endpoints. That pass pays each endpoint once and records the result. The cheaper first half needs no payment: send each endpoint's URL to lint with url. It fetches the endpoint once and checks that it answers 402 with a complete offer: amount, network, asset, payTo and an output schema. An endpoint that doesn't answer 402 is a 422 and isn't charged.

Cost: USD 0.001 per endpoint, so USD 0.02 for 20, and the first 10 each UTC day are free. Then pay only the endpoints that pass, and keep each receipt next to its verdict, so the payment and the result can be checked together.

Coverage: which of a seller's routes the Bazaar lists

Add "mode": "coverage" and send a seller host (or an openapi_url) to see how a whole API shows up in the CDP x402 Bazaar. Tanod reads the seller's /openapi.json (or the URL you give) and /.well-known/x402, takes the paid routes (an x-payment-info or a 402 response in the OpenAPI, the resources of the discovery file) and compares them with its daily snapshot of the Bazaar. Each route is listed (in the Bazaar), missing (advertised, not in the Bazaar) or stale (in the Bazaar, no longer advertised). Listed routes carry the Bazaar's 30-day unique payers and paid calls and the time of the last call.

curl, coverage of a host (USD 0.01, paid; no free tier)
curl -s -X POST https://tanod.dev/v1/x402/lint \
  -H 'content-type: application/json' \
  -d '{"mode": "coverage", "host": "api.example.com"}'
Response for tanod.dev on 2026-10-10 (trimmed)
{
  "source": "coverage", "host": "tanod.dev", "snapshot": "2026-10-10",
  "summary": {"advertised": 205, "listed": 170, "missing": 35, "stale": 0,
              "payers_30d_total": 347, "calls_30d_total": 358,
              "probed": 25, "probe_402": 25, "probe_failed": 0, "not_probed": 180},
  "routes": [
    {"method": "POST", "path": "/v1/random", "status": "missing", "price_usd": 0.001, "bazaar": null,
     "example_402": {"checked": false}, "traps": ["unlisted_until_first_payment"]},
    {"method": "POST", "path": "/v1/chain/ens", "status": "listed", "price_usd": 0.002,
     "bazaar": {"payers_30d": 3, "calls_30d": 4, "last_called_at": "2026-10-08T21:06:51.546Z"},
     "example_402": {"checked": true, "ok": true, "http_status": 402}, "traps": []}
  ],
  "traps": [{"code": "unlisted_until_first_payment", "routes": 35, "message": "..."}]
}

The 402 check. For up to 25 routes (those missing from the Bazaar first) Tanod sends one unpaid example request to the seller's host, built from the OpenAPI example values (path and required query parameters, a JSON body), and records whether it answers HTTP 402 with a payment requirement. A route that does not is flagged example_failing: an agent, and the Bazaar crawler, cannot start a payment on it. The probes carry no payment, go only to the seller host over the same safe-fetch rules as above (https, public addresses, no redirects), and share a budget of about 18 seconds in total; routes beyond the limit are reported as {"checked": false}.

Traps it names. param_style: OpenAPI writes /v1/q/{chain} while the Bazaar lists /v1/q/:chain; the two are matched as one route, and you are told which form each side uses. unlisted_until_first_payment: CDP adds a resource only after its first settled payment, so a route nobody has paid never appears, whatever its metadata; make one paid call to list it. example_failing: see above. stale_listing: listed in the Bazaar but no longer advertised (CDP drops a resource after 30 days without a settlement). brace_listing: the Bazaar lists a literal {param} URL that no client can call.

The Bazaar numbers come from Tanod's daily snapshot (the same data as the State of the x402 Bazaar dataset), so a payment made today shows tomorrow; self-purchases are not filtered. If no paid routes can be found on the host and the Bazaar lists none, or the snapshot is unavailable, the call is a 422 or 503 and is not charged. Only part of a very large API is read (300 routes); then stale is not reported.

How it compares

Ontario Protocol sells a seller listing with a live readiness scan for USD 2.00, a re-scan for USD 0.10, and a directory submission for USD 0.10. Those prices come from its own /.well-known/x402.json, read on 2026-10-13. Its listing places you in its directory, which this route doesn't. If you only need the checks, lint costs USD 0.001 per listing and coverage costs USD 0.01 per seller. Coverage checks every paid route against the CDP Bazaar, so you can fix problems before you pay anyone to list you.

To check more than the listing, the x402 seller report (USD 0.01) runs this lint together with your price position among similar listed endpoints, what a buyer's preflight check says about your endpoint and its Bazaar demand, and returns one list of fixes.

For the whole picture in one call, the x402 listing review (USD 2, your first review free) adds your category's 30-day Bazaar demand, the 10 nearest listings with prices and payers, and ranked fixes.

Price and free allowance

USD 0.001 per lint call (USD 0.01 for mode: "coverage", which has no free tier), paid in USDC on Base, Polygon, Solana, BNB Chain or Arbitrum with x402: an unpaid call gets a 402 PaymentRequired, and you retry with the signed payment. 10 free lint calls per IP per UTC day with the header X-Tanod-Free: 1, shared with the other utility endpoints. MCP tool: lint_x402_listing at https://tanod.dev/mcp (also on /mcp/util), where the free tier is automatic.

All endpoints →

Use it from Claude without writing code: in claude.ai or Claude Desktop, add https://tanod.dev/mcp/util?via=x402-listing-lint-api as a custom connector (steps), then ask in plain words, for example "Lint the x402 listing of https://example.com/api/price before I publish it." The free daily allowance is applied automatically over MCP. Beyond it a call needs an x402 payment, which these clients can make.

Related guides: How to get an x402 endpoint listed and featured in the CDP Bazaar, State of the x402 Bazaar, How to get your x402 API listed in the directories agents search. Back to tanod.dev or the guide index. Results are automated and heuristic.