Google Play Developer Apprecovery API

The Apprecovery API from Google Play Developer — 4 operation(s) for apprecovery.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:cancel Cancel an app recovery action · Cancel apprecovery #
Ask an LLM
“How do I stop an app recovery that is already running?”
“Can I cancel a recovery action before it finishes?”
Tell an agent destructive · confirm first
Cancel app recovery {appRecoveryId} in {packageName}.
Stop the executing recovery {appRecoveryId} for {packageName}.
POST /androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting Add targeting to an app recovery · Add targeting apprecovery #
Ask an LLM
“Can I narrow the regions or Android SDKs a recovery applies to?”
“Is it possible to expand targeting on a recovery after it starts?”
Tell an agent
Add targeting {targetingUpdate} to recovery {appRecoveryId} in {packageName}.
Expand the regions covered by recovery {appRecoveryId} for {packageName}.
GET /androidpublisher/v3/applications/{packageName}/appRecoveries List app recovery actions · List apprecovery #
Ask an LLM
“Which app recovery actions exist for my app version?”
“Can I see all recovery actions for a package and version code?”
Tell an agent
List app recovery actions for {packageName} at version {versionCode}.
Show every recovery action on {packageName} for version {versionCode}.
POST /androidpublisher/v3/applications/{packageName}/appRecoveries Create an app recovery action · Create apprecovery #
Ask an LLM
“How do I create a new app recovery action?”
“Can I set targeting when creating a recovery?”
Tell an agent
Create an app recovery in {packageName} with targeting {targeting}.
Start a new recovery action for {packageName} using remote in-app update {remoteInAppUpdate}.
POST /androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:deploy Deploy an app recovery action · Deploy apprecovery #
Ask an LLM
“How do I activate a draft app recovery for all users?”
“Does deploying a recovery make it active?”
Tell an agent
Deploy app recovery {appRecoveryId} in {packageName}.
Activate draft recovery {appRecoveryId} for {packageName}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-play:google-play-apprecovery-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-play-apprecovery-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Play Android Developer Apprecovery API
  version: v3
  description: Generated from Google's published Discovery document for Google Play Android Developer API (androidpublisher v3, revision 20261111). 5 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://androidpublisher.googleapis.com
tags:
- name: Apprecovery
paths:
  /androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:cancel:
    post:
      operationId: androidpublisher.apprecovery.cancel
      summary: Cancel apprecovery
      description: Cancel an already executing app recovery action. Note that this action changes status of the recovery action to CANCELED.
      parameters:
      - name: packageName
        in: path
        required: true
        description: Required. Package name of the app for which recovery action cancellation is requested.
        schema:
          type: string
      - name: appRecoveryId
        in: path
        required: true
        description: Required. ID corresponding to the app recovery action.
        schema:
          format: int64
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CancelAppRecoveryRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelAppRecoveryResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/androidpublisher
      - apiKey: []
      tags:
      - Apprecovery
  /androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting:
    post:
      operationId: androidpublisher.apprecovery.addTargeting
      summary: Add targeting apprecovery
      description: Incrementally update targeting for a recovery action. Note that only the criteria selected during the creation of recovery action can be expanded.
      parameters:
      - name: packageName
        in: path
        required: true
        description: Required. Package name of the app for which recovery action is to be updated.
        schema:
          type: string
      - name: appRecoveryId
        in: path
        required: true
        description: Required. ID corresponding to the app recovery action.
        schema:
          format: int64
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddTargetingRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddTargetingResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/androidpublisher
      - apiKey: []
      tags:
      - Apprecovery
  /androidpublisher/v3/applications/{packageName}/appRecoveries:
    get:
      operationId: androidpublisher.apprecovery.list
      summary: List apprecovery
      description: List all app recovery action resources associated with a particular package name and app version.
      parameters:
      - name: packageName
        in: path
        required: true
        description: Required. Package name of the app for which list of recovery actions is requested.
        schema:
          type: string
      - name: versionCode
        in: query
        required: false
        description: Required. Version code targeted by the list of recovery actions.
        schema:
          type: string
          format: int64
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAppRecoveriesResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/androidpublisher
      - apiKey: []
      tags:
      - Apprecovery
    post:
      operationId: androidpublisher.apprecovery.create
      summary: Create apprecovery
      description: Create an app recovery action with recovery status as DRAFT. Note that this action does not execute the recovery action.
      parameters:
      - name: packageName
        in: path
        required: true
        description: Required. Package name of the app on which recovery action is performed.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDraftAppRecoveryRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppRecoveryAction'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/androidpublisher
      - apiKey: []
      tags:
      - Apprecovery
  /androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:deploy:
    post:
      operationId: androidpublisher.apprecovery.deploy
      summary: Deploy apprecovery
      description: Deploy an already created app recovery action with recovery status DRAFT. Note that this action activates the recovery action for all targeted users and changes its status to ACTIVE.
      parameters:
      - name: packageName
        in: path
        required: true
        description: Required. Package name of the app for which recovery action is deployed.
        schema:
          type: string
      - name: appRecoveryId
        in: path
        required: true
        description: Required. ID corresponding to the app recovery action to deploy.
        schema:
          format: int64
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeployAppRecoveryRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeployAppRecoveryResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/androidpublisher
      - apiKey: []
      tags:
      - Apprecovery
