title: Querying data remotely using New Relic API throwing "404 error"
body: <p>Im using the following AJAX request to send request to New Relic, however its always throws "404 Not Found" error. </p>
  
  <p>Following is the code: </p>
  
  <pre><code>var client = new XMLHttpRequest();
  client.open("GET", "https://insights-api.newrelic.com/v1/accounts/REMAINING.URL", true);
  client.setRequestHeader("Accept", "application/json");
  client.setRequestHeader("X-Query-Key", "QUERY.KEY");
  client.send();
  </code></pre>