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.

GET/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>"
Parameters
ParameterDescription
slug

path · 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.

Response fields of Which protocols are code forks of this protocol?
FieldTypeDescription
slugstringThe protocol asked about.
namestringIts name.
forkCountintegerHow many protocols are forks of it.
forksobject[]Most value locked first, unknown value last, then by name.
forks[].slugstring | nullIts slug, or null when the protocol directory does not list it.
forks[].namestringThe protocol.
forks[].categorystring | nullWhat kind of protocol it is, e.g. Dexs or Lending.
forks[].tvlnumber | nullThe value locked in it today, in USD.
forkOfobject[]The protocols it is itself a fork of, by name.
forkOf[].slugstring | nullIts slug, or null when the protocol directory does not list it.
forkOf[].namestringThe 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