Method: inappproducts.batchGet
Stay organized with collections
Save and categorize content based on your preferences.
Reads multiple in-app products, which can be managed products or subscriptions.
This method should not be used to retrieve subscriptions. See this article for more information.
HTTP request
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts:batchGet
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
packageName |
string
Package name of the app.
|
Query parameters
Parameters |
sku[] |
string
Unique identifier for the in-app products.
|
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 |
{
"inappproduct": [
{
object (InAppProduct )
}
]
} |
Fields |
inappproduct[] |
object (InAppProduct )
The list of requested in-app products, in the same order as the request.
|
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidpublisher
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-17 UTC."],[[["Reads multiple in-app products, including managed products and subscriptions, but should not be used to retrieve subscriptions."],["Sends an HTTP GET request to the specified endpoint with package name and product identifiers as parameters."],["Requires an empty request body and returns a response containing a list of in-app products."],["The response is structured in JSON format with an array of `inappproduct` objects, each representing an in-app product."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This outlines how to retrieve multiple in-app products (excluding subscriptions) via a `GET` request to the Android Publisher API. The request URL requires the app's package name as a path parameter and a list of unique product identifiers as query parameters (sku[]). The request body must be empty. A successful response returns a JSON object containing a list of in-app products, ordered as requested, with details provided within an InAppProduct object. This process requires specific OAuth authorization scopes to be granted.\n"]]