googlesamples / android-play-publisher-api

Apache License 2.0
492 stars 284 forks source link

Are there methods to get app information in this API? #60

Open pguatura opened 4 years ago

pguatura commented 4 years ago

Hi! I've been looking for an API that returns some console information, but have only found editing apis. Is it possible to get any of the following information with this API or any other official API?

Thanks!

carstenhag commented 3 years ago

Also, a list of apps including package names etc would be very very useful. Currently all calls require a package name. I wanted to build a tool that displays an overview of the users' apps, but this is not possible.

FYI, the play console at https://play.google.com/console/u/0/developers/xxx/app-list calls https://playconsoleapps-pa.clients6.google.com/v1/developers/xxx/appSummaries. And with the right cookies, api keys blabla (which is not understandable, as it's a private api), it returns this:

{
  "appSummaries": [
    {
      "appReference": {
        "developerId": {
          "value": "5156449373921637191"
        },
        "appId": {
          "value": "4975802532378948439"
        }
      },
      "title": "Stadtplan Mosbach",
      "iconFifeUrl": "https://lh3.googleusercontent.com/4NB0aixNlS1hbSH29ciZrxWem7SPp-IvXgicY8RosXgWFHr8w_YQzKKRVo37xZ7546Y",
      "appState": {
        "lifeCycleStates": [
          "LIFE_CYCLE_STATE_OPEN_TESTING",
          "LIFE_CYCLE_STATE_CLOSED_TESTING",
          "LIFE_CYCLE_STATE_INTERNAL_TESTING"
        ],
        "type": "APP_TYPE_APP",
        "releaseTypeStatuses": {
          "tv": "RELEASE_TYPE_STATUS_DISABLED",
          "wear": "RELEASE_TYPE_STATUS_DISABLED",
          "automotive": "RELEASE_TYPE_STATUS_DISABLED",
          "daydream": "RELEASE_TYPE_STATUS_DISABLED",
          "battlestar": "RELEASE_TYPE_STATUS_DISABLED",
          "instantApps": "RELEASE_TYPE_STATUS_DISABLED"
        },
        "publishStatus": "PUBLISH_STATUS_NO_CHANGES",
        "managedPublishState": "MANAGED_PUBLISH_STATE_DISABLED"
      },
      "packageName": "de.chagemann.stadtplanmosbach",
      "updateTime": "2020-02-08T22:30:32.227Z"
    },
    {
      "appReference": {
        "developerId": {
          "value": "5156449373921637191"
        },
        "appId": {
          "value": "4973887619442785699"
        }
      },
      "title": "Sunny Weather",
      "iconFifeUrl": "https://lh4.ggpht.com/fFtBX6W1OKuChaWPyJlU94WxDbJ1biMT3Jn5jH9buULdO56PpON2l9aM-v2Npioiksc",
      "appState": {
        "lifeCycleStates": [
          "LIFE_CYCLE_STATE_BLOCKED"
        ],
        "type": "APP_TYPE_APP",
        "releaseTypeStatuses": {
          "tv": "RELEASE_TYPE_STATUS_DISABLED",
          "wear": "RELEASE_TYPE_STATUS_DISABLED",
          "automotive": "RELEASE_TYPE_STATUS_DISABLED",
          "daydream": "RELEASE_TYPE_STATUS_DISABLED",
          "battlestar": "RELEASE_TYPE_STATUS_DISABLED",
          "instantApps": "RELEASE_TYPE_STATUS_DISABLED"
        },
        "publishStatus": "PUBLISH_STATUS_NO_CHANGES",
        "managedPublishState": "MANAGED_PUBLISH_STATE_DISABLED"
      },
      "packageName": "pw.moter8.sunnyweather",
      "updateTime": "2017-08-02T18:09:37.257Z"
    },
    {
      "appReference": {
        "developerId": {
          "value": "5156449373921637191"
        },
        "appId": {
          "value": "4974881233639809673"
        }
      },
      "title": "Thinking Sticker Pack",
      "iconFifeUrl": "https://lh3.googleusercontent.com/FDD-cJ3QICdhmBZAvpRbTs4HCjIAfsUL3xXOJpd8wMZ01OkKW0EyWmYCn77DKMYl4HE",
      "appState": {
        "lifeCycleStates": [
          "LIFE_CYCLE_STATE_PRODUCTION"
        ],
        "type": "APP_TYPE_APP",
        "releaseTypeStatuses": {
          "tv": "RELEASE_TYPE_STATUS_DISABLED",
          "wear": "RELEASE_TYPE_STATUS_DISABLED",
          "automotive": "RELEASE_TYPE_STATUS_DISABLED",
          "daydream": "RELEASE_TYPE_STATUS_DISABLED",
          "battlestar": "RELEASE_TYPE_STATUS_DISABLED",
          "instantApps": "RELEASE_TYPE_STATUS_DISABLED"
        },
        "publishStatus": "PUBLISH_STATUS_NO_CHANGES",
        "managedPublishState": "MANAGED_PUBLISH_STATE_DISABLED"
      },
      "packageName": "de.chagemann.thinkingstickers",
      "updateTime": "2019-12-20T07:13:33.229Z"
    }
  ]
}

And the country information etc is also available as private api, but they just didn't make it public :(. Really sad.

tiagomenegaz commented 1 year ago

If anyone ever comes across it in the future. The codes listed here, like LIFE_CYCLE_STATE_OPEN_TESTING, LIFE_CYCLE_STATE_CLOSED_TESTING are the same listed in the main.dart.js file.