Skip to content

GET Target Languages

phw edited this page Feb 22, 2013 · 4 revisions

GET /languages/target

Request: GET /languages/target

Returns a collection of all target languages supported by TEXTKING. This endpoint is public and does not require authorization.

Query parameters

Parameter Description
per_page An integer value defining how many entries should be returned. Only values between 1 and 100 (both inclusive) are allowed. If not given, this defaults to 100.
page Return search results starting at a given page. Used for paging through more than one page of results.

Request headers

Header Description
Accept application/json or application/xml
Accept-Language The language in which the localized language names are returned. Currently the API supports de and en as valid language codes.

Response status codes

HTTP status Description
200 Ok Successful request.

Example

Load the complete list of target languages in German:

GET /v1/languages/target HTTP/1.1
Host: api.textking.com
Accept: application/json
Accept-Language: de

Response:

HTTP/1.1 200 Ok
Content-Type: application/json; charset=utf-8
Content-Language: de

{
    "page": 1,
    "per_page": 100,
    "total": 32,
    "items": [
        {
            "code": "sq",
            "name": "Albanisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/sq"
                }
            ]
        },
        {
            "code": "ar",
            "name": "Arabisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/ar"
                }
            ]
        },
        {
            "code": "bg",
            "name": "Bulgarisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/bg"
                }
            ]
        },
        {
            "code": "zh-TW",
            "name": "Chinesisch (traditionell)",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/zh-TW"
                }
            ]
        },
        {
            "code": "zh-CN",
            "name": "Chinesisch (vereinfacht)",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/zh-CN"
                }
            ]
        },
        {
            "code": "da",
            "name": "Dänisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/da"
                }
            ]
        },
        {
            "code": "de",
            "name": "Deutsch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/de"
                }
            ]
        },
        {
            "code": "en",
            "name": "Englisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/en"
                }
            ]
        },
        {
            "code": "et",
            "name": "Estnisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/et"
                }
            ]
        },
        {
            "code": "fi",
            "name": "Finnisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/fi"
                }
            ]
        },
        {
            "code": "fr",
            "name": "Französisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/fr"
                }
            ]
        },
        {
            "code": "el",
            "name": "Griechisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/el"
                }
            ]
        },
        {
            "code": "it",
            "name": "Italienisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/it"
                }
            ]
        },
        {
            "code": "ja",
            "name": "Japanisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/ja"
                }
            ]
        },
        {
            "code": "ko",
            "name": "Koreanisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/ko"
                }
            ]
        },
        {
            "code": "hr",
            "name": "Kroatisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/hr"
                }
            ]
        },
        {
            "code": "lv",
            "name": "Lettisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/lv"
                }
            ]
        },
        {
            "code": "nl",
            "name": "Niederländisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/nl"
                }
            ]
        },
        {
            "code": "nb",
            "name": "Norwegisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/nb"
                }
            ]
        },
        {
            "code": "pl",
            "name": "Polnisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/pl"
                }
            ]
        },
        {
            "code": "pt",
            "name": "Portugiesisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/pt"
                }
            ]
        },
        {
            "code": "ro",
            "name": "Rumänisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/ro"
                }
            ]
        },
        {
            "code": "ru",
            "name": "Russisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/ru"
                }
            ]
        },
        {
            "code": "sv",
            "name": "Schwedisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/sv"
                }
            ]
        },
        {
            "code": "sr",
            "name": "Serbisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/sr"
                }
            ]
        },
        {
            "code": "sk",
            "name": "Slowakisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/sk"
                }
            ]
        },
        {
            "code": "sl",
            "name": "Slowenisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/sl"
                }
            ]
        },
        {
            "code": "es",
            "name": "Spanisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/es"
                }
            ]
        },
        {
            "code": "cs",
            "name": "Tschechisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/cs"
                }
            ]
        },
        {
            "code": "tr",
            "name": "Türkisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/tr"
                }
            ]
        },
        {
            "code": "uk",
            "name": "Ukrainisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/uk"
                }
            ]
        },
        {
            "code": "hu",
            "name": "Ungarisch",
            "localization_language": "de",
            "links": [
                {
                    "rel": "self",
                    "href": "https://api.textking.com/v1/language/hu"
                }
            ]
        }
    ],
    "links": [
        {
            "rel": "self",
            "href": "https://api.textking.com/v1/languages/target?page=1&per_page=100"
        }
    ]
}