Countries
List countries
Public endpoint to list all available countries supported by TextMaster.
Query parameters
localestringRequired
Locale name. Full list available via the List Locales endpoint.
Responses
200
Lists countries
application/json
get
GET /v1/public/countries HTTP/1.1
Host: api.textmaster.com
Accept: */*
200
Lists countries
[
{
"id": "AD",
"name": "Andorra"
},
{
"id": "AE",
"name": "United Arab Emirates"
},
{
"id": "AF",
"name": "Afghanistan"
},
{
"id": "AG",
"name": "Antigua And Barbuda"
},
{
"id": "AI",
"name": "Anguilla"
}
]
Code samples
curl -G "https://api.textmaster.com/v1/public/countries" \
--data-urlencode 'locale=en-US'
For a list of supported locales, see:
LocalesLast updated
Was this helpful?