x402

Discover resources

Changed on

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. The listing aggregates the public discovery feeds of several x402 facilitators; metadata.source names the feed an item came from. 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 the price is 0.01 USDC on Base mainnet.

get/v1/payments/x402/discovery/resources

Request

  • Base URL
    https://api.thirdweb.com
  • Auth
    API key in header x-client-id

Query parameters

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

Response

List of discovered x402 resources

x402Versionnumber required

Example response

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

Changes

    • breaking

      the //// response's property type changed from no type to string for status

    • breaking

      the //// response's property type changed from no type to string for status

    • info

      added the new optional query request parameter includeTestnets

    • info

      removed subschema #1 subschema #2 from the //// response property anyOf list for the response status

    • info

      removed subschema #1 subschema #2 from the //// response property anyOf list for the response status