The Google Play Developer API is a REST-based web service that allows you to perform publishing and app-management tasks. You can use this API to integrate your publishing operations with your release-management process.
Not all developers will need to use these APIs—in most cases you will continue 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 user purchases and subscriptions, you may find this API very useful.
Using the Google Play Developer API, you can automate a variety of app-management tasks, including:
The Google Play Developer API lets you focus on designing and developing your app, while spending less time and effort managing your releases, even as you grow to new markets.
The Google Play Developer API includes two components:
The Google Play Developer Publishing API allows you to automate frequent tasks having to do with app distribution. This provides functions similar to those available to a developer through the Google Play Developer Console, such as:
Those tasks are performed using the edits functionality, which takes a transactional approach to making changes — you bundle several changes into a single draft edit, then commit the changes all at once. (None of the changes take effect until the edit is committed.)
Note: Not all developers will need to use this API. All the functionality provided by the API is also available through the Google Play Developer Console. However, this API lets you integrate your app and listing update process with your existing tools, which will be very useful for some developers. In particular, if you have a large number of APKs to manage, or localized listings in many different locales, you may find this API invaluable.
The API allows you to manage your app's catalog of in-app products and subscriptions. In addition, with the Subscriptions and In-App Purchases API you can quickly retrieve the details of any purchase using a standard GET request. In the request you supply information about the purchase — app package name, purchase or subscription ID, and the purchase token. The server responds with a JSON object describing the associated purchase details, order status, developer payload, and other information.
You can use the Purchase Status API in several ways, such as for reporting and reconciliation of individual orders and for verifying purchases and subscription expirations. You can also use the API to learn about cancelled orders and confirm whether in-app products have been consumed, including whether they were consumed before being cancelled.
Note: The Subscriptions and In-App Purchases API does not use the new, transactional "edits" functionality used by the Publishing API. Methods for the Inappproducts, Purchases.products, and Purchases.subscriptions resources take effect immediately. Each resource's API reference page notes specifically whether the methods for that resource use the "edits" model.
The Purchase Status API is part of the Google Play Developer API v. 2.0, available through the Google Developers Console.
To start making API calls, you’ll set up and manage the Google Play Developer API directly from the Google Play Developer Console. The API can only be managed by the owner of your Google Play Developer account.
To access the API, you'll need to:
For full details, see the Google Play Developer API Getting Started page.
The Google Play Developer Publishing API Edits methods allow you to prepare and 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:
Once all the desired changes have been staged, they are all committed with a single operation.
For full details on staged edits, see the Google Play Developer API Edits page.
Note: The new, transactional "edits" functionality is only used by the Publishing API. Methods for the Subscriptions and In-App Purchases API take effect immediately. Each resource's API reference page notes specifically whether the methods for that resource use the "edits" model.
Access to the Google Play Developer API is regulated to help ensure a high-performance environment for all applications that use it (as described in Quota). While you can request a higher daily quota for your application, we highly recommend that you minimize your access using these techniques:
By following those general guidelines, your implementation will offer the best possible performance for users.
Applications using the Google Play Developer API are limited to an initial courtesy usage quota of 200,000 requests per day (per application). This should provide enough access for publishing activities and normal subscription-validation needs.
If you need to request a higher limit for your application, use the "Request more" link on the Quotas pane of the Google Developers Console.