@App Store Connect Engineer
Issue with Analytics API: Missing Data and Incorrect Metrics
I’m encountering a problem while retrieving historical data from the analytics API. Specifically, when using the ONE_TIME_SNAPSHOT endpoint (url = f"{BASE_URL}/analyticsReportInstances/{instance_id}/segments), the request does not work as expected.
Additionally, when I try to download daily metrics like sessions, unique devices, and total downloads using the ONGOING report type via Python and JWT-based authentication, the response is incomplete. Out of the 50 app_ids I have, only 7 are returned in the response. The metrics for those apps also appear to be inaccurate when cross-validated against the data shown on the web interface.
I’ve reviewed the documentation extensively but haven’t found a solution to these issues. The documentation does not provide any guidance on why only partial or incorrect data is being returned.
I’d appreciate any insights into:
Why some app_ids and metrics are missing from the API response.
How to ensure that all app_ids and their associated metrics are returned accurately for all dates.
Thank you in advance for your help!