# Trust402 Compare Resources

> Trust402 Compare Resources is a paid API for AI agents from trust402.vercel.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Ranks 2–10 candidate x402 paid API endpoints by goal alignment, price, and risk policy to help agents choose the best resource to call.

## Facts

- Endpoint: POST https://trust402.vercel.app/api/trust/compare-resources
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/trust402-compare-resources-c3aaa137
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nsdNsGrP-V8uSIWx3Caw6

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability trust402-compare-resources-c3aaa137 -d '<json body>'
```

Example prompt: I have a list of 5 x402 paid APIs I could call to answer this research question — my budget is $0.50 total and I want to avoid high-risk or unverified sellers. Can you rank them by how well they fit my goal and flag any I should skip?

## When to prefer this

Use this endpoint when an agent has already discovered multiple x402 candidate APIs and needs to make a cost- and trust-aware selection decision before spending money. Prefer it over manual comparison or random selection when budget constraints, risk policies, or goal alignment matter. Especially valuable in autonomous purchasing workflows where the agent must justify its API choice.

## Known failure modes

- Fewer than 2 candidates provided — endpoint requires a minimum of 2 for comparison
- Candidates missing required endpoint or url fields — schema validation error
- budgetUsd is zero or negative — no candidates can qualify
- All candidates exceed the budget — returns empty or all-disqualified ranking
- Malformed x402 metadata on candidates — scoring degrades gracefully but may reduce accuracy
- Payment of $0.03 USDC not completed — returns 402 challenge before processing

## How this service works

Rank 2-10 candidate paid resources for a goal, budget, and risk policy.

## Output

A ranked list of candidate x402 resources ordered by alignment to the stated goal, price fit within the budget, and risk policy compliance — including scores, recommended pick, and any candidates flagged for disqualification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "goal": {
   "type": "string"
  },
  "budgetUsd": {
   "type": "number"
  },
  "candidates": {
   "type": "array",
   "items": {
    "type": "object",
    "anyOf": [
     {
      "required": [
       "endpoint"
      ]
     },
     {
      "required": [
       "url"
      ]
     }
    ],
    "properties": {
     "id": {
      "type": "string",
      "description": "Stable candidate identifier used in rankings and receipts."
     },
     "url": {
      "type": "string",
      "format": "uri",
      "description": "Alternate field for the x402 resource endpoint."
     },
     "name": {
      "type": "string",
      "description": "Human-readable resource name."
     },
     "x402": {
      "type": "object",
      "description": "Optional parsed x402 challenge metadata."
     },
     "asset": {
      "type": "string",
      "description": "Payment asset address or symbol."
     },
     "payTo": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
     },
     "price": {
      "oneOf": [
       {
        "type": "number",
        "minimum": 0
       },
       {
        "type": "string"
       }
      ],
      "description": "Alternate price field accepted by Trust402."
     },
     "accept": {
      "type": "object",
      "description": "Optional single x402 accept object."
     },
     "has402": {
      "type": "boolean",
      "description": "Whether the endpoint is known to return an x402 challenge."
     },
     "network": {
      "type": "string",
      "description": "x402 payment network, for example eip155:8453."
     },
     "endpoint": {
      "type": "string",
      "format": "uri",
      "description": "HTTPS x402 resource endpoint."
     },
     "metadata": {
      "type": "object",
      "description": "Additional public-safe metadata used during scoring."
     },
     "observed": {
      "type": "object",
      "description": "Optional probe observations such as status or latency."
     },
     "priceUsd": {
      "oneOf": [
       {
        "type": "number",
        "minimum": 0
       },
       {
        "type": "string"
       }
      ],
      "description": "Advertised resource price in USD."
     },
     "hasOpenApi": {
      "type": "boolean",
      "description": "Whether the origin publishes OpenAPI metadata."
     },
     "openapiUrl": {
      "type": "string",
      "format": "uri"
     },
     "proofReady": {
      "type": "boolean",
      "description": "Alternate receipt/proof rea
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trust402-compare-resources-c3aaa137/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from trust402.vercel.app](https://www.zero.xyz/host/trust402.vercel.app/llms.txt)
