api.appstoreconnect.apple.com/v1/salesReports endpoint returns error stating "An unexpected error occurred on the server side. If this issue continues, contact us at https://developer.apple.com/contact/." for the past two days.
Analytics & Reporting
RSS for tagMeasure your App Store performance and get unique insights with data you won’t find anywhere else using App Analytics in App Store Connect.
Posts under Analytics & Reporting tag
75 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
Previously created a one time snapshot report that was later deleted. Trying to recreate it but keeping getting a 409. Been already a week since it was deleted.
Error message
{
"errors" : [ {
"id" : "b0d8d738-1744-463d-bdcf-a48fbfa5d715",
"status" : "409",
"code" : "STATE_ERROR",
"title" : "The request cannot be fulfilled because of the state of another resource.",
"detail" : "You already have such an entity"
} ]
}
Reports request only returns the ONGOING reports link no ONE_TIME_SNAPSHOT . Wonder if it takes time although unlikely or might it be a cache or similar causing the problem.
I am attempting to download subscriber reports for my app. I'm using the following URL with vendorNumber redacted: https://api.appstoreconnect.apple.com/v1/salesReports?filter[frequency]=DAILY&filter[reportSubType]=DETAILED&filter[reportType]=SUBSCRIBER&filter[reportDate]=2024-04-04&filter[vendorNumber]=xxxxxxxx&filter[version]=1_3
I am getting the following response:
"id": "92183ac5-7881-436c-ac66-5d89673c5070",
"status": "400",
"code": "PARAMETER_ERROR.INVALID",
"title": "A parameter has an invalid value",
"detail": "Invalid vendor number specified. Try again.",
"source": {
"parameter": "filter[vendorNumber]"
}
However when I use the same vendor number for the sales summary report: https://api.appstoreconnect.apple.com/v1/salesReports?filter[frequency]=MONTHLY&filter[reportDate]=2023-09&filter[reportSubType]=SUMMARY&filter[reportType]=SALES&filter[vendorNumber]=xxxxxxxx&filter[version]=1_0
I get a proper response. I believe I should be getting a 404 on this response, but am not. This issue can be tracked back to 2019, can we please get some detail about this response?
I'm trying following endpoint to get instances of a report, https://api.appstoreconnect.apple.com/v1/analyticsReports/{id}/instances
but getting an empty response:
{'data': [], 'links': {'self': 'https://api.appstoreconnect.apple.com/v1/analyticsReports/r8-4433f324-ba58-44d0-8b7f-f8976ef36646/instances'}, 'meta': {'paging': {'total': 0, 'limit': 50}}}
I'm accessing "App Sessions Standard" report and correctly passing the instance id to get instances of this report. Also made sure that the App I'm accessing have App sessions data in the console.
code.txt
This is the order of api requests I implemented:
'https://api.appstoreconnect.apple.com/v1/analyticsReportRequests'
'https://api.appstoreconnect.apple.com/v1/analyticsReportRequests/{report_id}/reports'
'https://api.appstoreconnect.apple.com/v1/analyticsReports/{report_id}/instances'
Source code is provided in the attached file.
Would be grateful if someone can help resolve this issue.
hey guyss…. Im currently using ios18 developer beta 2 on my iphoen 12…Idk if u guys noticed it or not.. but when i turn off the toggle for “Help improve apple search” (settings->search->help improve apple search)
it again turns on without my knowledge seconds aftr i close the page. Ive tried restarting my iphone & many more.. nothing seems to work.. im kindoff a more private guy i usually turn off apple analytics.. usage diagnostics and i always make sure data is stored only on my local storage.. and this bug kinda piss me off 😕.
i’ve given u the link below to check it out.
Peace.
https://youtube.com/shorts/YfVDCA-Dfrs?si=qLcl0mWL-Jm9iJFz
We are pulling data from the salesReports endpoint, specifically focusing on the Subscriber, Subscription_Event, and Subscription report types. Our goal is to perform internal analysis on our subscriptions, such as comparing renewals to new subscriptions.
However, we have observed that the data quality is not as high as we would expect from Apple. While some insights can be gleaned with a degree of uncertainty, our biggest concern is the discrepancy between the data obtained from the API or manually downloaded from the portal (https://appstoreconnect.apple.com/trends/reports) and the data displayed in the Portal visualizations (https://appstoreconnect.apple.com/trends/events). This discrepancy makes cross-checking difficult and lowers our confidence in the data’s accuracy.
Is anyone else experiencing similar issues, or has anyone managed to obtain reliable data for their app(s)?
When attempting to download the reports at GET https://api.appstoreconnect.apple.com/v1/salesReports we get an 500 Internal Server Error.
We didn't change the code for a long time and it worked fine before. Credentials are also correct.
I am following the Downloading Analytics Reports guide which consists of five steps:
request the ONGOING report generation for the app once
list all analytics report requests for the app
list all analytics reports based on the analytics report request id
:x: list all analytics report instances based on the analytics report id
list all segments of the analytics report instance to get the download url
I can only complete the third step which returns a list of all available reports.
However when I continue with step four, the request for the analytics report instances returns with a response code 200 but the data array is always empty:
I am using the Home Screen Widget Installs report but this is also happening for other reports
Also changing or omitting the filter doesn't change anything
{
"data": [],
"links": {
"self": "https://api.appstoreconnect.apple.com/v1/analyticsReports/{reportId}/instances?filter%5Bgranularity%5D=DAILY"
},
"meta": {
"paging": {
"total": 0,
"limit": 50
}
}
}
What could be the reason that the data array is empty and how can I fix it because there is no error message?
Is it possible, with the new analytics API, to get analytics (for example, App Sessions) for a specific date, such as 2 months ago?
I hope I'm wrong on this one, but as far as I understand watchOS is not able to collect/ capture Mach Exceptions and Signals. Which is the majority of crashes happening on watchOS.
I'm looking for a proper way to automatically receive crash reports from a watchOS app.
If this truly is a system limitation there's no way any tool can workaround it.
Does anyone know of a workaround or tool to automatically collect crashes on watchOS?
(I'm aware that it's possible to do so manually)
Hey all,
It's been now a few weeks since we started to help clients connect to their App Store Analytics API.
I'm starting to notice that very often we'll see things like:
Small data gaps. Eg. I have data on June 1, no data on June 2-4, and then data from June 5 to now
Big data gaps. Eg. I'd have data on Jan 2024, but not on Feb-Mar 2024, then there's data again from April 2024 onwards.
The actual files from Apple are like that we're not doing any treatments whatsoever. That's happening on both ONGOING and ONE_TIME_SNAPSHOT
I also opened a Customer Support case and sent the files over 10 days ago, but no definitive answer so far.
Are you also seeing gaps like this on your data? Any tips/recommendations?
Hello everyone,
I need to get the number of downloads of my application. I'm trying to use the Analytics Reports feature to do so.
It works well with the ONGOING access_type, but when I try to request a ONE_TIME_SNAPSHOT I get a 409 with the following response : {'errors': [{'id': 'XXXXX', 'status': '409', 'code': 'STATE_ERROR', 'title': 'The request cannot be fulfilled because of the state of another resource.', 'detail': 'You already have such an entity'}]}
But when I list all the analytics report requests for this application it returns no entities.
Anyone has a solution ?
I've been using the App Store Analytics API for a few weeks now with no problem, but yesterday I started to get no data from the ONE_TIME_SNAPSHOT.
It's simply returning empty, although we haven't changed anything on the code (already checked 100 times).
Anyone here with the same problem?
We have created a simple product page optimization test with two variants. Although we've been having thousands of first-time downloads during the test period when we click on "View Analytics" we are simply brought to the page listing Custom Product Pages the page optimization test is not even listed on that page. Has anyone ever experienced this before?
Hello,
I'm trying to simulate miscellaneous crashes to test my handlers. Things works as expected with NSException and C++ exceptions, however I cannot find a way to trig a C signal.
I tried with this code:
NSArray *runningApplications = [NSRunningApplication runningApplicationsWithBundleIdentifier:@"com.myCompany.myApp"];
NSRunningApplication *app = runningApplications[0];
UInt32 pid = [app processIdentifier];
kill(pid, SIGABRT);
It is caught by my handler, but it doesn't crash the app (although it's detached from the debugger), I can even continue using the app normally.
I'm wondering if this could be related to something wrong in my handler (especially on how it ends):
signal(sig, SIG_IGN);
dispatch_source_t source = dispatch_source_create(DISPATCH_SOURCE_TYPE_SIGNAL, sig, 0, dispatch_get_global_queue(0, 0));
dispatch_source_set_event_handler(source, ^{
// I write some logs on disk here, then uninstall the handlers associated with this or that signal:
for(int i=0; i<SignalSourceCount; i++) {
if (_signalSources[i]) {
dispatch_source_cancel(_signalSources[i]);
_signalSources[i] = NULL;
}
}
});
dispatch_resume(source);
I've seen some examples finishing rather with exit() or abort(). Abort crashes the app as expected, however the Crash Report produced by Apple then focuses on the handler instead of the code triggering the signal...
Any help appreciated, thanks
Hello, does anybody know how Apple anonymizes and aggregates the analytics provided to us devs?
I'm interested in understanding the extent of their privacy safeguards. Do they employ federated analytics, or do they use a less effective method?
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!
Hi ,
Im trying to understand how to get the App Store Discovery and Engagement report from the API as mentioned here:
https://developer.apple.com/documentation/analytics-reports/app-store-discovery-and-engagement
this documentation shows i can get data on users engagement in my app but i cant find the documentation on how the api request needs to look like ..
did someone managed to get this data ?
So I haven't recorded a purchase in 7 hours via RevenueCat which is unusual, and I was curious as to what was going on... so I open my App Store Connect tonight and I see the following:
$12.7 MILLION in proceeds over the last 4 hours (would usually expect maybe $200 at most at this time of day on a Thursday at 1AM EST?).
1 DOWNLOAD in the last 4 hours (would usually expect maybe 60+ since I'm running Apple Search Ads as well).
App Store seems to function fine and downloading my apps works fine.
I'm obviously assuming there is a bug here in the reporting tonight. My concern is that my actual purchases aren't coming through and being counted properly within RevenueCat and Apple. Or that something is preventing purchases currently.
Anyone else seeing this tonight?
Hello,
Is it possible to know which iPhone model has the app installed ?
In the AppStoreConnect pages, i can see the number of app installation filtered by devices ( iPhone or iPad... ), but i can't find a place or a filter telling me details on which iphone model or iPad model the app is intallled ?
Thanks,
Eddy.