DeFi protocols API
Which protocols are code forks of this protocol?
The protocols built on a copy of one DeFi protocol's code, with their category and value locked today, and what it is itself a fork of.
/api/external/protocol-analysis/protocol-forks/{slug}What it returns
Every protocol built on a copy of this protocol's code, with its category and the value locked in it today in USD, most value first, and the protocols this one is itself a fork of. A protocol nothing forks answers an empty forks; one that forks nothing, an empty forkOf. A fork listed under two protocols appears under both. The slug is the one GET /protocol-analysis/protocols lists; an unknown slug answers 404.
Chains
This endpoint is not tied to a chain: it takes no chain in its request.
Request
Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.
curl -H "x-dex-data-key: $DEXDATA_API_KEY" \ "https://api.dexdata.io/api/external/protocol-analysis/protocol-forks/<slug>"
| Parameter | Description |
|---|---|
slugpath · string · required | A DeFi protocol's slug, e.g. "pancakeswap-amm" — not a token mint or contract address, and not scoped to any single chain. |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
slug | string | The protocol asked about. |
name | string | Its name. |
forkCount | integer | How many protocols are forks of it. |
forks | object[] | Most value locked first, unknown value last, then by name. |
forks[].slug | string | null | Its slug, or null when the protocol directory does not list it. |
forks[].name | string | The protocol. |
forks[].category | string | null | What kind of protocol it is, e.g. Dexs or Lending. |
forks[].tvl | number | null | The value locked in it today, in USD. |
forkOf | object[] | The protocols it is itself a fork of, by name. |
forkOf[].slug | string | null | Its slug, or null when the protocol directory does not list it. |
forkOf[].name | string | The protocol. |
Start building with DexData today
Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.
Get a free API key