Skip to main content
GET
/
onchain
/
networks
Networks List
curl --request GET \
  --url https://api.coingecko.com/api/v3/onchain/networks \
  --header 'x-cg-demo-api-key: <api-key>'
{
  "data": [
    {
      "id": "eth",
      "type": "network",
      "attributes": {
        "name": "Ethereum",
        "coingecko_asset_platform_id": "ethereum"
      }
    },
    {
      "id": "bsc",
      "type": "network",
      "attributes": {
        "name": "BNB Chain",
        "coingecko_asset_platform_id": "binance-smart-chain"
      }
    }
  ]
}
Use this endpoint to get network IDs for other endpoints that require a network parameter.

SDK Examples

const response = await client.onchain.networks.get();

console.log(JSON.stringify(response, null, 2));

Authorizations

x-cg-demo-api-key
string
header
required

Query Parameters

page
integer

Page through results. Default value: 1

Response

200 - application/json

List of supported networks

data
object[]
required