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

# Get localization data

```curl cURL
language="en_US"

egcurl --eg-section default --request GET \
  --url "https://$hostname/hapi/v1/i18n/$language" \
  --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 language = "en_US";

eg.auth({
  path: `/hapi/v1/i18n/${language}`,
  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)
language = "en_US"
 

path= '/hapi/v1/i18n/{}'.format(language)
headers = {
  
  "Accept": "application/json"}  

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

```json Response Example
{
    "hapi": {
        "problems": {
            "edge-hostname-id-not-found": {
                "detail": "Could not find edgeHostnameId: {{edgeHostnameId}}",
                "title": "Invalid EdgeHostname Id"
            },
            "invalid-ttl": {
                "detail": "TTL is required and should be a number between 0 and 86400",
                "title": "TTL is Invalid"
            }
        }
    }
}
```

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

# Select a language

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

Choose a language for error messages.
The supported `language` values are: 
- `de_DE` for German
- `en_US` for English
- `es_ES` for Spanish
- `es_LA` for Spanish for Latin America
- `fr_FR` for French
- `it_IT` for Italian
- `ja_JP` for Japanese
- `ko_KR` for Korean
- `pt_BR` for Brazilian Portuguese
- `zh_CN` for Simplified Chinese
- `zh_TW` for Traditional Chinese

# Form the URL

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

Enter the `language` 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 provides the problem descriptions and error titles in the specified language.