App Store Connect API

RSS for tag

The App Store Connect API helps you automate tasks usually done on the Apple Developer website and App Store Connect.

App Store Connect API Documentation

Post

Replies

Boosts

Views

Activity

App Store Connect API responds with status 403 Forbidden
As other threads have reported, the endpoint “GET /v1/salesReports” responds with a status of 403 (Forbidden). It worked a week ago but no longer works today. Further Information: There is no warning on https://appstoreconnect.apple.com/ after logging in. I have generated API keys with Admin, Developer, and Finance authority, but none worked. It does not reach the request rate limit per hour. Other endpoints "GET /v1/apps" for instance, respond with status 200(work properly). I would appreciate any help or advice. Thank you.
2
0
286
3w
Data gaps on App Store Analytics API reports
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?
1
0
234
2w
Enterprise Developer Device Management API
We currently have an Enterprise Developer account and find it a challenge to manage devices, profiles, and so on in an automated fashion. I am curious to understand if an API interface, similar to App Store Connect API is available - for Enterprise. There is no option in the Enterprise 'Users and Access' tab to manage or create API keys, like there is in a regular Apple Developer Account. An API would greatly simplify much of our processes. We currently use Fastlane Spaceship to manage automated/scripted tasks around this, like adding new devices, adding devices to profiles, and so on. We manage in the order of 70 provisioning profiles, so, it may be appreciated that adding even one device to that many profiles is not something you want do manually via the web interface - you script it - so we use Fastlane. The issue is that Fastlane Spaceship uses a 'workround' that basically emulates a user web session, and so requires re-authentication when user session expires, and also requires re-authentication by 2FA when AppleID session expires each month. This is no good for scripted automation on a server, as user interaction is then required. So, I guess this is a request, or an insight as to whether or not API functionality, via API keys is coming soon to Enterprise, or never coming, or if there is some other mechanism we can use - or do we just stick with fastlane? We have looked at Custom Apps, but don't think that fits our needs, as the apps we build hit internal test systems, which are not publicly accessible, and so not available for App Store review teams, as our understanding is that Custom apps must still pass App Store review and TestFlight review. Thanks.
2
0
297
May ’24
Cannot create ios distribution certificate with visual studio
I registered as a developer with Apple. Since I work alone, I have an individual developer account. Unfortunately, I am unable to create an iOS distribution certificate from Visual Studio (for Windows). The option is grayed out even though my role in App Store Connect is "Admin". Visual Studio also shows me that my user is an admin - yet I don't seem to have rights to create iOS distribution certificates. I can create iOS development certificates without any problems.
1
0
299
May ’24
App Store Connect API randomly returns error "An unexpected error occurred on the server side" or "The request timed out"
I use the App Store Connect API to run many parallel requests to update different parts of a single app. I am randomly getting errors such as An unexpected error occurred on the server side. or The request timed out. Usually when these errors happen, I can simply run the unsuccessful requests one or two more times and then they succeed. Is there an explanation for this? Is this possibly caused by too many parallel requests? What is the maximum suggested number of parallel requests?
0
0
289
May ’24
App Store Connect API - create certificate from CSR
Hi, i am trying to upload certificate signing request (CSR) for Pass Type ID via API, using this endpoint https://api.appstoreconnect.apple.com/v1/certificates. Request body looks like this, with POST method and content type application/json: { "data": { "attributes": { "certificateType": "PASS_TYPE_ID", "csrContent": "LS0tL...S0tLS0K" }, "type": "certificates" } } csrContent is base64 encoded. The response from API is: { "errors" : [ { "id" : "71a...4c9", "status" : "404", "code" : "NOT_FOUND", "title" : "The specified resource does not exist", "detail" : "There is no identifier with ID 'null' on this team." } ] } CSR was created with KeyChain on Mac (as described here: https://developer.apple.com/help/account/create-certificates/create-a-certificate-signing-request), but i can also do it with OpenSSL. First of all, there is no pairing information between Pass Type Identifier and certificate in request. Status 404? I would expect 400. And given detail is totally useless... The documentation is poor for this topic: https://developer.apple.com/documentation/appstoreconnectapi/create_a_certificate. So that brings me to the idea of adding it (Pass Type Identifier) to the CSR content, but where? I am able to read all certificates stored via Developer Account and put them together with private keys... but storing it is pain... Does anyone have an idea?
2
1
724
Sep ’23
I am not able to create certificate for pass via rest api
I am trying to automate PASS\_TYPE\_ID certificate creation via AppleConnect API, I cannot find what parameters I should use to be able to create this type of certificate. When I try to POST this data to https://api.appstoreconnect.apple.com/v1/certificates: {'data': {'attributes': {'certificateType': 'PASS\_TYPE\_ID', 'csrContent': '-----BEGIN CERTIFICATE REQUEST----------END CERTIFICATE REQUEST-----\n'}, 'type': 'certificates'}} I get this error: {'errors': [{'code': 'NOTFOUND', 'detail': "There is no identifier with ID 'null' on this team.", 'id': '5c9f7d3c-ce75-43a4-b3ac-b295a8f146db', 'status': '404', 'title': 'The specified resource does not exist'}]} From OpenAPI spec is not clear what parameters should be used and 'certificateType': 'PASSTYPE_ID' is not covered there. Do you have idea or example how to do it?
5
1
1.9k
Sep ’20
Cannot update Arabic via App Store Connect API
It looks like Arabic is not supported by BetaBuildLocalizationCreateRequest https://developer.apple.com/documentation/appstoreconnectapi/betabuildlocalizationcreaterequest/data/attributes Is there any way to update this localization programmatically? If not, any timeline when it will be available? The goal here is to add "What's New" notes automatically in CI
1
0
303
Apr ’24
How to Manually Release an App Store Approved Version of Your App
Automating the release process. (For policy reason need to use curl cmd, not permitted to use fastlane/etc for this step) Reading the App Store Connect API, I am uncertain what to pass as the "http body" during the POST action. What is AppStoreVersionReleaseRequestCreateRequest I would guess it goes in the "--data-raw" of curl cmd? There doesn't seem to be example snippet. Draft cmd: curl --location --request POST "<appStoreVersionReleaseRequests-api>" --header "Authorization: Bearer ${JWT}" --header 'Content-Type: application/json' --data-raw '{ "key?": "value?" }' REF https://developer.apple.com/documentation/appstoreconnectapi/manually_release_an_app_store_approved_version_of_your_app?changes=latest_major
2
0
378
Apr ’24
App Groups, iCloud Containers, and APNS key creating from App Store Connect API
I've been trying to move my app creation code from fastlane to the App Store Connect API but I'm struggling with the docs. I'm unable to determine how I can create App Groups, iCloud Containers, and APNS keys. Can someone point me towards the docs on how to create and manage these resources? Here's where I've been looking: https://developer.apple.com/documentation/appstoreconnectapi I imagine that I'm not looking for the correct terminology and I would appreciate the guidance to find what I'm looking for. Thanks!!
0
0
269
Apr ’24
Search app by bundleID - PARAMETER_ERROR.ILLEGAL
Trying to get the relevant app (it exists and published) by this endpoint: https://api.appstoreconnect.apple.com/v1/bundleIds/{id}/app Receiving error 404: "errors" : [ { "id" : "ec7b1469-fe54-4ad5-9f2b-f665c31a6358", "status" : "404", "code" : "PATH_ERROR_REALTIONSHIP", "title" : "The URL path is not valid", "detail" : "The relationship 'app' does not exist on resource 'bundleIds'" } ] Doing everything according to documentation. Tried to pass both Bundle ID id and Bundle ID itself. What could be the problem?
1
0
319
Apr ’24
Can't log in to Individual Developer Account on VS 2022 due to unexpected server error
Hello, I'm creating an app in Visual Studio 2022 (Windows) and I'm attempting to go through the steps of porting it to my iPhone. However, for the past two days I've been encountering an error when attempting to log in to my individual developer account using my API key information. The message I'm getting states: "An unexpected error occurred, An unexpected error occurred on the server side. If this issue continues, contact us at https://developer.apple.com/contact/." I've already tried clearing the cache and I've tried connecting on two different networks but nothing has worked. This is incredibly frustrating and I'm failing to find a solution. Is this something I can even fix on my own, or do I just have to wait for Apple to resolve an issue?
0
0
353
Apr ’24
Fixing the 403 Error in App Store Connect API Downloads
Hi to everyone, I've been attempting to automate the download of sales reports from App Store Connect through their API, but I've facing error 403: "id" : "2e8d7856-21f7-4436-9aa3-f43c36913d21", "status" : "403", "code" : "FORBIDDEN_ERROR", "title" : "This request is forbidden for security reasons", "detail" : "The API key in use does not allow this request" Below is the Python script I'm using to execute the API call, and I've confirmed my user role is set to admin: from datetime import datetime, timedelta from time import time, mktime import jwt import requests dt = datetime.now() + timedelta(minutes=19) KEY_ID = "***" ISSUER_ID = "***" headers = { "alg": "ES256", "kid": KEY_ID, "typ": "JWT", } payload = { "iss": ISSUER_ID, "iat": int(time()), "exp": int(mktime(dt.timetuple())), "aud": "appstoreconnect-v1", } with open("AuthKey_76VXCFGVZK.p8", "rb") as fh: # Add your file signing_key = fh.read() gen_jwt = jwt.encode(payload, signing_key, algorithm="ES256", headers=headers) url = 'https://api.appstoreconnect.apple.com/v1/salesReports' params = { 'filter[frequency]': 'YEARLY', 'filter[reportDate]': '2021', 'filter[reportSubType]': 'DETAILED', 'filter[reportType]': 'INSTALLS', 'filter[vendorNumber]': '***' } headers = { 'Authorization': f'Bearer {gen_jwt}' } response = requests.get(url, headers=headers, params=params) if response.status_code == 200: with open('sales_report.csv', 'wb') as f: f.write(response.content) else: print(f'Failed to download sales report: {response.status_code} - {response.text}') I found in the forum some users (similar post) that had my same issue but it seem that there's no way out. So now I'm wondering if I made some mistake in my code. I hope you can help me with this. Thanks in advance.
1
0
419
Apr ’24
Analytics API detailed report missing data
Hello! I'm tasked with implementing the App Store Connect Analytics API report exports and I've noticed some major discrepancies between the Standard and Detailed reports. I need to use the Detailed report specifically because of the breakdown by 'Source Info' which lets us break downloads and revenue down by specific App Referrers. I have exported and processed both Standard and Detailed reports for one of our apps. Standard report downloads totals do match with the App Store Connect Metrics dashboard. However the detailed report totals appear wildly inaccurate. Just as an example, I requested ONE_TIME_SNAPSHOT reports for the same app and there are major differences in the volume of data between standard and detailed. App Store Downloads Standard: 4,331,848 rows across 35 segments. App Store Downloads Detailed: 1,476,971 rows across 18 segments. The total numbers for First downloads and Redownloads are at least 40% lower in the detailed reports as they are in the standard reports/app store connect. Unfortunately the Standard report does not offer the granularity we want and the Detailed report is missing too much data to be useful. Are there no other official way of getting this data?
2
0
524
Apr ’24
How to retrieve the App Icon?
I need to get the app icon from the AppStore Connect API in order to display a list of my apps. However there seems to be no way. I See in the appstoreconnect.apple.com website that the icons are there and available, there is even a function where you can click on it and get the high res version: https://appstoreconnect.apple.com/apps/1504874998/distribution/ios/version/deliverable (this link is of course not available from the outside) I tried builds/{id}/icons which always returns nothing and found an iconAssetToken object in the builds array, but the link is weirdly formatted and leads to nothing. Hope someone can help, I'm fairly new to the API and the usage is quite odd for me so far. Best, Nils
1
1
582
Mar ’24