title: Pull data from Bandsintown API
body: <p>I need a little help on pulling events data from the Bandsintown API. I tested the HTTP GET request in the Postman App and it returns data correctly.</p>
  <p>Now I am trying to pull this data into a JavaScript to then render it on a website that I design, but it seems that something does not work. Here's my code:</p>
  <pre><code>var eventRequest = new XMLHttpRequest();
  eventRequest.open('GET', 'https://rest.bandsintown.com/artists/${artistname}/events?date=upcoming&amp;app_id=${app_id}');
  eventRequest.onload = function() {
    var eventsData = eventRequest.responseText;
  };
  eventRequest.send();
  </code></pre>
  <p>To render the data further down in the JS I am using:</p>
  <pre><code>document.getElementById(&quot;app&quot;).innerHTML = `
     ${eventsData.map(eventTemplate).join(&quot;&quot;)}
  `;
  </code></pre>