x402 trust score for an endpoint (paid)
x402_trust_scoreCheck an x402 endpoint's trust score (0-100), verdict, advertised price, and flags before paying. Avoid dead, fraudulent, or hijacked endpoints by evaluating health and cost in one call.
Instructions
Trust score (0-100, grade A-F) for a SPECIFIC x402 endpoint, PLUS a machine-readable verdict ('recommendation': proceed|caution|avoid|parameterize), the advertised price ('advertised.amountUsd'), a confidence-adjusted band ('scoreRange'), and structured flags ('flagsDetailed' with code/severity/message — any severity 'error' means avoid). The 'parameterize' verdict (with 'templated':true) means the resource URL still contains an unresolved template placeholder (e.g. {slug}, :slug or %7B…%7D): the endpoint is otherwise healthy but the literal URL can't be paid as-is — substitute a valid value first, then the health metrics apply to the resolved URL. For such templated per-item endpoints, a varying payTo/price is EXPECTED (one wallet/price per item): the report surfaces 'stats.payToVaries'+'payToDistinct30d' and 'advertised.amountRange30d' as a 'payto-varies'/'price-varies' note rather than a 'payto-changed-recently' hijack error — always pay the payTo in the live 402 quote, not a cached listing. Includes the full component breakdown, the provider-advertised 'serviceName' and 'description' (unverified provider claims, shown next to our independent metrics), and 30-day on-chain stats. Note: 'stats.avgLatencyMs' is measured from a single EU vantage point and includes network distance to the endpoint (see 'stats.latencyVantage'), so a geographically distant endpoint reads slower even when its server is fast. One call answers WHETHER and at WHAT PRICE to use an endpoint. Call this BEFORE paying an unknown x402 endpoint to avoid dead, fraudulent, or recently-hijacked services. Pay-per-call over x402; auto-pays if a wallet is configured, otherwise returns the price quote.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource | Yes | Full x402 resource URL to evaluate, e.g. https://api.example.com/v1/thing |