Guide summary
Use the Android Developer ID Status API to check a package name, validate a SHA-256 certificate fingerprint and handle every registration state safely.
For: Developer-tool authors, release-platform teams and Android engineers integrating the official status service.
Release sequence
- Enable Android Developer ID Status API in a dedicated Google Cloud project.
- Restrict the API key and store it in a server-side or CI secret store.
- Send the package name and optional normalized SHA-256 certificate fingerprint.
- Branch on the state field, while treating HTTP and quota errors separately.
Quick facts
Do not parse Google error-message text as a stable machine contract. Use HTTP status and canonical error status, and never expose the API key in browser JavaScript.
Detailed guidance
Choose package-only or certificate-pair lookup
The API is a GET request to /v1/packages/{packageName}/packageRegistrationStatus:check. Leave out certificateFingerprint to ask whether the package name is linked to any verified developer. Add certificateFingerprint to check the package and a specific public SHA-256 certificate together. Keep the API key in X-Goog-Api-Key and call from a protected server or CI environment.
This example uses a placeholder package and a documentation sample fingerprint. Replace them with the production values you are authorized to check; no live request or account result is represented here.
curl -sS -G \
-H "X-Goog-Api-Key: $ANDROID_DEVELOPER_ID_API_KEY" \
--data-urlencode "certificateFingerprint=d6ac89ed1d0a805aad4b087d06d5f41645b814480b133fbc867ef7498d069e06" \
"https://androiddeveloperidstatus.googleapis.com/v1/packages/com.example.app/packageRegistrationStatus:check"Branch on the state separately from HTTP errors
A successful HTTP 200 response contains a JSON state. Package-only checks return REGISTERED or NOT_REGISTERED. With a certificate, the state can also be REGISTERED_WITH_ANOTHER_CERTIFICATE_FINGERPRINT. For example, the body below is an illustrative mismatch result, not a live query.
Treat NOT_REGISTERED and a different-certificate state as successful API responses that need remediation; do not retry them as network errors. For a non-2xx response, inspect Google's JSON error.status. Correct INVALID_ARGUMENT, UNAUTHENTICATED or PERMISSION_DENIED inputs and project setup; use bounded exponential backoff for RESOURCE_EXHAUSTED, INTERNAL or UNAVAILABLE. The error message is not a stable contract.
- Store the HTTP status and state as separate fields.
- Branch on state and canonical error.status, not message text.
- Keep credentials out of browser JavaScript, source control and logs.
- Save a checked timestamp with the exact package and certificate inputs.
{
"name": "packages/com.example.app/packageRegistrationStatus",
"state": "REGISTERED_WITH_ANOTHER_CERTIFICATE_FINGERPRINT"
}Have the production package name and signing certificate ready? Query the official registration state, then use the result to choose your next step.
Run status check →Frequently asked questions
Is OAuth required for the Status API?
The current Android guide documents API-key authentication for this status-check endpoint. Create the key in a Google Cloud project with the API enabled and protect the key in a server-side or CI secret store.
Can browser JavaScript call it directly?
Do not ship a reusable Google API key to browsers. Run the request from a protected server or trusted CI job, then return only the result needed by the interface.
Does a 200 response mean the package is registered?
No. HTTP 200 means the request completed and returned a state. Read the JSON state: NOT_REGISTERED and REGISTERED_WITH_ANOTHER_CERTIFICATE_FINGERPRINT are valid outcomes that require different follow-up from a transport or credential error.
Sources and review
Last reviewed: