title: Get my IOS installations and other app store data
body: <p>I'm trying to get the number of installs of my IOS application but failed.</p>
  <ol>
  <li><p>I tried using <code>api.appstoreconnect.apple.com/</code>, with the query of</p>
  <pre><code>res = await axios.get
        ('https://api.appstoreconnect.apple.com/v1/salesReports?filter\[frequency\]=MONTHLY&amp;filter[reportDate]=2020-12&amp;filter\[reportSubType\]=SUMMARY&amp;filter\[reportType\]=SALES&amp;filter\[vendorNumber\]=******'
        ,{
          headers: {
            Accept:'application/a-gzip, application/json',
            Authorization: 'Bearer ' + token //the token is a variable which holds the token
          }
        })
  
  console.log(res.data)
  </code></pre>
  <p>and finally managed to get a response but the response is of type application/a-gzip
  so I don't know how to read it.</p>
  <p>Looks like -</p>
  <pre><code>ՓQo�0ǟo��O{���(�*Z��A�g
  ��*��}0���&amp;ɲ�l�ʢU����|���iՋ5d�Ū��w�Y@�=6���BP��Dm��.��*bŮE��(I���ZHA��l\�Xõ�,)  �^�{#�
                                                                                    ����i������E��{����霨m�W�iQ�۪}~V�t�=6�M�EKC
  </code></pre>
  </li>
  <li><p>Using itunesconnectanalytics, using this npm library I finally manage to get the info, but I don't know what to do with the 2-factor authentication once I upload my code to the could (AWS Fargate)</p>
  </li>
  </ol>
  <p>If anyone has a solution for any of the cases or other tips it would be amazing,
  Thanks</p>