Skip to content

Update check and download links

Three endpoints serve your clients. They need no login, so your app can call them directly.

Endpoint Method What it does
/check POST Tells the app whether a newer build exists and gives it a link.
/download/<package name> GET Redirects to the newest build of the app.
/fetch/<release uuid> GET Redirects to one specific release (handy for QA and rollbacks).

These endpoints are public

Anyone who knows a package name can use /download/<package>, and anyone who knows a release's UUID can use /fetch/<uuid>. A UUID cannot be guessed or counted up to. The files themselves stay in a private bucket and are only reachable through links that expire.

POST /check

Send three form fields, all required:

Field Value
pkgname The package name, for example com.acme.scanner.
version The installed app's versionCode.
md5 The MD5 of the installed APK.
curl -s -X POST https://www.android-apk-updater.com/check \
  -d pkgname=com.acme.scanner -d version=87 -d md5=9f2c0a5d1e7b4c3a8f6e2d1b0c9a7e54

The reply is plain text. When a newer build exists, the first line is have update and the second line is the download link:

have update
https://…/com.acme.scanner/824fec59….apk?X-Amz-Expires=1200…

Otherwise the reply is a single line:

no update

How the build is chosen

The server looks for builds of pkgname whose versionCode is greater than the version you sent and whose MD5 differs from the md5 you sent. If several qualify, the highest versionCode wins.

A GET request, or an unknown app, also answers no update. A missing field answers an error with the status 404 and the message "Mandatory parameter not provided".

GET /download/<package name>

curl -L -o app.apk https://www.android-apk-updater.com/download/com.acme.scanner

Redirects to a download link for the newest build. The answer is 404 when the app has no APK.

GET /fetch/<release uuid>

Same as above, for one specific release. The UUID is in the address of the release page, and the Download button on that page links to it.

Numeric ids

/fetch/ no longer accepts the release's numeric id (it answers 404): numeric ids can be counted up. If you kept an old /fetch/<number> link, open the release page and copy the Download link again.

A download link is valid for 20 minutes. Ask for a new one by calling the endpoint again.

Download log

One entry is added to the release's download log each time /check answers have update, and each time /download or /fetch redirects. Each entry records the time, the IP address and the user agent. The release page shows them, with the Android version and device model decoded.

Monthly download limit

If your plan has a monthly download limit and you have used it, /check answers no update and /download and /fetch answer HTTP 429 until the count restarts on the first day of the month. The entries in the download log are what the limit counts. See Plans and billing.