Method: monetization.subscriptions.batchGet

  • Retrieves details for one or more app subscriptions using their product IDs.

  • Requires providing the app's package name and a list of subscription product IDs.

  • Returns a list of subscriptions corresponding to the provided product IDs, if found.

  • Uses the GET HTTP method and requires the https://www.googleapis.com/auth/androidpublisher authorization scope.

  • Request body should be empty.

Reads one or more subscriptions.

HTTP request

GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions:batchGet

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
packageName

string

Required. The parent app (package name) for which the subscriptions should be retrieved. Must be equal to the packageName field on all the requests.

Query parameters

Parameters
productIds[]

string

Required. A list of up to 100 subscription product IDs to retrieve. All the IDs must be different.

Request body

The request body must be empty.

Response body

Response message for subscriptions.batchGet endpoint.

If successful, the response body contains data with the following structure:

JSON representation
{
  "subscriptions": [
    {
      object (Subscription)
    }
  ]
}
Fields
subscriptions[]

object (Subscription)

The list of requested subscriptions, in the same order as the request.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/androidpublisher