Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Kyber Network swap API

The swap API from Kyber Network — 3 operation(s) for swap.

Kyber Network swap API is one of 5 APIs that Kyber Network publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include swap. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 3 operations across 3 paths, and defines 5 schemas. It is described by OpenAPI 3.0.0, at version 2.12.1.

Requests are made against a single base URL, https://aggregator-api.kyberswap.com.

3 operations 3 paths 5 schemas 2 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
2.12.1
Base URL
https://aggregator-api.kyberswap.com
Resource Areas
1

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 2 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

swap 3
POST
/{chain}/api/v1/route/build
[V1] Post Swap Route For Encoded Data
post-route-encoded body → 200422400: Bad Request (4001)400: Bad Request (4002)400: Bad Request (4005)400: Bad Request (4007)400: Bad Request (4008)400: Bad Request (4009)
GET
/{chain}/api/v1/routes
[V1] Get Swap Route
get-route 17 params → 200422400: Bad Request (4001)400: Bad Request (4002)400: Bad Request (4005)400: Bad Request (4007)400: Bad Request (4008)400: Bad Request (4009)
GET
/{chain}/route/encode
Get Swap Info with Encoded Data
get-route-encode 19 params → 200

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are BuildRoutePostBody (11 properties), Swap (11 properties), SwapSequence (9 properties), BuildRouteSuccess (4 properties). Each schema is shown below with its type and property counts.

Swap
object
11 properties 10 required
GetRouteSuccess
object
4 properties 2 required
SwapSequence
object
9 properties 9 required
BuildRouteSuccess
object
4 properties 2 required
BuildRoutePostBody
object
11 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

kyber-network-swap-api-openapi.yml Raw ↑

Other APIs Kyber Network publishes across the network.

Kyber Network General API
Kyber Network Maker API
Kyber Network Service API
Kyber Network Taker API