# List protocols - Platform API

> List the blockchains available on GetBlock Shared Nodes. Complete guide to GET /protocols in the Platform API.

`GET /protocols` lists the protocols served on Shared Nodes, most prominent first. Every protocol listed can have a token created for it. Each entry is an identity only; its networks, modes, API types, and regions are in [`GET /protocols/{id}`](/platform-api/api-reference/get-protocol/).

```
GET https://public-api.getblock.io/api/v1/protocols
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer | No | Query parameter. Page size. Default 20, at most 100. |
| `offset` | integer | No | Query parameter. Items to skip. Default 0. |
| `search` | string | No | Query parameter. Case-insensitive substring of the id or the name: `eth` and `ether` both find Ethereum. Compatibility is not searched: `eth` does not return every EVM chain. |

## Request Example

#### cURL

```bash
curl 'https://public-api.getblock.io/api/v1/protocols?search=eth' \
  -H "Authorization: Bearer $GETBLOCK_API_KEY"
```

#### JavaScript

```javascript
const response = await fetch('https://public-api.getblock.io/api/v1/protocols?search=eth', {
  headers: { Authorization: `Bearer ${process.env.GETBLOCK_API_KEY}` }
});
const body = await response.json();

console.log(body.protocols.map((p) => p.id));
```

#### Python

```python
import os
import requests

body = requests.get(
    "https://public-api.getblock.io/api/v1/protocols",
    headers={"Authorization": f"Bearer {os.environ['GETBLOCK_API_KEY']}"},
    params={"search": "eth"},
).json()

print([p["id"] for p in body["protocols"]])
```

## Response Example

```json
{
  "total": 3,
  "limit": 20,
  "offset": 0,
  "protocols": [
    {
      "id": "eth",
      "name": "Ethereum",
      "based_on": ""
    },
    {
      "id": "etc",
      "name": "Ethereum Classic",
      "based_on": "eth"
    },
    {
      "id": "etherlink",
      "name": "Etherlink",
      "based_on": "eth"
    }
  ]
}
```

## Response Parameters

| Field | Type | Description |
| --- | --- | --- |
| `total` | integer | Protocols matching the filters, before `limit` and `offset`. |
| `limit` | integer | Page size applied. |
| `offset` | integer | Items skipped. |
| `protocols[].id` | string | What to send as `protocol` when creating a token. |
| `protocols[].name` | string | Display name. |
| `protocols[].based_on` | string | The protocol this one is compatible with, such as `eth` for EVM chains. Empty when it stands on its own. |

This is the Shared Node catalog. A token on a Dedicated or Limitless Node takes its protocol and network from the node.

## Use Cases

* Find the protocol id to send to [`POST /tokens`](/platform-api/api-reference/create-token/)
* Build a chain picker in an internal tool

## Error Handling

| HTTP | Cause |
| --- | --- |
| 401 | Missing or invalid API key. |
| 502 | A GetBlock service behind the API did not answer. Retry later. |

Error bodies carry an `error` message and a `request_id`. See [Errors](/platform-api/api-reference/objects-and-conventions/#errors).
