title: Accessing JSON data after Axios get request
body: <p>I've been trying to make a Discord Bot that works with the Shoppy API (<a href="https://shoppy.dev/" rel="nofollow noreferrer">https://shoppy.dev/</a>). I'm completely new to Javascript - but not new to coding!</p>
  
  <p>I did some research on Axios and have managed to use it to pull a list of orders from a Shoppy account. The problem is, there's a ton of this data I only want to display some of it to the user. I've had to redact some info in the code below but this is what I have:</p>
  
  <pre><code>        case 'orders':
              async function makeRequest() {
                  const config = {
                      method: 'get',
                      url: 'https://shoppy.gg/api/v1/orders/',
                      headers: {
                          'Authorization': 'REDACTED - MY API KEY',
                          'Content-Type': 'application/json',
                          'Connection': 'keep-alive'
                      }
                  }
                  axios(config)
                      .then(response =&gt; {
                          console.log(response.data);
                      });
              }
  
              makeRequest();
              break;
  </code></pre>
  
  <p>This produces the below output in the console. I've only listed some of the info here just to show the format but you get the general idea:</p>
  
  <pre><code>Bot Online
  [
    {
      id: 'REDACTED',
      pay_id: null,
      product_id: 'REDACTED',
      coupon_id: null,
      price: 3,
      currency: 'CAD',
      exchange_rate: null,
      email: 'REDACTED',
      delivered: 1,
      confirmations: 1,
      required_confirmations: 1,
  </code></pre>
  
  <p>My problem is - I can't figure out how to take just the data from the 'email' for example and display it to the user. I've spent hours trying different ways but the console always just shows 'undefined'. </p>
  
  <p>I feel like it's a super simple thing and I'm just not getting something. Does anyone have any advice? To give a bit more context for this piece of code, the user is writing '!order' and the bot will respond with a list of their orders - but I only want the bot to display something like 'Order ID', 'Product Name, 'Email'. So I don't need all of the data that gets pulled.</p>
  
  <p>Thanks!!</p>