Post not yet marked as solved
Post marked as unsolved with 0 replies, 118 views
Hello!
I am having issues retrieving data from the Apple Store Connect API.
Here is the call I am making:
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Authorization", "Bearer SECUREINFORMATION")
$response = Invoke-RestMethod 'https://api.appstoreconnect.apple.com/v1/analyticsReports/r39-871f60a5-f26a-4de8-8fae-a9a1d506c1a0/instances' -Method 'GET' -Headers $headers
$response | ConvertTo-Json
I have removed the JWT token for privacy.
Here is the response I am receiving:
{
"data": [],
"links": {
"self": "https://api.appstoreconnect.apple.com/v1/analyticsReports/r39-871f60a5-f26a-4de8-8fae-a9a1d506c1a0/instances"
},
"meta": {
"paging": {
"total": 0,
"limit": 50
}
}
}
The issue is that no matter what filters I apply to my call or which ID I select to view instances for I am always returned an empty array. This is a problem because I need to download report data for our organisations apps using the API.
Please let me know how I restructure my call to be returned valid information. Feel free to reach out if there is any other information required!