I am puzzled by the question. The documentation says that you can use the curl query:
curl -s -X POST -H ... \ -H ... \ --data "{ .... }" "https://translation.googleapis.com/language/translate/v2" But I would like to use javascript. Like that:
$.ajax({ url: 'https://translation.googleapis.com/language/translate/v2', type: 'post', data: { .... }, headers: { ...., .... }, dataType: 'json' }); Tell me if there is a difference. And do not chase, please, with sticks. Just starting to deal with requests