{"id":21479363,"url":"https://github.com/rycus86/googleplay-proxy","last_synced_at":"2025-10-27T14:08:42.213Z","repository":{"id":66144743,"uuid":"94143799","full_name":"rycus86/googleplay-proxy","owner":"rycus86","description":"Python Flask application to proxy calls to the Google Play Store.","archived":false,"fork":false,"pushed_at":"2018-02-15T17:59:14.000Z","size":40,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T18:16:08.459Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rycus86.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":"2017-06-12T21:51:50.000Z","updated_at":"2023-03-10T11:58:15.000Z","dependencies_parsed_at":"2023-02-22T01:16:28.566Z","dependency_job_id":null,"html_url":"https://github.com/rycus86/googleplay-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rycus86%2Fgoogleplay-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rycus86%2Fgoogleplay-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rycus86%2Fgoogleplay-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rycus86%2Fgoogleplay-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rycus86","download_url":"https://codeload.github.com/rycus86/googleplay-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244004240,"owners_count":20382352,"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":[],"created_at":"2024-11-23T11:24:53.482Z","updated_at":"2025-10-27T14:08:42.137Z","avatar_url":"https://github.com/rycus86.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Play Proxy\n\nA simple `Python` [Flask](http://flask.pocoo.org) *REST* server to proxy calls to the *Google Play Store*.\n\n[![Build Status](https://travis-ci.org/rycus86/googleplay-proxy.svg?branch=master)](https://travis-ci.org/rycus86/googleplay-proxy)\n[![Build Status](https://img.shields.io/docker/build/rycus86/googleplay-proxy.svg)](https://hub.docker.com/r/rycus86/googleplay-proxy)\n[![Coverage Status](https://coveralls.io/repos/github/rycus86/googleplay-proxy/badge.svg?branch=master)](https://coveralls.io/github/rycus86/googleplay-proxy?branch=master)\n[![Code Climate](https://codeclimate.com/github/rycus86/googleplay-proxy/badges/gpa.svg)](https://codeclimate.com/github/rycus86/googleplay-proxy)\n\n## Usage\n\nThe API is implemented using [googleplay-api](https://github.com/NeroBurner/googleplay-api)\nand supports these environment variables:\n\n- `GOOGLE_USERNAME`: a valid *Google* username\n- `GOOGLE_PASSWORD`: password for the same *Google* account\n- `ANDROID_ID`: a valid *Google Service Framework (GSF)* ID  \n  *You can find it using the [Device ID app](https://play.google.com/store/apps/details?id=com.evozi.deviceid) for example*\n- `MAX_LOGIN_RETRIES`: the maximum number of retries when login fails  \n  *Login can be quite flaky*\n\nTo get a reference to the `ApiClient` class use something like:\n```python\napi = ApiClient(android_id=os.environ.get('ANDROID_ID'),\n                username=os.environ.get('GOOGLE_USERNAME'),\n                password=os.environ.get('GOOGLE_PASSWORD'),\n                max_login_retries=int(os.environ.get('MAX_LOGIN_RETRIES', '10')))\n```\n\nThe `api.ApiClient` class wraps remote calls with the following methods:\n\n- `login()`:\n  Executes the login (with retries) and caches the authentication token for following calls.\n- `search(package_prefix)`:\n  Searches for applications using `package_prefix` and filters the result list to\n  only include apps whose package name starts with that prefix.\n- `get_details(package_name)`:\n  Returns the details of the application whose package is `package_name`.\n\nThe `app` module is responsible for the *REST* presentation layer exposing *JSON* endpoints.\nThe exposed endpoints are cached using [Flask-Cache](https://pythonhosted.org/Flask-Cache).\n\nInstead of the API a *scraper* can also be used (without authentication)\nby setting the `API_TYPE` environment variable to `scraper`.\n\nProgrammatically:\n```python\napi = Scraper(cache_max_age=int(os.environ.get('MAX_CACHE_AGE', 24 * 60 * 60)))\n```\n\nThe exposed methods are similar to the `ApiClient` class methods:\n\n- `search(package_prefix)`:\n  Searches for applications using `package_prefix` and filters the result list to\n  only include apps whose package name starts with that prefix.\n- `developer(developer_name)`:\n  Searches for applications developed by `developer_name`.\n  Returns results in the same format as `search`.\n- `get_details(package_name)`:\n  Returns the details of the application whose package is `package_name`.\n\n\nConfiguration options:\n\n- `HTTP_HOST`: the host (interface) for *Flask* to bind to (default: `127.0.0.1`)\n- `HTTP_PORT`: the port to bind to (default: `5000`)\n- `CORS_ORIGINS`: comma separated list of *origins* to allow *cross-domain* `GET` requests from\n  (default: `http://localhost:?.*`)\n\nTo allow connections from other hosts apart from `localhost` set the `HTTP_PORT` environment\nvariable to `0.0.0.0` or as appropriate.\n\nList of endpoints:\n\n- `/search/\u003cpackage_prefix\u003e`:\n  returns a list of application details whose package starts with the given prefix\n- `/developer/\u003cdeveloper_name\u003e`:\n  returns a list of application details created by the given developer\n- `/details/\u003cpackage_name\u003e`:\n  returns the details of the application with the given package name\n\n## Docker\n\nThe web application is built as a *Docker* image too based on *Alpine Linux*\nfor 3 architectures with the following tags:\n\n- `latest`: for *x86* hosts  \n  [![Layers](https://images.microbadger.com/badges/image/rycus86/googleplay-proxy.svg)](https://microbadger.com/images/rycus86/googleplay-proxy \"Get your own image badge on microbadger.com\")\n- `armhf`: for *32-bits ARM* hosts  \n  [![Layers](https://images.microbadger.com/badges/image/rycus86/googleplay-proxy:armhf.svg)](https://microbadger.com/images/rycus86/googleplay-proxy:armhf \"Get your own image badge on microbadger.com\")\n- `aarch64`: for *64-bits ARM* hosts  \n  [![Layers](https://images.microbadger.com/badges/image/rycus86/googleplay-proxy:aarch64.svg)](https://microbadger.com/images/rycus86/googleplay-proxy:aarch64 \"Get your own image badge on microbadger.com\")\n\n`latest` is auto-built on [Docker Hub](https://hub.docker.com/r/rycus86/googleplay-proxy)\nwhile the *ARM* builds are uploaded from [Travis](https://travis-ci.org/rycus86/googleplay-proxy).\n\nTo run it:\n```shell\ndocker run -d --name=\"googleplay-proxy\" -p 5000:5000                       \\\n  -e GOOGLE_USERNAME='user' -e GOOGLE_PASSWORD='pass' -e ANDROID_ID='aid'  \\\n  -e CORS_ORIGINS='http://site.example.com,*.website.com'                  \\\n  rycus86/googleplay-proxy:latest\n```\n\nOr to scrape:\n```shell\ndocker run -d --name=\"googleplay-proxy\" -p 5000:5000                       \\\n  -e API_TYPE=scrape                                                       \\\n  -e CORS_ORIGINS='http://site.example.com,*.website.com'                  \\\n  rycus86/googleplay-proxy:latest\n```\n\nOr with *docker-compose* (for a *Raspberry Pi* for example):\n```yaml\nversion: '2'\nservices:\n\n  googleplay-proxy:\n    image: rycus86/googleplay-proxy:armhf\n    read_only: true\n    expose:\n      - \"5000\"\n    restart: always\n    environment:\n      - HTTP_HOST=0.0.0.0\n    env_file:\n      - googleplay-secrets.env\n```\n\nThis way you can keep the secrets in the `env_file` instead of passing them to the *Docker*\nclient from the command line.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frycus86%2Fgoogleplay-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frycus86%2Fgoogleplay-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frycus86%2Fgoogleplay-proxy/lists"}