download-apk
Searches Google Play and download an app's APKs from the command line.
download-apk search firefox
download-apk download org.mozilla.firefox
Each download goes to apps/<appId>/<version>/ and holds the base APK, its split APKs, and a metadata.json with each file's SHA-256. Running a download again picks up a new release. Google Play does not allow downloading historic versions, so only the current version can be downloaded.
Requirements
- Python 3.10 or later, on Windows, macOS or Linux (x64 or arm64).
- Google Chrome, for the one-time sign-in.
- A Google account. Use a spare one: Google may flag accounts that download apps outside a phone.
- Optionally, jadx on your
PATH, for--decompile.
Install
pip install download-apk
Use
Search
download-apk search firefox --limit 3
App ID Title Developer Installs Rating Price
------------------------ ------------------------------ --------- ----------- ------ -----
org.mozilla.focus Firefox Focus: No Fuss Browser Mozilla 10,000,000+ 4.7 Free
org.mozilla.firefox_beta Firefox Beta for Testers Mozilla 10,000,000+ 4.6 Free
org.mozilla.fenix Firefox Nightly for Developers Mozilla 1,000,000+ 4.5 Free
--limit sets how many results to show (default 20).
Download
download-apk download com.example.app
Downloading com.example.app from Google Play...
Saved com.example.app 1.4.2 to /home/me/apks/apps/com.example.app/1.4.2
To save somewhere other than ./apps, pass --out FOLDER, or set DOWNLOAD_APK_DIR for every run.
Google Play only serves an app's current version. Paid apps download only if the account owns them.
Decompile
download-apk download com.example.app --decompile
After downloading (or finding the version already downloaded), this runs jadx on the APKs and writes Java sources and decoded resources to apps/<appId>/decompiled/<version>/. jadx must be on your PATH, but only when you pass --decompile: the command then checks for it before signing in or downloading. A version that is already decompiled is skipped. jadx often can't decompile every method of a large app: it says so, and the rest of its output is kept.
Options
| Option | Default | What it does |
|---|---|---|
--ini PATH |
./.google-play.ini |
Where the sign-in token is saved |
--sign-in |
Sign in again, replacing the saved token | |
--email ADDRESS |
asked for | The Google account's email, used when signing in |
--country CODE |
detected | The store country, e.g. us |
--lang CODE |
detected | The store language, e.g. en or en-GB |
The country is detected from your IP address (through Cloudflare, or ipinfo.io as a fallback), and the language from your system's display language. Each run prints what it picked.
Signing in
The first time you run a command, Chrome opens on Google's sign-in page. Sign in, and the window closes by itself; then type the account's email when asked. A token is saved to .google-play.ini, and later runs reuse it. If Google stops accepting it, the sign-in runs again.
.google-play.ini works like a password for the account, so keep it out of git: add it to .gitignore. download-apk warns you if the file is tracked by git, or would be on the next git add.
Troubleshooting
- "Google Play has no app …, or doesn't offer it to this account." Check the app ID with
search. Some apps are limited to certain countries or devices. - "Google Play refused the saved sign-in." Run again with
--sign-in. - Chrome doesn't open. Install Google Chrome.
Develop
git clone https://github.com/jeremy-morren/download-apk
cd download-apk
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
DOWNLOAD_APK_SKIP_APKEEP=1 pip install -e . --group test
pytest
The tests run offline and don't need apkeep. To run real downloads from a checkout, install without DOWNLOAD_APK_SKIP_APKEEP: that compiles apkeep, which needs Rust.
Acknowledgements
This tool uses the EFF's apkeep to download from Google Play and google-play-scraper to search.
License
This project is available under the MIT license.
Metadata
Release files for download-apk 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| download_apk-0.4.0-py3-none-win_arm64.whl | Python 3 | none | Windows ARM64 | Details for download_apk-0.4.0-py3-none-win_arm64.whl |
| download_apk-0.4.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for download_apk-0.4.0-py3-none-win_amd64.whl |
| download_apk-0.4.0-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details for download_apk-0.4.0-py3-none-manylinux_2_28_x86_64.whl |
| download_apk-0.4.0-py3-none-manylinux_2_28_aarch64.whl | Python 3 | none | Linux glibc 2.28+ ARM64 | Details for download_apk-0.4.0-py3-none-manylinux_2_28_aarch64.whl |
| download_apk-0.4.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for download_apk-0.4.0-py3-none-macosx_11_0_arm64.whl |
| download_apk-0.4.0-py3-none-macosx_10_15_x86_64.whl | Python 3 | none | macOS 10.15+ x86-64 | Details for download_apk-0.4.0-py3-none-macosx_10_15_x86_64.whl |
Total release size: 32.5 MB
Release files / download_apk-0.4.0-py3-none-win_arm64.whl
| Download URL | download_apk-0.4.0-py3-none-win_arm64.whl |
|---|---|
| Size | 4.7 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
31a4526423c4ffa575edc230cbdbc5e97ed8255b66fdce126a40522835d5d9cf
|
|
BLAKE2b-256 checksum How to use checksums |
c8a9b90aeb2496b61e375a3b0612320a07b229f4ab40d536b2f3f89718db3c10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / download_apk-0.4.0-py3-none-win_amd64.whl
| Download URL | download_apk-0.4.0-py3-none-win_amd64.whl |
|---|---|
| Size | 4.9 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
55ca368add8ea4563d8a180767368bb9c982c2adfd5923babadb50ad4c91b67a
|
|
BLAKE2b-256 checksum How to use checksums |
b827376535f606dd6320a7f18ee661e2503ef1ed5b37092a93f409d0b7f11cce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / download_apk-0.4.0-py3-none-manylinux_2_28_x86_64.whl
| Download URL | download_apk-0.4.0-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 6.8 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
0545c6d58514bf98291170e70be2b8a2f30fc70b9f1be33db8d74a30d007c6ec
|
|
BLAKE2b-256 checksum How to use checksums |
5d3ca33eed61ec9ede04df96e7f1d3e0633fbe50bad90ec5a2d9501a2097ff04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / download_apk-0.4.0-py3-none-manylinux_2_28_aarch64.whl
| Download URL | download_apk-0.4.0-py3-none-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 6.3 MB |
| Tags | Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
cd5412ea2a9ebc5e0a67d4b68e4507d9a1fb63139796ac2bbc080d9a30e9b06c
|
|
BLAKE2b-256 checksum How to use checksums |
73e5c37bac169399389310c44a88cf3099a88e061411c3d380dbcff33f7fe960
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / download_apk-0.4.0-py3-none-macosx_11_0_arm64.whl
| Download URL | download_apk-0.4.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 4.7 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
df51be9e70f964b39f009d8596f8e27e7e4dbb9d408d288b8d8fca90d900dc9f
|
|
BLAKE2b-256 checksum How to use checksums |
647fbdb5332134a40eff78c3cfdb5b877a5b26bbff05f434f070a98b6ef79ce4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / download_apk-0.4.0-py3-none-macosx_10_15_x86_64.whl
| Download URL | download_apk-0.4.0-py3-none-macosx_10_15_x86_64.whl |
|---|---|
| Size | 5.0 MB |
| Tags | Python 3 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
54b1fde126243c1e9daa9b3b2287b7dcb16bfe5ab63cfb3c9917cce67f5e5943
|
|
BLAKE2b-256 checksum How to use checksums |
4117d71dec6f526d5f4e91caf8fe2e3f9d87c4f2424cb527fe955f38699192ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for download-apk 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for download_apk-0.4.0-py3-none-win_arm64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.