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.

Posts under App Store Connect API tag

108 Posts

Post

Replies

Boosts

Views

Activity

Get Total App Installs
I've been working on retrieving total app installs via the Apple Connect API using Python. However, I've noticed a discrepancy between the data obtained manually and the API results. When I download the Sales & Trends report manually with these settings: Sales & Trends, Monthly, By Territory, Total Installs …the results don't match those from the API when I use the following parameters python report_date = '2024-09' params = { "filter[frequency]": "MONTHLY", "filter[reportDate]": report_date, # Date for the report "filter[reportSubType]": "SUMMARY", "filter[reportType]": "SALES", "filter[vendorNumber]": vendor_number } I’m seeing a clear mismatch in units between the manual download and the API output Note: This report was generated on 2024-11-05
1
0
670
Nov ’24
Comprehensive Web Scraper for App Store Connect Dashboard Data
Hello All, New member here so hopefully my post adheres to Dev Forum standards. My Platform team and I are attempting to gather a bunch of our customer/service data via an automated process where we code a script to obtain data from the App Store Connect dashboard of our app. We need to web scrape most likely with the App-Store-Scraper library. This reason for this is the following challenge we have run into previously while utilizing the App Store Connect API: When we have attempted to fetch data we have seen that the attributes we are looking for cannot be obtained with the query parameters available. Certain reports can only be obtained for DAILY query param values; certain information, such as "File Size" from the "State" report, and "revenue net" of Apple's commissions on sales from the "Proceeds" report within the App Store Connect dashboard, are not able to be obtained via the API, to my knowledge. Of course it can be obtained manually by downloading it through the dashboard, but we want to automate this process. My question is with regards to web scraping: Will we be able to obtain all the information we need by web scraping the "Event, State, Proceeds" reports that one can find by navigating from the left-hand-side tabs within the App Store Connect dashboard? This information contains PII, but since we have rights to our customer data we should be able to maintain confidentiality by following industry standards. Please let me know if anyone has any experience with this kind of task before and I look forward to hearing from you.
1
0
771
Nov ’24
Accessing Historical Metrics Data with App Store Connect API?
Hi everyone, I’m working with the App Store Connect API to analyze my app's launch time performance, but I’d like to retrieve historical data spanning multiple dates. However, I haven’t found parameters like startDate or endDate in the API documentation. Is there any way to retrieve data for past dates, or is the API limited to recent data only? If anyone has experience with this or any workaround, I’d love to hear about it. Thank you!
0
0
574
Nov ’24
How to Get App Store Connect Metrics by iPhone Model?
Hi Folks, I'm currently using the App Store Connect API's perfPowerMetrics endpoint to pull launch time metrics for my app, but I want to break down the data by specific iPhone models (e.g., iPhone 13 Pro, iPhone 12, etc.). I’ve tried using filter[deviceType] set to all_iphones, which works, but it aggregates data for all iPhone models. Does anyone know the specific identifiers for individual iPhone models, or if there's a way to retrieve metrics by specific iPhone model segments? TIA
2
0
796
Nov ’24
About the past retrieval range of Look Up Order ID API
I would like to know if there is a limit to past information in the Look Up Order ID API. https://developer.apple.com/documentation/appstoreserverapi/look_up_order_id I understand that you can also get information about users who deleted or reinstalled the app from the content of the document. On the other hand, are there any temporal limits to the past? For example, can the above API make requests for purchases made one year ago, five years ago, or ten years ago?
1
0
424
Oct ’24
Problem When Create a Response to a Customer Review on Apple Store Connect API
Hi, I'm trying to create a response for a review through the Apple Store Connect API, but I receive the following error message when sending the body following this documentation: https://developer.apple.com/documentation/appstoreconnectapi/create_or_update_a_response_to_a_customer_review cURL Request --header 'Authorization: {{MY_BEARER_TOKEN}}' \ --header 'Content-Type: application/json' \ --data '{ "attributes": { "responseBody": "{{MY_RESPONSE}}" }, "relationships": { "review": { "data": { "id": "{{REVIEW_ID}}", "type": "customerReviews" } } }, "type": "customerReviewResponses" }' *I changed the cURL to not display real data, but they are filled in my request. Error message: "errors": [ { "id": "5575b9ef-9005-4db2-9a89-123b1aaa9355", "status": "422", "code": "ENTITY_UNPROCESSABLE", "title": "The request entity is not a valid request document object", "detail": "Unexpected or invalid value at 'attributes'.", "meta": { "position": { "row": 2, "column": 20 } } } ] } Can you help me put together the body correctly if that's the case of the error?
2
0
870
Oct ’24
Error on Post request for Create Achievement Localization
Hi, I am using Node.js for updating my game achievements. Also not sure what is the recommended programming language to use for this. I will want to add Achievement Localization to my existing achievement. I was following the document here: https://developer.apple.com/documentation/appstoreconnectapi/post-v1-gamecenterachievementlocalizations const postData = { type: "gameCenterAchievementLocalizations", attributes: { locale: "it-IT", name: "XXXXXXXXXXX", afterEarnedDescription: "XXXXXXXXXXXXXX", beforeEarnedDescription: "XXXXXXXXXXXXXXXXXXXXXXXX" }, relationships: { gameCenterAchievement: { data: { type: "gameCenterAchievement", id: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" } } } }; let axiosConfig = { headers:{ Authorization: `Bearer ${token}` } }; const response = axios.post('https://api.appstoreconnect.apple.com/v1/gameCenterAchievementLocalizations', postData, axiosConfig); After I run the above code, it throw me an error 422. status: '422', code: 'ENTITY_UNPROCESSABLE', title: 'The request entity is not a valid request document object', detail: "Unexpected or invalid value at 'type'.", meta: { position: [Object] } Any idea what went wrong with my code? Thank you
0
0
549
Oct ’24