> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stophy.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Google play app API

> Get an app's details from Google Play. Call the Google play app API and get JSON back in one request. 1 credit per call. Failed calls cost nothing.

Returns an app's details from Google Play. The app is identified by its URL or ID.

## Request

Exactly one of `appUrl` or `appId` is required. A request that sets both, or none, fails with `invalidRequest`.

<CodeGroup>
  ```typescript TypeScript icon="https://mintlify.s3.us-west-1.amazonaws.com/sirathic/images/icons/typescript.svg" theme={null} theme={null}
  import { Stophy } from "stophy";

  const stophy = new Stophy({ apiKey: process.env.STOPHY_API_KEY });
  const result = await stophy.google.play.app({ appId: "com.mojang.minecraftpe", country: "de", language: "de" });
  console.log(result.data);
  ```

  ```python Python icon="python" theme={null} theme={null}
  from stophy import Stophy

  stophy = Stophy()  # reads STOPHY_API_KEY
  result = stophy.google.play.app(app_id="com.mojang.minecraftpe", country="de", language="de")
  print(result["data"])
  ```

  ```bash cURL icon="terminal" theme={null} theme={null}
  curl -X POST https://api.stophy.dev/v1/google/play/app \
    -H "Authorization: Bearer $STOPHY_API_KEY" \
    -H "content-type: application/json" \
    -d '{"appId":"com.mojang.minecraftpe","country":"de","language":"de"}'
  ```

  ```bash CLI icon="square-terminal" theme={null} theme={null}
  stophy google play app --appId com.mojang.minecraftpe --country de --language de
  ```
</CodeGroup>

## Response

If successful, the response body contains the standard envelope. `data` contains the app's description, developer, installs, ratings, price and version.

The following example is a real response, truncated: each list shows one item and long strings are cut.

```json theme={null}
{
  "success": true,
  "data": {
    "appId": "com.mojang.minecraftpe",
    "appUrl": "https://play.google.com/store/apps/details?id=com.mojang.minecraftpe",
    "name": "Minecraft",
    "summary": "In Minecraft geht es um das Bauen mit Blöcken und das Erleben von Abenteuern!",
    "description": "ERSCHAFFEN\nBaue alles, was du dir vorstellen kannst, in deiner eigenen unendlichen Welt, die in jedem Spieldurchgang…",
    "developerId": "4772240228547998649",
    "developerName": "Mojang",
    "developerWebsite": "http://help.mojang.com",
    "developerAddress": "1 Microsoft Way\nRedmond, WA 98052\nUnited States",
    "privacyPolicyUrl": "http://go.microsoft.com/fwlink/?LinkId=521839",
    "genreId": "GAME_ARCADE",
    "genre": "Arcade",
    "contentRating": "USK ab 6 Jahren",
    "installsText": "50.000.000+",
    "installsMin": 50000000,
    "installsExact": 98343356,
    "rating": 4.37416,
    "ratings": 5852261,
    "reviews": 138916,
    "ratingsOne": 602037,
    "ratingsTwo": 137295,
    "ratingsThree": 202138,
    "ratingsFour": 438142,
    "ratingsFive": 4472586,
    "price": 6.99,
    "priceCurrency": "EUR",
    "hasInAppPurchases": true,
    "inAppPriceText": "0,50 €–49,99 € bei Abrechnung über Google Play",
    "hasAds": false,
    "version": "1.26.52.3",
    "recentChanges": "Neuigkeiten in 26.52\nVerschiedene Fehlerbehebungen",
    "releasedAt": "2011-08-16T06:17:21.000Z",
    "updatedAt": "2026-09-25T17:26:28.000Z",
    "iconUrl": "https://play-lh.googleusercontent.com/tI4StRSPVhpGJH5R013naszLUawOjao1ya8FvyaNO7XY_cJFHFqo1EFaEJv_7zz3rRJ5lEpLiw14ZqQLC…",
    "bannerUrl": "https://play-lh.googleusercontent.com/S_Z7YSNVWWd3BNh3AwV0iVv0hNqJ8zvn-HwLTlYqVLU4uxSohpwKpIa-EmwwwoxOlSw8voqu5CsxQGboj…",
    "screenshotUrls": ["https://play-lh.googleusercontent.com/LvTKBBIfy3RLmCk_EpXDnYMP3NV3MaAOQWnQ1Feuyym2QcmX3sooTLRgkP5KvNp-zGaUyQZ1t11T9YaDe…"]
  },
  "creditsUsed": 1,
  "requestId": "2fe9dbad-fc48-4890-9751-0b24b596035b"
}
```

| Field | Type | Description |
| - | - | - |
| `rating` | number | The average star rating, on a scale of 1 to 5. |
| `reviews` | integer | The number of reviews the rating is based on. |
| `ratings` | integer | The number of ratings the app has received. |

For every field, see the response schema on this page.

## Optional parameters

| Parameter | Type | Description |
| - | - | - |
| `country` | string | The country to query, as a two-letter ISO 3166-1 code such as `us`. If unset, defaults to `us`. |
| `language` | string | The language of the results, as a BCP 47 tag such as `en` or `pt-BR`. If unset, defaults to `en`. |

## Billing

Each successful request consumes 1 credit, regardless of the number of items returned. Requests that fail, or that return no items, are not billed.

## Pagination

This method is not paginated. A single request returns the complete result.

## Related methods

* [Google Play reviews](/api-reference/endpoint/google-play-reviews): Accepts `appUrl`. Returns an app's Google Play reviews.


## OpenAPI

