Y-Lex Home | About | Request API Key | Manage Account | Test Lookup

How to make a request:

xhr = new XMLHttpRequest();
xhr.open("POST", "http://y-lex.byu.edu/api/lookup", true);
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhr.setRequestHeader("Authorization", key);
xhr.send("srcLang="+encodeURIComponent(srcLang)+"&destLang="+encodeURIComponent(destLang)+"&word="+encodeURIComponent(text));