---
updatedAt: 2026-03-01T18:53:17.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/firewall-rules/llms.txt
---

# Get a service

```curl cURL
serviceId="3"

curl --request GET \
     --url "https://hostname/firewall-rules-manager/v1/services/$serviceId" \
     --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 serviceId = "3";

eg.auth({
  path: `/firewall-rules-manager/v1/services/${serviceId}`,
  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)
serviceId = "3"
 

path= '/firewall-rules-manager/v1/services/{}'.format(serviceId)
headers = {
  
  "Accept": "application/json"}  

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

```

```json Response Example
{
    "serviceId": 3,
    "serviceName": "TestIP",
    "description": "Test IPs"
}
```

# Set up authorization

<!-- 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.

# Fetch a serviceId

<!-- curl@3 -->
<!-- node@3 -->
<!-- python@5 -->

To run this operation, you first need to get a `serviceId`. To do that, run the [List services](https://techdocs.akamai.com/firewall-rules/reference/get-services) operation and store the relevant value.

# Form the URL

<!-- curl@4 -->

Inject the `serviceId` value into the template URL.

# Make the API call

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

Run GET on the request URL.

# Review the response



The response returns details of a service object.