In this document
- Publishing API
- Subscriptions and In-App Purchases API
- Using the API
- Staged Edits
- Using the API Efficiently
- Quota
See also
- Developer API reference
- Google Help Center overview of the Google Play Developer API
The Google Play Developer API is a REST-based web service that allows you to perform publishingand app-management tasks. You can use this API to integrate your publishingoperations with your release-management process.
Not all developers will need to use these APIs—in most cases you willcontinue to manage your apps directly using the Google Play Developer Console.However, if you have a large number of APKs to manage, or have to track userpurchases and subscriptions, you may find this API very useful.
Using the Google Play Developer API, you can automate a variety ofapp-management tasks, including:
- Uploading and releasing new versions of your app
- Editing your app Google Play Store listings, including localized text and graphics
- Managing your in-app product catalog, your products purchase status and your app subscriptions
The Google Play Developer API lets you focus on designing and developing yourapp, while spending less time and effort managing your releases, even as yougrow to new markets.
The Google Play Developer API includes two components:
- The Publishing API lets you upload and publish apps, and perform other publishing-related tasks.
- The Subscriptions and In-App Purchases API lets you manage in-app purchases and subscriptions. (This was previously known as the "Purchase Status API".)
Publishing API
The Google Play Developer Publishing API allows you to automate frequent taskshaving to do with app distribution. This provides functionssimilar to those available to a developer through the Google PlayDeveloper Console, suchas:
- Uploading new versions of an app
- Releasing apps, by assigning APKs to various Tracks (alpha, beta, staged rollout, or production)
- Creating and modifying Google Play Store listings, including localized text and graphics and multi-device screenshots
Those tasks are performed using theeditsfunctionality, which takes a transactional approach to making changes —you bundle several changes into a single draft edit, then commit the changes allat once. (None of the changes take effect until the edit is committed.)
Note: Not all developers will need to use thisAPI. All the functionality provided by the API is also available through theGoogle PlayDeveloper Console. However, this API lets you integrate your app and listingupdate process with your existing tools, which will be very useful for somedevelopers. In particular, if you have a large number of APKs to manage, orlocalized listings in many different locales, you may find this API invaluable.
Subscriptions and In-App Purchases API
The API allows you to manage your app's catalog of in-app products andsubscriptions. In addition, with the Subscriptions and In-App Purchases API youcan quickly retrieve thedetails of any purchase using a standard GET request. In the request you supplyinformation about the purchase — app package name, purchase orsubscription ID, and the purchase token. The server responds with a JSON objectdescribing the associated purchase details, order status, developer payload, andother information.
You can use the Purchase Status API in several ways, such as for reportingand reconciliation of individual orders and for verifying purchases andsubscription expirations. You can also use the API to learn about cancelledorders and confirm whether in-app products have been consumed, includingwhether they were consumed before being cancelled.
Note: The Subscriptions and In-AppPurchases API does not use the new, transactional "edits" functionality used bythe Publishing API. Methods for theInappproducts,Purchases.products,and Purchases.subscriptionsresources take effect immediately. Each resource's API reference page notesspecifically whether the methods for that resource use the "edits"model.
The Purchase Status API is part of the Google Play DeveloperAPI v. 2.0, available through the Google Developers Console.
Using the API
To start making API calls, you’ll set up and manage the Google Play DeveloperAPI directly from the GooglePlay Developer Console. The API can only be managed by the owner of yourGoogle Play Developer account.
To access the API, you'll need to:
- Set up a new or existing API project
- Set up one or more authorized clients, which can be either:
For full details, see the Google Play Developer APIGettingStarted page.
Staged Edits
The Google Play Developer Publishing API Edits methods allow you to prepareand commit changes to your Google Play apps. Once your update is ready to go,you can deploy it with a single operation. The changes you can make include:
- Uploading one or more APKs
- Assigning different APKs to different “tracks”: alpha, beta, staged rollout, and production
- Creating and modifying localized store listings for the app
- Uploading screenshots and other images for the app’s store listings
Once all the desired changes have been staged, they are all committed with asingle operation.
For full details on staged edits, see the Google Play Developer APIEditspage.
Note: The new, transactional "edits"functionality is only used by the PublishingAPI. Methods for the Subscriptions andIn-App Purchases API take effect immediately. Each resource's API referencepage notes specifically whether the methods for that resource use the "edits"model.
Using the API Efficiently
Access to the Google Play Developer API is regulated to help ensure ahigh-performance environment for all applications that use it (as described inQuota). While you canrequest a higher daily quota for your application, we highly recommend that youminimize your access using these techniques:
- Limit the number of app updates — Do not publish alpha or beta updates more frequently than once a day. (Production apps should be updated even less frequently than that.) Every update costs your users time and possibly money. If you update too frequently, users will start ignoring updates, or even uninstall the product. (Of course, if there's a major problem with your app, go ahead and fix it.)
- Query the Purchase Status API for new purchases only — At purchase, your app can pass the purchase token and other details to your backend servers, which can use the Purchase Status API to verify the purchase.
- Cache purchase details on your servers — To the extent possible, cache the purchase details for in-app products and subscriptions on your backend servers. If your app contacts your backend servers at runtime to verify purchase validity, your server can verify the purchase based on the cached details, to minimize use of the Purchase Status API and to provide the fastest possible response (and best experience) for the user.
- Store subscription expiry on your servers — Your servers should use the Purchase Status API to query the expiration date for new subscription tokens, then store the expiration date locally. This allows you to check the status of subscriptions only at or after the expiration (see below).
- Query for subscription status only at expiration — Once your server has retrieved the expiration date of subscription tokens, it should not query the Google Play servers for the subscription status again until the subscription is reaching or has passed the expiration date. Typically, your servers would run a batch query each day to check the status of expiring subscriptions, then update the database. Note that:
- Your servers should not query all subscriptions every day.
- Your servers should never query subscription status dynamically, based on individual requests from your Android application.
By following those general guidelines, your implementation will offer thebest possible performance for users.
Quota
Applications using the Google Play Developer API are limited to aninitial courtesy usage quota of 200,000 requests per day (perapplication). This should provide enough access for publishing activities andnormal subscription-validation needs.
If you need to request a higher limit for your application, use the "Requestmore" link on the Quotaspane of the Google Developers Console.
FAQs
How do I use Google Play Developer API? ›
- Go to the API access page on the Google Play Console.
- Under Service accounts, click Create new service account.
- Follow the instructions to create your service account. ...
- Once you've created the service account on the Google Play Console, click Done.
The Google Play Developer API allows you to perform a number of publishing and app-management tasks. It includes two components: The Subscriptions and In-App Purchases API lets you manage in-app purchases and subscriptions. The Publishing API lets you upload and publish apps, and perform other publishing-related tasks.
Does Google Play store have an API? ›An API for multiple mobile app stores: Android apps on Google Play and iOS apps on Apple iTunes.
Which API is best for Android development? ›- Appcelerator. Appcelerator is a highly popular and powerful back-end- API suitable for both iOs, and Android mobile applications. ...
- Kinvey. ...
- Google Maps. ...
- Google Analytics. ...
- Weather App API. ...
- Firebase. ...
- Gmail API. ...
- Foursquare API.
Click the role field, select Project => Owner (or any role), and click continue. Leave the other fields blank, and click Create Key. You land back on the API Access page of the Google Play Console where you can create a key to your new service account. Bitrise will use the key to authenticate as the service account.
Can Android have multiple developer accounts? ›You can have multiple developer accounts. If one account get banned Google will try to find all your other accounts and they will be banned too..
How do I get Google Play JSON? ›Click the Create Service Account button
Choose Project > Owner from the Role drop-down menu, Check the “Furnish a new private key” option and select JSON as Key type. Click Create and you will be prompted to save the JSON file.
- Step 0: Download and Install Google Play Scraper Package. pip install google-play-scraper.
- Step 1: Import required packages. ...
- Step 2: Find the App Id in Google Play Store. ...
- Step 3: Scrape the Reviews. ...
- Step 4: Put the Reviews into Pandas DataFrame.
- Step 1: Create a Google Developer account.
- Step 2: Add a Merchant Account.
- Step 3: Prepare the Documents.
- Step 4: Study Google Developer Policies.
- Step 5: Technical Requirements.
- Step 6: Creating the App on the Google Console.
- Step 7: Store Listing.
Android 11 (API level 30)
Is there any official API to get app details from the Play Store? ›
Try this google official api: github.com/googlesamples/android-play-publisher-api/tree/master/…
How do I use Google API Search Engine? ›- Go to Google's developers console, and sign-in;
- Go to “Dashboard” and click “Enable APIs and Services” ;
- Search for “Google Search Console API” and enable the API;
- Go to the “credential” tab, click on “create credential” and select “OAuth Client ID”;
Android exposes three Android API level project settings: Target Framework – Specifies which framework to use in building your application.
What API is used in Android? ›...
What is API Level?
Platform Version | API Level |
---|---|
Android 1.0 | 1 |
API is the acronym for Application Programming Interface, which is a software intermediary that allows two applications to talk to each other. Each time you use an app like Facebook, send an instant message, or check the weather on your phone, you're using an API.
Is Google API free? ›Some Google APIs charge for usage, and you need to enable billing before you can start using these APIs. Enabling billing for the APIs that your projects use also has other advantages: Some APIs allow free usage up to a courtesy usage limit, and in some cases this free limit is increased when you enable billing.
Is Google API key free? ›Obtaining a Google Maps API key
Google lets you make 1000 API requests per key for free.
API Keys is currently free of charge. If you are using Cloud Endpoints to manage your API, you might incur charges at high traffic volumes. See the Endpoints pricing and quotas page for more information. 240 API calls per minute.
How much is a google play developer account? ›What is a Google Developer Account? Google Developer Account costs $25 and allows users to publish apps on the Google Play Store only. Users need it if they earn money from Android Apps. Google Developer Account is essential to publish an app on Google Play Store.
How many google play Developer accounts can I have? ›Can one person have multiple developer accounts on the Google Play Store? As per the Google Play Store policy, you can only register one Google play developer account per Gmail account, so for having multiple developer accounts on the Google Play Store, you need separate Gmail accounts.
How do I get a free Google developer account? ›
- Step 1: Sign up for a Google Play Developer account.
- Step 2: Accept the Developer Distribution Agreement.
- Step 3: Pay registration fee.
- Step 4: Complete your account details.
Go to Google API Console. Go to the Credentials page. Click the Download JSON button to download the client secret JSON file and securely store it in a local folder. This JSON file can then be used by Google Drive components and metadata wizard to access Google Drive via the OAuth method Installed Application (JSON) .
How do I download credentials JSON for Google API? ›- Open the Google Cloud console.
- At the top-left, click Menu menu > IAM & Admin > Service Accounts.
- Select your service account.
- Click Keys > Add keys > Create new key.
- Select JSON, then click Create. ...
- Click Close.
Open a Text editor like Notepad, Visual Studio Code, Sublime, or your favorite one. Copy and Paste below JSON data in Text Editor or create your own base on the What is JSON article. Once file data are validated, save the file with the extension of . json, and now you know how to create the Valid JSON document.
How do I extract data from an app? ›There are many steps to extract data of your android app (Debuggable): Use emulator/rooted device using which you can view the files inside data folder of your app. For Non Rooted device, there are bunch of adb shell commands you need to execute and with which you will be extract a single data file/directory.
How do you scrape data from a mobile app? ›- You must know from where the data that your app consumes, is coming. ...
- Get the APK File and Evaluate it with APK-MITM. ...
- Setting Up the Proxy. ...
- Setting Your AVD to Use the Proxy. ...
- Installing the mitmproxy CA certificate on the AVD. ...
- Installing the App and view the traffic.
- Login to Google Maps reviews scraper.
- Insert the link to Google Maps place that you want to extract reviews from.
- Select language and check other advanced parameters.
- Click “Scrape reviews”.
1- Can creating an app make you rich? With app concepts, several successful businesses become billionaires. The Android and iOS marketplaces are rapidly expanding. The mobile app business was worth $53 billion in 2022, and it will be worth $6.3 trillion in 2021, according to TechCrunch.
How do Android developers make money? ›- Create a quality product. ...
- Have a freemium strategy. ...
- Get downloads; increase your user base. ...
- Convert free users to paid; generate revenue.
Even though other alternative Stores exist, Google Play is the android app store, the main platform to distribute an Android app. In order to publish your app on the Google Play Store, it is mandatory to create a Google Developer Account. The registration fee is a one-time payment of $25.
What is API 31 in Android? ›
Companion Device Manager profiles
Partner apps on Android 12 (API level 31) and higher can use companion device profiles when connecting to a watch.
Android api level 19 means the android os version (kitkat). It contains the standard android packages(from Android Open Source Projects). But the google api 19 is the android api 19+ google api's like google settings and other packages provided by google.
What is hidden API? ›Android Hidden APIs are classes, methods and resources that Google hides from you because of stability reason. These features are hidden because they may be changed on next API version. The internal APIs are located in package com. android. internal and available in the framework.
How can I get the exact downloads and statistics from Google Play? ›...
Statistics page
- Open Play Console and go to the Statistics page.
- To view your app's absolute performance, remain in the App statistics tab (the default tab). ...
- At the top-right of your screen, select the date range you want to view.
Data collected and shared automatically
Collects information related to the performance of your app and the SDK, including crash logs, app launch time, hang rate, and energy usage. Collects Android advertising (ad) ID, app set ID, and, if applicable, other identifiers related to signed-in accounts on the device.
The Google Analytics Reporting API v4 provides programmatic methods to access report data in Google Analytics (Universal Analytics properties only). With the Google Analytics Reporting API, you can: Build custom dashboards to display Google Analytics data. Automate complex reporting tasks to save time.
What is a REST API example? ›For example, a REST API would use a GET request to retrieve a record, a POST request to create one, a PUT request to update a record, and a DELETE request to delete one. All HTTP methods can be used in API calls. A well-designed REST API is similar to a website running in a web browser with built-in HTTP functionality.
Is SERP API free? ›Start using the API — It's free! Our powerful cloud infrastructure is built to withstand high volume API requests without the need of a queue. Tailor your automated search queries based on a series of options, including location, language, device, and more.
Where is the Google API? ›Go to the Google Maps Platform > Credentials page. On the Credentials page, click Create credentials > API key. The API key created dialog displays your newly created API key.
What are the 4 types of API? ›APIs are broadly accepted and used in web applications. There are four principal types of API commonly used in web-based applications: public, partner, private and composite.
What is Google APIs used for? ›
Google Cloud APIs are programmatic interfaces to Google Cloud Platform services. They are a key part of Google Cloud Platform, allowing you to easily add the power of everything from computing to networking to storage to machine-learning-based data analysis to your applications.
What are the three API version of Android? ›This number is increased with each version. Android 1.6 is API Level 4, Android 2.0 is API Level 5, Android 2.0.
How do I scrape Google Play? ›- Step 0: Download and Install Google Play Scraper Package. pip install google-play-scraper.
- Step 1: Import required packages. ...
- Step 2: Find the App Id in Google Play Store. ...
- Step 3: Scrape the Reviews. ...
- Step 4: Put the Reviews into Pandas DataFrame.
Try this google official api: github.com/googlesamples/android-play-publisher-api/tree/master/…
How do I get Google Play JSON? ›Click the Create Service Account button
Choose Project > Owner from the Role drop-down menu, Check the “Furnish a new private key” option and select JSON as Key type. Click Create and you will be prompted to save the JSON file.
- Open Play Console.
- Select All apps > Create app.
- Select a default language and add the name of your app as you want it to appear on Google Play. ...
- Specify whether your application is an app or a game. ...
- Specify whether your application is free or paid.