On the Yandex website I got the API KEY. According to the instructions, I didn’t understand what I read ..

here is the function

https://translate.yandex.net/api/v1.5/tr.json/getLangs ? key=<API-ключ> & [ui=<код языка>] & [callback=<имя callback-функции>] 

which I don’t know .. how to use the KEY YANDEX API on a regular site using a regular script or JQUERY ?

    1 answer 1

    Greetings

    Usage example

     var url = 'https://translate.yandex.net/api/v1.5/tr.json/getLangs?key=trnsl.1.1.20160325T130025Z.a7384fd1c9198dd9.a93fe8c8077b1400a27&ui=ru'; $.getJSON(url, function(data) { data; // что то делаем с ответом в случае если все успешно }); 
    • can be more? otherwise I’m not very good at scripts, let's say API KEY from Yandex trnsl.1.1.20160325T130025Z.a7384fd1c9198dd9.a93fe8c8077b1400a27 here where to put this key var url = 'https://translate.yandex.net/api/v1.5/tr.json/getLangs?...'; $.get(url, function(data) { data; // что то делаем с ответом в случае если все успешно }); var url = 'https://translate.yandex.net/api/v1.5/tr.json/getLangs?...'; $.get(url, function(data) { data; // что то делаем с ответом в случае если все успешно }); and how to specify the default language of the site? then how to make for translation into the desired language - Samir Mamedov
    • Corrected the answer - Maxim Bogdanov
    • language is specified at the very end of the url value - Maxim Bogdanov
    • how did you get that? [reply] ( translate.yandex.net/api/v1.5/tr.json/… ) - Samir Mamedov
    • congratulations, everything works correctly - Maxim Bogdanov