{"id":19957921,"url":"https://github.com/yeriomin/play-store-api","last_synced_at":"2025-04-06T18:14:58.663Z","repository":{"id":145467214,"uuid":"76700287","full_name":"yeriomin/play-store-api","owner":"yeriomin","description":"Google Play Store protobuf API wrapper in java","archived":false,"fork":false,"pushed_at":"2020-11-16T05:41:15.000Z","size":7688,"stargazers_count":331,"open_issues_count":15,"forks_count":131,"subscribers_count":44,"default_branch":"master","last_synced_at":"2025-03-30T16:12:20.250Z","etag":null,"topics":["api-wrapper","floss","google","google-play-store","play-store","playstore","protobuf","protobuf-java"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yeriomin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-17T02:56:22.000Z","updated_at":"2025-03-17T00:29:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c89bc31-183f-419a-960f-e39fb64a1cea","html_url":"https://github.com/yeriomin/play-store-api","commit_stats":null,"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeriomin%2Fplay-store-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeriomin%2Fplay-store-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeriomin%2Fplay-store-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeriomin%2Fplay-store-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yeriomin","download_url":"https://codeload.github.com/yeriomin/play-store-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247526764,"owners_count":20953143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-wrapper","floss","google","google-play-store","play-store","playstore","protobuf","protobuf-java"],"created_at":"2024-11-13T01:39:18.579Z","updated_at":"2025-04-06T18:14:58.638Z","avatar_url":"https://github.com/yeriomin.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# play-store-api [![Build Status](https://travis-ci.org/yeriomin/play-store-api.svg?branch=master)](https://travis-ci.org/yeriomin/play-store-api) [![Release](https://jitpack.io/v/yeriomin/play-store-api.svg)](https://jitpack.io/#yeriomin/play-store-api) [![downloads](https://jitpack.io/v/yeriomin/play-store-api/month.svg)](https://jitpack.io/#yeriomin/play-store-api)\n\nGoogle Play Store protobuf API wrapper in java\n\n## Include\n\nGet it from [jitpack](https://jitpack.io/#yeriomin/play-store-api). Or...\n\n## Build separately\n\n    git clone https://github.com/yeriomin/play-store-api\n    gradlew :assemble\n    gradlew :build\n    \nProtobuf classes generation happens on `assemble` step, tests a ran on `build` step.\n\n## Usage\n\n### First login\n\n```java\n        // A device definition is required to log in\n        // See resources for a list of available devices\n        Properties properties = new Properties();\n        try {\n            properties.load(getClass().getClassLoader().getSystemResourceAsStream(\"device-honami.properties\"));\n        } catch (IOException e) {\n            System.out.println(\"device-honami.properties not found\");\n            return null;\n        }\n        PropertiesDeviceInfoProvider deviceInfoProvider = new PropertiesDeviceInfoProvider();\n        deviceInfoProvider.setProperties(properties);\n        deviceInfoProvider.setLocaleString(Locale.ENGLISH.toString());\n        \n        // Provide valid google account info\n        PlayStoreApiBuilder builder = new PlayStoreApiBuilder()\n            // Extend HttpClientAdapter using a http library of your choice\n            .setHttpClient(new HttpClientAdapterImplementation())\n            .setDeviceInfoProvider(deviceInfoProvider)\n            .setEmail(email)\n            .setPassword(password)\n        ;\n        GooglePlayAPI api = builder.build();\n        \n        // We are logged in now\n        // Save and reuse the generated auth token and gsf id,\n        // unless you want to get banned for frequent relogins\n        api.getToken();\n        api.getGsfId();\n        \n        // API wrapper instance is ready\n        DetailsResponse response = api.details(\"com.cpuid.cpu_z\");\n```\n        \n### Further logins\n\n```java\n        // A device definition is required for routine requests too\n        // See resources for a list of available devices\n        Properties properties = new Properties();\n        try {\n            properties.load(getClass().getClassLoader().getSystemResourceAsStream(\"device-honami.properties\"));\n        } catch (IOException e) {\n            System.out.println(\"device-honami.properties not found\");\n            return null;\n        }\n        PropertiesDeviceInfoProvider deviceInfoProvider = new PropertiesDeviceInfoProvider();\n        deviceInfoProvider.setProperties(properties);\n        deviceInfoProvider.setLocaleString(Locale.ENGLISH.toString());\n        \n        // Provide auth token and gsf id you previously saved\n        PlayStoreApiBuilder builder = new PlayStoreApiBuilder()\n            // Extend HttpClientAdapter using a http library of your choice\n            .setHttpClient(new HttpClientAdapterImplementation())\n            .setDeviceInfoProvider(deviceInfoProvider)\n            .setToken(token)\n            .setGsfId(gsfId)\n        ;\n        GooglePlayAPI api = builder.build();\n        \n        // API wrapper instance is ready\n        DetailsResponse response = api.details(\"com.cpuid.cpu_z\");\n```\n        \n### Examples\n\nSee [tests](https://github.com/yeriomin/play-store-api/blob/master/src/test/java/com/github/yeriomin/playstoreapi/GooglePlayAPITest.java) and [the project which this library was made for](https://github.com/yeriomin/YalpStore) for examples.\n\n### Further studies\n\nLooking through [GooglePlay.proto](https://github.com/yeriomin/play-store-api/blob/master/src/main/proto/GooglePlay.proto) will let you know what responses to expect.\n\n## License\n\nplay-store-api is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\n## Credits\n\nplay-store-api is a fork of https://github.com/Akdeniz/google-play-crawler\nplay-store-api has [protobuf-java](https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java) built-in. protobuf-java was modified to work with java 1.5 which is required for play-store-api to work on old android versions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeriomin%2Fplay-store-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeriomin%2Fplay-store-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeriomin%2Fplay-store-api/lists"}