title: Axios and Node - Problems With Outputted Data on EBAY API
body: <p>I'm just trying to do a quick test using Axios to run a GET request from eBay API. </p>
  
  <p>Here's my code:</p>
  
  <pre><code>var express = require("express");
  var router = express.Router();
  const axios = require("axios");
  
  var url = "http://svcs.ebay.com/services/search/FindingService/v1";
  url += "?OPERATION-NAME=findItemsAdvanced";
  url += "&amp;SERVICE-VERSION=1.0.0";
  url += "&amp;SECURITY-APPNAME=XXXX";
  url += "&amp;GLOBAL-ID=EBAY-US";
  url += "&amp;RESPONSE-DATA-FORMAT=JSON";
  url += "&amp;categoryId=213"; // baseball
  url += "&amp;keywords=t206"; // change value to title
  url += "&amp;paginationInput.entriesPerPage=6";
  
  console.log(url);
  
  axios({
    method: "get",
    url: url
  })
    .then(response =&gt; {
      console.log(response.data);
    })
    .catch(error =&gt; {
      console.log(error);
    });
  
  module.exports = router;
  </code></pre>
  
  <p>The URL of the string works when i input in the browser.  However when i run node, i get the following:</p>
  
  <pre><code>{
    findItemsAdvancedResponse: [
      {
        ack: [Array],
        version: [Array],
        timestamp: [Array],
        searchResult: [Array],
        paginationOutput: [Array],
        itemSearchURL: [Array]
      }
    ]
  }
  </code></pre>
  
  <p>I tried to change the response console log to this</p>
  
  <p><code>console.log(response.data.searchResult)</code> and </p>
  
  <p>this</p>
  
  <pre><code>console.log(response.data.findItemsAdvancedResponse.searchResult)
  </code></pre>
  
  <p>but i keep getting undefined.</p>
  
  <p>Any ideas?</p>