components:
  schemas:
    AppVersionRange:
      type: object
      description: Data format for a continuous range of app versions.
      properties:
        versionCodeEnd:
          format: int64
          description: Highest app version in the range, inclusive.
          type: string
        versionCodeStart:
          description: Lowest app version in the range, inclusive.
          format: int64
          type: string
    RemoteInAppUpdate:
      description: Object representation for Remote in-app update action type.
      properties:
        isRemoteInAppUpdateRequested:
          description: Required. Set to true if Remote In-App Update action type is needed.
          type: boolean
      type: object
    CreateDraftAppRecoveryRequest:
      type: object
      description: Request message for CreateDraftAppRecovery.
      properties:
        targeting:
          $ref: '#/components/schemas/Targeting'
          description: Specifies targeting criteria for the recovery action such as regions, android sdk versions, app versions etc.
        remoteInAppUpdate:
          $ref: '#/components/schemas/RemoteInAppUpdate'
          description: Action type is remote in-app update. As a consequence of this action, a downloadable recovery module is also created for testing purposes.
    AppVersionList:
      description: Data format for a list of app versions.
      type: object
      properties:
        versionCodes:
          type: array
          description: List of app version codes.
          items:
            type: string
            format: int64
    Targeting:
      properties:
        versionList:
          $ref: '#/components/schemas/AppVersionList'
          description: Target version codes as a list.
        allUsers:
          $ref: '#/components/schemas/AllUsers'
          description: All users are targeted.
        versionRange:
          $ref: '#/components/schemas/AppVersionRange'
          description: Target version codes as a range.
        androidSdks:
          $ref: '#/components/schemas/AndroidSdks'
          description: Targeting is based on android api levels of devices.
        regions:
          $ref: '#/components/schemas/Regions'
          description: Targeting is based on the user account region.
      type: object
      description: Targeting details for a recovery action such as regions, android sdk levels, app versions etc.
    CancelAppRecoveryResponse:
      description: Response message for CancelAppRecovery.
      type: object
      properties: {}
    DeployAppRecoveryResponse:
      description: Response message for DeployAppRecovery.
      properties: {}
      type: object
    AddTargetingRequest:
      type: object
      properties:
        targetingUpdate:
          $ref: '#/components/schemas/TargetingUpdate'
          description: Specifies targeting updates such as regions, android sdk versions etc.
      description: Request message for AddTargeting.
    ListAppRecoveriesResponse:
      description: 'Response message for ListAppRecoveries. -- api-linter: core::0158::response-next-page-token-field=disabled'
      properties:
        recoveryActions:
          items:
            $ref: '#/components/schemas/AppRecoveryAction'
          type: array
          description: List of recovery actions associated with the requested package name.
      type: object
    RemoteInAppUpdateData:
      description: Data related to Remote In-App Update action such as recovered user count, affected user count etc.
      type: object
      properties:
        remoteAppUpdateDataPerBundle:
          type: array
          items:
            $ref: '#/components/schemas/RemoteInAppUpdateDataPerBundle'
          description: Data related to the recovery action at bundle level.
    AppRecoveryAction:
      type: object
      description: Information about an app recovery action.
      properties:
        appRecoveryId:
          format: int64
          type: string
          description: ID corresponding to the app recovery action.
        remoteInAppUpdateData:
          $ref: '#/components/schemas/RemoteInAppUpdateData'
          description: Data about the remote in-app update action such as such as recovered user base, recoverable user base etc. Set only if the recovery action type is Remote In-App Update.
        status:
          description: The status of the recovery action.
          type: string
          enum:
          - RECOVERY_STATUS_UNSPECIFIED
          - RECOVERY_STATUS_ACTIVE
          - RECOVERY_STATUS_CANCELED
          - RECOVERY_STATUS_DRAFT
          - RECOVERY_STATUS_GENERATION_IN_PROGRESS
          - RECOVERY_STATUS_GENERATION_FAILED
        createTime:
          type: string
          description: Timestamp of when the app recovery action is created by the developer. It is always set after creation of the recovery action.
          format: google-datetime
        deployTime:
          description: Timestamp of when the app recovery action is deployed to the users. Only set if the recovery action has been deployed.
          type: string
          format: google-datetime
        targeting:
          $ref: '#/components/schemas/Targeting'
          description: Specifies targeting criteria for the recovery action such as regions, android sdk versions, app versions etc.
        lastUpdateTime:
          description: Timestamp of when the developer last updated recovery action. In case the action is cancelled, it corresponds to cancellation time. It is always set after creation of the recovery action.
          format: google-datetime
          type: string
        cancelTime:
          format: google-datetime
          type: string
          description: Timestamp of when the app recovery action is canceled by the developer. Only set if the recovery action has been canceled.
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    AddTargetingResponse:
      properties: {}
      type: object
      description: Response message for AddTargeting.
    AllUsers:
      type: object
      description: Object representation to describe all set of users.
      properties:
        isAllUsersRequested:
          type: boolean
          description: Required. Set to true if all set of users are needed.
    AndroidSdks:
      description: Android api level targeting data for app recovery action targeting.
      type: object
      properties:
        sdkLevels:
          items:
            format: int64
            type: string
          type: array
          description: Android api levels of devices targeted by recovery action. See https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels for different api levels in android.
    RemoteInAppUpdateDataPerBundle:
      description: Data related to the recovery action at bundle level.
      type: object
      properties:
        versionCode:
          description: Version Code corresponding to the target bundle.
          format: int64
          type: string
        recoveredDeviceCount:
          description: Total number of devices which have been rescued.
          type: string
          format: int64
        totalDeviceCount:
          type: string
          description: Total number of devices affected by this recovery action associated with bundle of the app.
          format: int64
    DeployAppRecoveryRequest:
      description: Request message for DeployAppRecovery.
      properties: {}
      type: object
    Regions:
      type: object
      description: Region targeting data for app recovery action targeting.
      properties:
        regionCode:
          items:
            type: string
          type: array
          description: Regions targeted by the recovery action. Region codes are ISO 3166 Alpha-2 country codes. For example, US stands for United States of America. See https://www.iso.org/iso-3166-country-codes.html for the complete list of country codes.
    TargetingUpdate:
      properties:
        androidSdks:
          $ref: '#/components/schemas/AndroidSdks'
          description: Additional android sdk levels are targeted by the recovery action.
        allUsers:
          $ref: '#/components/schemas/AllUsers'
          description: All users are targeted.
        regions:
          $ref: '#/components/schemas/Regions'
          description: Additional regions are targeted by the recovery action.
      type: object
      description: Update type for targeting. Note it is always a subset Targeting.
    CancelAppRecoveryRequest:
      properties: {}
      description: Request message for CancelAppRecovery.
      type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/androidpublisher: View and manage your Google Play Developer account
externalDocs:
  url: https://developers.google.com/android-publisher
x-provenance:
  method: harvested
  publisher: Google
  source: https://androidpublisher.googleapis.com/$discovery/rest?version=v3
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261111)