v1

latestOpenAPI 3.1.02026-07-13570316.1 KB
x402

Discover resources

Discover payable x402 compatible services and HTTP endpoints that can be paid for using the fetchWithPayment tool. Use this tool to browse services, APIs and endpoints to find what you need for your tasks. Each item has a resource url that you can call with the fetchWithPayment tool.Price is in the base units of the asset. For example, if the price is 1000000 and the asset is USDC (which is the default and has 6 decimals), the price is 1 USDC.Examples: if network is eip155:8453, asset is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, max amount required is 10000, resource is https://api.example.com/paid-api, then you should interpret that as "the api.example.com/paid-api service costs 0.01 USDC per call".

get/v1/payments/x402/discovery/resources

Query parameters

limitnumber nullable
offsetnumber nullable
querystring
sortBy'createdAt' | 'totalRequests' | 'totalVolume' | 'price' | 'uniqueBuyers'
sortOrder'asc' | 'desc'

Response

List of discovered x402 resources

x402Versionnumber required

Example response

{
  "items": [
    {
      "accepts": [
        {
          "network": "eip155:1"
        }
      ]
    }
  ]
}