Using the language endpoint

Here, languages for events are listed. In the event endpoint, the event languages may be shown in the in_language field, if known.

Also, event data may have translations in the languages which have translation_available set to true. Currently, translations in fi, sv, en, ru, zh_hans, and ar are supported.

Events organized in or translated to a specific language can be found at the event endpoint using the query parameter language.

Language as service language

To find out languages which can or cannot be used as service language in a registration, use the query parameterservice_language.

Example:

event/?service_language=true

See the result

GET /linkedevents/v1/language/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json ;utf-8
Vary: Accept

{
    "meta": {
        "count": 12,
        "next": null,
        "previous": null
    },
    "data": [
        {
            "id": "ru",
            "translation_available": true,
            "service_language": false,
            "name": {
                "fi": "venäjä",
                "sv": "ryska",
                "en": "Russian"
            },
            "@id": "http://api.hel.fi/linkedevents/v1/language/ru/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "et",
            "translation_available": false,
            "service_language": false,
            "name": {
                "fi": "viro",
                "sv": "estniska",
                "en": "Estonian"
            },
            "@id": "http://api.hel.fi/linkedevents/v1/language/et/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "fr",
            "translation_available": false,
            "service_language": false,
            "name": {
                "fi": "ranska",
                "sv": "franska",
                "en": "French"
            },
            "@id": "http://api.hel.fi/linkedevents/v1/language/fr/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "so",
            "translation_available": false,
            "service_language": false,
            "name": {
                "fi": "somali",
                "sv": "somaliska",
                "en": "Somali"
            },
            "@id": "http://api.hel.fi/linkedevents/v1/language/so/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "es",
            "translation_available": false,
            "service_language": false,
            "name": {
                "fi": "espanja",
                "sv": "spanska",
                "en": "Spanish"
            },
            "@id": "http://api.hel.fi/linkedevents/v1/language/es/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "tr",
            "translation_available": false,
            "service_language": false,
            "name": {
                "fi": "turkki",
                "sv": "turkiska",
                "en": "Turkish"
            },
            "@id": "http://api.hel.fi/linkedevents/v1/language/tr/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "fa",
            "translation_available": false,
            "service_language": false,
            "name": {
                "fi": "persia",
                "sv": "persiska",
                "en": "Persian"
            },
            "@id": "http://api.hel.fi/linkedevents/v1/language/fa/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "ar",
            "translation_available": true,
            "service_language": false,
            "name": {
                "fi": "arabia",
                "sv": "arabiska",
                "en": "Arabic"
            },
            "@id": "http://api.hel.fi/linkedevents/v1/language/ar/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "zh_hans",
            "translation_available": true,
            "service_language": false,
            "name": {
                "fi": "kiina",
                "sv": "kinesiska",
                "en": "Chinese"
            },
            "@id": "http://api.hel.fi/linkedevents/v1/language/zh_hans/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "en",
            "translation_available": true,
            "service_language": true,
            "name": {
                "fi": "englanti",
                "sv": "engelska",
                "en": "English"
            },
            "@id": "http://api.hel.fi/linkedevents/v1/language/en/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "fi",
            "translation_available": true,
            "service_language": true,
            "name": {
                "fi": "suomi",
                "sv": "finska",
                "en": "Finnish"
            },
            "@id": "http://api.hel.fi/linkedevents/v1/language/fi/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "sv",
            "translation_available": true,
            "service_language": true,
            "name": {
                "fi": "ruotsi",
                "sv": "svenska",
                "en": "Swedish"
            },
            "@id": "http://api.hel.fi/linkedevents/v1/language/sv/",
            "@context": "http://schema.org",
            "@type": "Language"
        }
    ]
}