Bazaar discovery is public. You do not need a CDP API key to use the discovery APIs or the
corresponding TypeScript SDK functions.
Choose a discovery interface
CDP SDKs
Search and list resources with a generated OpenAPI client.
CDP APIs
Query the Bazaar directly over HTTP.
Bazaar MCP
Let an MCP-compatible agent discover services with tool calls.
Discover with the CDP SDK
The discovery operations are part of the CDP OpenAPI specification and are available in every generated OpenAPI client. See the CDP SDK overview for documented clients. The examples below use TypeScript; use the equivalent generated methods when working in another supported language. Install the TypeScript CDP SDK:@coinbase/cdp-sdk:
searchX402Resourcesreturns relevance-ranked text or semantic matches. Filter by network, asset, payment scheme,payToaddress, URL, maximum USD price, or protocol extension.listX402DiscoveryResourcesbrowses active resources with offset pagination and an optional protocol type filter.listX402DiscoveryMerchantlists active resources for a specificpayToaddress with offset pagination.
Search for a service
Use a natural-language query and add filters when you know the required network, asset, payment scheme, maximum price, merchant, URL, or protocol extension:quality field reports its call count and
unique payer count over the last 30 days, plus when it was last called.
If partialResults is true, narrow the query or add filters to reduce the result set. Legacy
network names such as base, base-sepolia, and solana are also accepted and normalized to
CAIP-2 network identifiers.
For every filter and the response schema, see
Search x402 resources.
Browse all resources
Use the list function when you do not need relevance-ranked search:Find a merchant’s services
If you know the address receiving payment, list all active resources that route payment to it:resources list. For the complete request and response
schema, see
List merchant discovery info.