App Store Connect analytics reports return 500 API error

Call to analytics reports API randomly returns 500, sometimes more than 5 times in a row. Example URL I used: https://api.appstoreconnect.apple.com/v1/analyticsReportInstances/{report_instance_id}/segments. I have noticed that getting instance first by calling https://api.appstoreconnect.apple.com/v1/analyticsReportInstances/{report_instance_id} and then immediately after getting segments: https://api.appstoreconnect.apple.com/v1/analyticsReportInstances/{report_instance_id}/segments sometimes helps. Issue started at around March 27th 2025.

I also got the same problem since the end of March. Retry calling the API sometimes helps. But sometimes I need to retry several times to get a success response. Never had that problem before.

Now I started facing another problem with pagination: "next" url is invalid. Get:

https://api.appstoreconnect.apple.com/v1/analyticsReportRequests/{id}/relationships/reports?cursor=Mg

Error:

{
"errors": [
{
"id": "56e0cfab-4e86-4e4b-9a12-d76277ad9f94",
"status": "400",
"code": "PARAMETER_ERROR.INVALID",
"title": "A parameter has an invalid value",
"detail": "'Mg' is not a valid cursor for this request",
"source": {
"parameter": "cursor"
}
}
]
}
App Store Connect analytics reports return 500 API error
 
 
Q