API Test using XMLHttpRequest

Open your browser console to see the results.