````yaml api-reference/openapi.json POST /v1/google/play/app
openapi: 3.1.0
info:
  title: Stophy API
  version: '1'
  description: >-
    Every endpoint is a POST that takes its input as a JSON object body. Unknown
    fields are rejected with 400.


    Responses leave out empty values: null, empty strings, empty objects and
    empty nested lists are not sent.


    x-credits is what one call costs. Every call costs the same, whatever it
    returns, unless an operation's description says it costs per 10 results, or
    per second of audio. Then x-credits is the lowest price and x-credits-max
    the most one call can cost. Where an operation takes limit, send it to
    return fewer results and pay for fewer.


    When a response has a cursor, send it back unchanged with the same input to
    get the next page. When it has a page, send the next page number.
servers:
  - url: https://api.stophy.dev
security:
  - apiKey: []
paths:
  /v1/google/play/app:
    post:
      summary: Get an app's details from Google Play
      description: Costs 1 credit per call.
      operationId: googlePlayApp
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                appUrl:
                  type: string
                  description: >-
                    Link to the Google Play app, like
                    https://play.google.com/store/apps/details?id=com.spotify.music.
                    Send this or appId.
                appId:
                  type: string
                  description: >-
                    Google Play app package name, like com.spotify.music. Send
                    this or appUrl.
                country:
                  default: us
                  type: string
                  pattern: ^[A-Za-z]{2}$
                  description: >-
                    ISO 3166-1 alpha-2 country code, e.g. us. Any case is
                    accepted.
                language:
                  default: en
                  type: string
                  pattern: ^[A-Za-z]{2,3}(?:[-_][A-Za-z0-9]{2,4})?$
                  description: BCP 47 language tag, e.g. en or pt-BR. Any case is accepted.
              sendOne:
                - appUrl
                - appId
              additionalProperties: false
            example:
              appId: com.mojang.minecraftpe
              country: de
              language: de
      responses:
        '200':
          description: The data, and the credits this call used.
          headers:
            X-Request-ID:
              $ref: '#/components/headers/RequestId'
            x-credits-used:
              $ref: '#/components/headers/CreditsUsed'
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            x-cache:
              $ref: '#/components/headers/Cache'
            x-cache-age:
              $ref: '#/components/headers/CacheAge'
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - data
                  - creditsUsed
                  - requestId
                properties:
                  success:
                    const: true
                  data:
                    type: object
                    additionalProperties: false
                    properties:
                      appId:
                        type: string
                      appUrl:
                        type: string
                        format: uri
                      name:
                        type: string
                      summary:
                        type: string
                      description:
                        type: string
                      developerId:
                        type: string
                      developerName:
                        type: string
                      developerEmail:
                        type: string
                      developerWebsite:
                        type: string
                        format: uri
                      developerAddress:
                        type: string
                      privacyPolicyUrl:
                        type: string
                        format: uri
                      genreId:
                        type: string
                      genre:
                        type: string
                      contentRating:
                        type: string
                      installsText:
                        type: string
                      installsMin:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      installsExact:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      rating:
                        type: number
                      ratings:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      reviews:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      ratingsOne:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      ratingsTwo:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      ratingsThree:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      ratingsFour:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      ratingsFive:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      price:
                        type: number
                      priceCurrency:
                        type: string
                      hasInAppPurchases:
                        type: boolean
                      inAppPriceText:
                        type: string
                      hasAds:
                        type: boolean
                      version:
                        type: string
                      recentChanges:
                        type: string
                      releasedAt:
                        type: string
                        format: date-time
                        pattern: >-
                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                      updatedAt:
                        type: string
                        format: date-time
                        pattern: >-
                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                      iconUrl:
                        type: string
                        format: uri
                      bannerUrl:
                        type: string
                        format: uri
                      screenshotUrls:
                        type: array
                        items:
                          type: string
                          format: uri
                    required:
                      - appUrl
                      - hasInAppPurchases
                      - hasAds
                      - screenshotUrls
                  creditsUsed:
                    type: integer
                  requestId:
                    type: string
        4XX:
          $ref: '#/components/responses/Error'
        5XX:
          $ref: '#/components/responses/Error'
components:
  headers:
    RequestId:
      description: The request id. Quote it when you report a problem.
      schema:
        type: string
    CreditsUsed:
      description: Credits this call used.
      schema:
        type: integer
    RateLimitLimit:
      description: Requests allowed in the current window.
      schema:
        type: integer
    RateLimitRemaining:
      description: Requests left in the current window.
      schema:
        type: integer
    RateLimitReset:
      description: Unix time in seconds when the current window resets.
      schema:
        type: integer
    Cache:
      description: hit if this result came from the cache, miss if it was fetched live.
      schema:
        type: string
    CacheAge:
      description: Seconds since the returned result was written to the cache.
      schema:
        type: integer
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
  responses:
    Error:
      description: The request failed. retryable says whether trying again can help.
      headers:
        X-Request-ID:
          $ref: '#/components/headers/RequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
        - success
        - error
      properties:
        success:
          const: false
        error:
          type: object
          required:
            - code
            - message
            - retryable
            - requestId
          properties:
            code:
              type: string
              enum:
                - cliSessionCompleted
                - cliSessionExists
                - cliSessionNotFound
                - forbidden
                - insufficientCredits
                - internalError
                - inviteClaimed
                - inviteDisabled
                - inviteExpired
                - inviteUsedUp
                - invalidCliSession
                - invalidCliVerifier
                - invalidRequest
                - notFound
                - rateLimited
                - sourceChanged
                - sourceRefused
                - sourceTimeout
                - sourceUnavailable
                - tooManyInFlight
                - unauthorized
                - unsupportedMediaType
            message:
              type: string
            retryable:
              type: boolean
            retryAfterSeconds:
              type: integer
            requestId:
              type: string
            requiredCredits:
              type: number
            availableCredits:
              type: number
            billingUrl:
              type: string
              const: https://stophy.dev/billing
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.