---
updatedAt: 2026-03-01T18:30:29.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/edge-hostnames/llms.txt
---

# Get an edge hostname

```curl cURL
edgeHostnameId=3

egcurl --eg-section default --request GET \
  --url "https://$hostname/hapi/v1/edge-hostnames/$edgeHostnameId" \
  --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 edgeHostnameId = 3;

eg.auth({
  path: `/hapi/v1/edge-hostnames/${edgeHostnameId}`,
  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 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)
edgeHostnameId = 3
 
path= '/hapi/v1/edge-hostnames/{}'.format(edgeHostnameId)
headers = {
  
  "Accept": "application/json"}  

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

```json Response Example
{
  "edgeHostnameId": 3,
    "recordName": "www.example.com",
    "dnsZone": "edgekey.net",
    "securityType": "ENHANCED-TLS",
    "useDefaultTtl": true,
    "useDefaultMap": true,
    "ipVersionBehavior": "IPV6_IPV4_DUALSTACK",
    "productId": "DSD",
    "ttl": 21600,
    "map": "e;dscb.akamaiedge.net",
    "slotNumber": 11838,
    "comments": "Created for example.com"
}
    
```

# Set up authorization

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

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.

# Get an edge hostname identifier

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

Run the [List edge hostnames] (https://techdocs.akamai.com/edge-hostnames/recipes/list-edge-hostnames) operation if you don't have the `edgeHostnameId` that you would like details for.

# Form the URL

<!-- curl@1,4 -->
<!-- node@13 -->
<!-- python@13 -->

Enter the `edgeHostnameId` value into the URL for the API call.

# Call the API

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

Call GET on the request URL.

# Review the response

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

The response includes details for the `edgeHostnameId`. You can review the `ttl` or `ipVersionBehavior` values and perform a [PATCH](https://techdocs.akamai.com/edge-hostnames/recipes/patch-an-edge-hostname) if updates are required.