System languages

Parameters

HTTP method

Access rights

URL

Parameters

Note

GET public_data https://api.admitad.com/languages/
  • offset**
  • limit**

Returns the list of available languages.*

GET public_data https://api.admitad.com/languages/{code}/  

Returns the language, where code is the code of the language (language_code)*

  • * Returns the result in the JSON format.

  • ** Sets skipping and the number of records returned. For example limit=5&offset=2.

Example of use

Example of a request with utility ``curl``:

curl -L -H 'Authorization: Bearer access_token' -X GET https://api.admitad.com/websites/languages/?limit=2

Example of the response from the API server in the JSON format:

{
    "results": [
        {
            "flag": "http://admitad.com/media/images/flags/c8ef33a926799c7c3d7103212a78b187.png",
            "language": "Русский",
            "language_code": "ru"
        },
        {
            "flag": "http://admitad.com/media/images/flags/a8ef33a926799c7c3d7122222a78b187.png",
            "language": "Deutsch",
            "language_code": "de"
        }
    ],
    "_meta": {
        "count": 2,
        "limit": 2,
        "offset": 0
    }
}

Description of API server response fields

Name

Description

flag

Language flag image

languages

Name of language

language_code

Language code