---
title: List Spectrum application protocols
---

[Skip to content](#%5Ftop) 

[API Reference](https://developers.cloudflare.com/api/python)

[Spectrum](https://developers.cloudflare.com/api/python/resources/spectrum)

[Protocols](https://developers.cloudflare.com/api/python/resources/spectrum/subresources/protocols)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# List Spectrum application protocols

spectrum.protocols.list(ProtocolListParams\*\*kwargs)  \-> SyncSinglePage\[[ProtocolListResponse](https://developers.cloudflare.com/api/python/resources/spectrum#%28resource%29%20spectrum.protocols%20%3E%20%28model%29%20protocol%5Flist%5Fresponse%20%3E%20%28schema%29)\]

GET/zones/{zone\_id}/spectrum/protocols

Retrieves a list of Spectrum application protocols available for a zone.

##### Security

API Token

The preferred authorization scheme for interacting with the Cloudflare API. [Create a token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/).

**Example:**`Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY`

API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**`X-Auth-Email: user@example.com`

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**`X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194`

##### Accepted Permissions (at least one required)

`Zone Settings Write` `Zone Settings Read`

##### ParametersExpand Collapse 

zone\_id: str

Zone identifier.

maxLength32

##### ReturnsExpand Collapse 

class ProtocolListResponse: …

description: str

The full name of the application protocol.

name: str

The short name of the application protocol.

ports: List\[int\]

The available listening ports for the given protocol.

transport: str

The transport layer protocol used by the application protocol

### List Spectrum application protocols

Python

HTTPHTTP

TypeScriptTypeScript

PythonPython

GoGo

TerraformTerraform

```
import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_token=os.environ.get("CLOUDFLARE_API_TOKEN"),  # This is the default and can be omitted
)
page = client.spectrum.protocols.list(
    zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
page = page.result[0]
print(page.description)
```

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": [
    {
      "description": "Minecraft Game Server",
      "name": "Minecraft",
      "ports": [
        25565
      ],
      "transport": "tcp"
    }
  ],
  "result_info": {
    "count": 1,
    "page": 1,
    "per_page": 20,
    "total_count": 2000,
    "total_pages": 100
  }
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": [
    {
      "description": "Minecraft Game Server",
      "name": "Minecraft",
      "ports": [
        25565
      ],
      "transport": "tcp"
    }
  ],
  "result_info": {
    "count": 1,
    "page": 1,
    "per_page": 20,
    "total_count": 2000,
    "total_pages": 100
  }
}
```