Get placeholders via API

Focused on localization of games, applications, and websites? Then you definitely want to use placeholders in your projects. Get to know your placeholders with GET placeholders.

See our placeholders example

Request URL: 
https://smartcat.ai/api/integration/v1/placeholders

Headers:
Authorization: Basic ZG0wMTpRd2VydHkxMjM=

Response:
[
   {
     "regex": "%[sdn]"
   },
   {
     "regex": "\\{+.+?\\}+"
   },
   {
     "regex": "\\[\\[.+?\\]\\]"
   },
   {
     "regex": "%\\d+\\$[sd]"
   },
   {
     "regex": "%@"
   }
]

Bear in mind that characters like \ will be escaped, e.g. the character \ is displayed as \\ in the example above.

You can also validate your placeholders with GET placeholders/validate, and if you get 204 in response, then everything is good.

See our placeholders/validate example

Request URL: 
https://smartcat.ai/api/integration/v1/placeholders/validate?format=/[a-z]+/g

Headers:
Authorization: Basic ZG0wMTpRd2VydHkxMjM=