---
updatedAt: 2026-03-01T18:56:45.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/edgekv/llms.txt
---

# List groups within a namespace

```curl cURL
namespaceId="marketing"
network="staging"

egcurl --eg-section default --request GET \

  --url "https://$hostname/edgekv/v1/networks/$network/namespaces/$namespaceId/groups" \
  --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
});   

const namespaceId = "marketing";
const network = "staging";

eg.auth({
  path: `/edgekv/v1/networks/${network}/namespaces/${namespaceId}/groups`,
  method: "GET",
  headers: {
    
    "Accept": "application/json"}                    
});
eg.send(function(error, response, body) {
  console.log(body);    
});
```

```python Python
import requests
from akamai.edgegrid import EdgeGridAuth, EdgeRc
from urllib.parse 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)
namespaceId = "marketing"
network = "staging"
 

path= '/edgekv/v1/networks/{}/namespaces/{}/groups'.format(network, namespaceId)
headers = {
  
  "Accept": "application/json"}  

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

```json Response Example
[
  "countries",
  "verticals",
  "industries"
]
```

# Set up authorization

<!-- curl@4 -->
<!-- node@1-8 -->
<!-- python@1-10 -->

Before you can use this API, you need to [Create authentication credentials](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials). 

Then, you can use these code samples to apply the token values to your requests.

# Pick a namespaceId

<!-- curl@1 -->
<!-- node@10 -->
<!-- python@11 -->

Run the [List namespaces](https://techdocs.akamai.com/edgekv/reference/namespaces#get-namespaces) operation to pick a `namespace` value, for use as a `namespaceId` in the request URL.

# Select a network

<!-- curl@2 -->
<!-- node@11 -->
<!-- python@12 -->

Select where your namespace is located, either the `staging` or `production` network.

# Form the URL

<!-- curl@6 -->
<!-- node@14 -->
<!-- python@15 -->

Inject the `network` and `namespaceId` values into the request URL path.

# Call the API

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

Call GET on the request API.

# Review the response

<!-- curl@0 -->
<!-- node@0 -->
<!-- python@0 -->

The response data shows an array of groups.