{"uid":"cap_nsdNsGrP-V8uSIWx3Caw6","slug":"trust402-compare-resources-c3aaa137","name":"Trust402 Compare Resources","description":"Rank 2-10 candidate paid resources for a goal, budget, and risk policy.","url":"https://trust402.vercel.app/api/trust/compare-resources","method":"POST","headers":{},"bodySchema":{"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 readiness signal."},"description":{"type":"string","description":"Buyer-facing explanation of the resource."},"inputSchema":{"type":"object","description":"Optional embedded input schema for the candidate."},"hasWellKnown":{"type":"boolean","description":"Whether the origin publishes /.well-known/x402 discovery."},"receiptReady":{"type":"boolean","description":"Whether the candidate can return receipt/proof-ready output."},"wellKnownUrl":{"type":"string","format":"uri"},"hasInputSchema":{"type":"boolean","description":"Whether structured input schema metadata is available."}},"additionalProperties":true},"maxItems":10,"minItems":2}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_00gflLcxFNq3_crT9I8FW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Ranks 2–10 candidate x402 paid API endpoints by goal alignment, price, and risk policy to help agents choose the best resource to call.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Budget-constrained agent resource selection","prompt":"I've got 4 candidate x402 endpoints that could all answer my data enrichment goal, but my total budget is $0.20. Rank them by fit and price so my agent calls the best one first."},{"title":"Risk-filtered API comparison for autonomous workflow","prompt":"Before my agent spends anything, compare these 3 paid APIs against my low-risk policy — I only want to pay for endpoints that are verified and have proof-ready receipts. Which one should it use?"},{"title":"Multi-vendor scoring for a specific AI task","prompt":"I'm building an agent that needs to geocode addresses and I have 6 x402 candidate services at different price points. Rank them by how well they match that goal and which offers the best value under $0.10 per call."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:33:06.170Z","isFirstParty":false}