Comment on page
KyberSwap Aggregator EVM APIs
In order to continuously improve the KyberSwap Aggregator, our APIs implement a client identifier field that enables us to understand how the APIs are being utilized. As a developer integrating with our APIs, please use the same clientID (i.e. company name) for:
- [V1] Get Swap Route
- [V1] Post Swap Route For Encoded Data
This will enable us to serve you better as we continuously strive to improve our Aggregator API. For integrators who have previously integrated with our
LegacyAPI, we highly encourage migrating to the
LatestAPIs to ensure access to the latest features as well as improved service quality and efficiency.
- [V1] POST
If you're just getting started with the KyberSwap Aggregator, you can refer to our Execute A Swap With The Aggregator API dev guide for information and code samples on how to query and execute swaps at superior rates. Note that there is also a KyberSwap Widget option for integrators who require a simple minimal-code implementation. For existing integrators, please refer to Upgrading To APIv1 for further details on the motivation behind the upgrade as well as the relevant changes to swap flow and parameters.
To support more performant queries, KyberSwap highly encourages all integrators to implement the latest API
[V1]version. While both versions of the API remains backwards compatible, only the
[V1]APIs will continue to receive updates and hence developers are highly encouraged to implement the latest
[V1]APIs to avoid any disruptions as the non-versioned API will eventually be deprecated.
KyberSwap APIs uses the following statuses to minimize version miscommunications and ensure an uninterrupted service for the end user:
Latest: API is functional and supported. This is the recommended version for all integrators (new and existing).
Legacy: API remains functional with support for bugs only. No new feature updates.
Deprecated: API is no longer functional and is not supported.
For all developers, it is highly recommended that you refer to the API with the
Latesttag to ensure access to the latest features as well as improved service quality and efficiency. APIs which are planned to be sunset will be tagged
Legacyduring the transition period and thereafter moved to
The KyberSwap Docs will continue to maintain information regarding
The Aggregator APIs require a chain name to be included in the path when calling the APIs:
- Ethereum (ChainID: 1) ->
- BSC (ChainID: 56) ->
- Arbitrum (ChainID: 42161) ->
- Polygon PoS (ChainID: 137) ->
- Optimism (ChainID: 10) ->
- Avalanche (ChainID: 43114) ->
- Base (ChainID: 8453) ->
- Cronos (ChainID: 25) ->
- zkSync Era (ChainID: 324) ->
- Fantom (ChainID: 250) ->
- Linea (ChainID: 59144) ->
- Polygon zkEVM (ChainID: 1101) ->
- Aurora (ChainID: 1313161554) ->
- BitTorrent Chain (ChainID: 199) ->
- Scroll (ChainID: 534352) ->
[V1] Get Swap Route
[V1] Post Swap Route For Encoded Data
Get Swap Info with Encoded Data