The 0x API provides a unified interface for liquidity aggregation, token swap pricing, and onchain trading across major supported blockchains. It is designed to help developers easily integrate token swaps and routing logic without managing individual DEX integrations.
The 0x API exposes endpoints for the following core capabilities:
Each API surface is documented in detail in the sections below.
All requests to the 0x API must be made to the following base URL:
All requests must be sent over HTTPS. Requests made over HTTP will be rejected.
All 0x API requests require an API key. Include your API key in the following request header:
Your 0x API key used to authenticate requests.
0x API version.
Requests missing this header may be rate-limited or rejected.
You can generate and manage API keys from the 0x Dashboard.
The 0x API supports multiple EVM-compatible chains. Each request must specify a chain either via the request path or query parameters, depending on the endpoint.
Refer to the Supported Chains for a complete and up-to-date list.