Fetch data

Learn how to fetch data from SimpleLocalize CDN

get
Get translations by language key

https://cdn.simplelocalize.io/:publicProjectToken/_latest/:languageKey
Fetch translated data from API and use them in your application.
Request
Response
Request
Path Parameters
languageKey
required
string
select translations by passing language key, for example 'en'
publicProjectToken
required
string
Public Project Token from Settings tab
Response
200: OK
Example response
{
"CREATE_ACCOUNT": "create account",
"SIGN_IN": "sign in",
"WELCOME_TO_THE_JUNGLE": "welcome to the jungle",
...
}

get
Get languages

https://cdn.simplelocalize.io/:publicProjectToken/_latest/lang
Fetch list of available languages for the project
Request
Response
Request
Path Parameters
publicProjectToken
optional
string
Public Project Token from Settings tab
Response
200: OK
Example response
[
{
"key" : "en",
"name" : "english"
}
]