Skip to main content

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.

Install

pip install download-apk

Use

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.

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

MIT.

Metadata

Release files for download-apk 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for download-apk 0.3.0
File Actions
download_apk-0.3.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for download_apk-0.3.0-py3-none-win_arm64.whl
download_apk-0.3.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for download_apk-0.3.0-py3-none-win_amd64.whl
download_apk-0.3.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for download_apk-0.3.0-py3-none-manylinux_2_28_x86_64.whl
download_apk-0.3.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for download_apk-0.3.0-py3-none-manylinux_2_28_aarch64.whl
download_apk-0.3.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for download_apk-0.3.0-py3-none-macosx_11_0_arm64.whl
download_apk-0.3.0-py3-none-macosx_10_15_x86_64.whl Python 3 none macOS 10.15+ x86-64 Details for download_apk-0.3.0-py3-none-macosx_10_15_x86_64.whl

Total release size: 32.5 MB

Release files / download_apk-0.3.0-py3-none-win_arm64.whl

Download URL download_apk-0.3.0-py3-none-win_arm64.whl
Size 4.7 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
801d1453d07dd60ff53b1be17c1768dce9880fbd416f7ec85bbb395a68863a89
BLAKE2b-256 checksum
How to use checksums
38804f0a6545f3009c346f76d0b2813c746d63da6e08efede9082c20a7ae1ff9
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 16, 2026.

Transparency log

Release files / download_apk-0.3.0-py3-none-win_amd64.whl

Download URL download_apk-0.3.0-py3-none-win_amd64.whl
Size 4.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
e28cda2b0e2c2207d986a0b32a43429346c8c19eada0e089ef3bc9eec2c0fc5e
BLAKE2b-256 checksum
How to use checksums
2b3ea37432a13c0ee1eddd6e4436d9a4a03d60e7de6631b43b12294bf02c902d
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 16, 2026.

Transparency log

Release files / download_apk-0.3.0-py3-none-manylinux_2_28_x86_64.whl

Download URL download_apk-0.3.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
056d64ac8edca7f0dc75f1fab3bee758edba4fab8b7a672b44f6fe5da1b1ce6f
BLAKE2b-256 checksum
How to use checksums
afbf4c77f9100fa9ff187b67ad6a9d4c932fe359c3f1ea8020b432be8725b9b2
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 16, 2026.

Transparency log

Release files / download_apk-0.3.0-py3-none-manylinux_2_28_aarch64.whl

Download URL download_apk-0.3.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
7ed18789e61a3045f08694e0e258c825746da0190cb4af691ddcc791eff7d4e1
BLAKE2b-256 checksum
How to use checksums
5cda7f5b7e7b61a7491fcd43d02322e20d1d0d917685121ef987160746703b99
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 16, 2026.

Transparency log

Release files / download_apk-0.3.0-py3-none-macosx_11_0_arm64.whl

Download URL download_apk-0.3.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
7863a90b8567e485599fd7bb755c22fc9d85d1fdcf694476e28b04d3389335d9
BLAKE2b-256 checksum
How to use checksums
583cf4a4b0deb5269880b3fb0de65ed31b5f43060acab61bba67249c1fcd7942
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 16, 2026.

Transparency log

Release files / download_apk-0.3.0-py3-none-macosx_10_15_x86_64.whl

Download URL download_apk-0.3.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
589a38a19142c0fef2c4ce56b6b315aa02a5ec7738468d6b9b7d86ad95951baf
BLAKE2b-256 checksum
How to use checksums
ce66cc5f2597cedf7dd705d6ade8a1e71ee303e4fb39f9dbd9e417ae3455a6cf
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 16, 2026.

Transparency log

Security for download-apk 0.3.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.

Select from 6 files

Attestation for download_apk-0.3.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 16, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page