DeFi API
Query protocol list

Query protocol list#

Description: This API provides brief information about protocols and investment products for further details on investment products. If the parameters do not exist, it will list information about all protocols.

Request URL#

GET https://www.okx.com/api/v5/defi/explore/protocol/list

Request parameters#

Parameter nameDescriptionLocationRequiredData type
platformIdPlatform IDQueryNoString
platformNamePlatform official nameQueryNoString

Response parameters#

Parameter nameDescriptionData type
platformIdPlatform IDString
platformNamePlatform official nameString
platformWebSitePlatform official websiteString
investmentApiUrlPatternURL address for investment details (non-UI)String
investmentPageUrlPatternURL address for investment details on OKX official website UIString
platformMinInfosPlatform informationArray[Struct]
>investmentIdInvestment product IDString
>protocolIdProtocol IDString
>networkInvestment product networkString
>chainIdInvestment product chain IDString

Request example#

shell
curl --location 'https://www.okx.com/api/v5/defi/explore/protocol/list' \
--header 'OK-ACCESS-KEY: 4b****53' \
--header 'OK-ACCESS-PASSPHRASE: p****d'

Response example#

200
{
    "code": 0,
    "msg": "",
    "data": [
{
    "platformId": 149,
    "platformName": "MorphoCompound",
    "platformWebSite": "https://compound.morpho.xyz/?network=mainnet",
    "investmentApiUrlPattern": "",
    "investmentPageUrlPattern": "",
    "platformMinInfos": [
{
    "investmentId": "20926",
    "protocolId": "194",
    "network": "OP"
},
{
    "investmentId": "20949",
    "protocolId": "195",
    "network": "OP"
}
    ]
},
{
    "platformId": 144,
    "platformName": "Compound V3",
    "platformWebSite": "https://app.compound.finance",
    "investmentUrlPattern": "",
    "platformMinInfos": [
{
    "investmentId": "8973",
    "protocolId": "75",
    "network": "OP"
}
    ]
}
    ]
}