get
https://www.locally.com/headless/api/1.0/conversion/common
Retrieve commonly used global data such as currencies and languages.
Request Parameters
🏷️ header · unmarked parameters are query params
| Parameter | Type | Required | Description |
|---|---|---|---|
Locally-Api-Token 🏷️ | string | Yes | Locally API token must be passed in the header to authenticate the API consumer. |
Example Request
curl 'https://www.locally.com/headless/api/1.0/conversion/common' \
--header 'Locally-Api-Token: {{API_TOKEN}}'const response = await fetch('https://www.locally.com/headless/api/1.0/conversion/common', {
headers: {
'Locally-Api-Token': '{{API_TOKEN}}'
}
});
const data = await response.json();import requests
response = requests.get(
'https://www.locally.com/headless/api/1.0/conversion/common',
headers={'Locally-Api-Token': '{{API_TOKEN}}'}
)
data = response.json()Example Response
{
"success": true,
"data": {
"languages": {
"en-us": {
"name": "English",
"level": 3
},
"fr-fr": {
"name": "French",
"level": 3
},
"de-at": {
"name": "German (Austria)",
"level": 0,
"use": "de-de"
}
},
"currencies": {
"USD": {
"name": "US Dollar",
"symbol": "$",
"group": "USD",
"is_indexable": 1
},
"CAD": {
"name": "Canadian Dollar",
"symbol": "$",
"group": "CAD",
"is_indexable": 1
},
"EUR": {
"name": "European Euro",
"symbol": "€",
"group": "EUR",
"is_indexable": 1
}
},
"countries": [
{
"name": "United States",
"code": "US"
},
{
"name": "Canada",
"code": "CA"
},
{
"name": "Germany",
"code": "DE"
}
],
"us_ca_states": [
{
"code": "AL",
"name": "Alabama"
},
{
"code": "IL",
"name": "Illinois"
},
{
"code": "AB",
"name": "Alberta"
}
],
"session": {
"id": "abc999"
}
},
"msg": ""
}Response Explanation
success— Boolean outcome of the call. Whenfalse, the response also carries a top-levelerror_codeand explanatorymsg— always checksuccess, not just the HTTP status.data.languages— Supported locales keyed by language-region code.levelis the support tier:0mirror-only,1basic store locator,2adds stock and catalog support,3full site support.data.languages.de-at.use— Present only on level-0mirrored locales: the locale whose content is actually served (requests forde-atrenderde-decontent).data.currencies— Keyed by currency code; country variants likeEUR-ATshare their parentgroup(EUR).symbolis for display and is not unique —USDandCADboth use$.data.currencies.USD.is_indexable—1when product prices in this currency are indexed for product search. Booleans are serialized as1/0integers throughout the Headless API.data.us_ca_states— A single list covering both US states and Canadian provinces (Alberta appears alongside Alabama);codeis the two-letter abbreviation used in store addresses.data.session.id— Locally session ID, returned on every response. Replay it via theLocally-Api-Session-Idheader to persist the shopper's session between calls; expired IDs are transparently replaced with fresh ones.msg— Human-readable error text; empty string on success. In production, unexpected server errors are masked asApp server errorwith alookupreference — see Handling Errors in Production.
200Successful
400Bad Request
401Unauthorized
402Request Failed
403Forbidden
404Not Found
429Too Many Requests
500Server Error

