---
updatedAt: 2026-03-01T18:55:16.000Z
---

# List tags

```curl cURL
page=1
pageSize=25
sort="name,asc"

egcurl --eg-section default --request GET \
  --url "https://$hostname/events/v3/tags?page=$page&pageSize=$pageSize&sort=$sort" \
  --header "Accept: application/json" 
```

```node Node
const EdgeGrid = require("akamai-edgegrid");
const os = require("os");
const edgercPath = os.homedir + "/.edgerc.txt";
const edgercSection = "default";
const eg = new EdgeGrid({
  path: edgercPath,
  section: edgercSection,
});

eg.auth({
  path: `/events/v3/tags`,
  method: "GET",
  headers: {
    Accept: "application/json",
  },
  qs: {
    page: 1,
    pageSize: 25,
    sort: "name,asc",
  },
});
eg.send(function (error, response, body) {
  console.log(JSON.stringify(JSON.parse(body), null, 2));
});
```

```python Python
import requests
import json
from akamai.edgegrid import EdgeGridAuth, EdgeRc
from urlparse import urljoin

edgerc = EdgeRc('~/.edgerc.txt')
section = 'default'
baseurl = 'https://%s' % edgerc.get(section, 'host')

session = requests.Session()
session.auth = EdgeGridAuth.from_edgerc(edgerc, section)
 

path = '/events/v3/tags'
headers = {
  
  "Accept": "application/json"} 
querystring = {
  "page": 1,
  "pageSize": 25,
  "sort": "name,asc"
}  

result = session.get(urljoin(baseurl, path), headers=headers, querystring=querystring)
print(result.status_code)
print(json.dumps(result.json(), indent=2)) 
```

```json Response Example
{
  "metadata": {
    "page": 1,
    "pageSize": 25,
    "totalResultsCount": 2,
    "totalPageCount": 1,
    "sort": [
      {
        "property": "name",
        "direction": "asc"
      }
    ]
  },
  "data": [
    {
      "name": "Tag 1",
      "id": 1
    },
    {
      "name": "Tag 2",
      "id": 2
    }
  ]
}

```

# Page the result data

<!-- curl@1-2 -->
<!-- node@17-18 -->
<!-- python@19-20 -->

You can page the results with one or more of these parameters:

- `page`. Use this to view a specific page of results.

- `pageSize`. Specify the number of records per page. By default, a page show 25 records.

# Sort the result data

<!-- curl@3 -->
<!-- node@19 -->
<!-- python@21 -->

You can `sort` the results by `name` and sorting direction, either `asc` for ascending order or `desc` for descending order.

# Form the URL

<!-- curl@6 -->
<!-- node@11,16-20 -->
<!-- python@14,18-22 -->

Inject the `page`, `pageSize`, and `sort` values into the template URL.

# Call the API

<!-- curl@1-100 -->
<!-- node@1-100 -->
<!-- python@1-100 -->

Call GET on the request URL.

# Review the response



The response returns a paged and sorted `data` array specifying defined tags.