API reference

Android Developer ID Status API reference

The official server-to-server API returns a small, stable registration state for a package name or a package-and-certificate pair. It is suitable for IDEs and CI/CD, but callers must protect their own Google Cloud API key and handle quota and transient errors deliberately.

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

  1. Enable Android Developer ID Status API in a dedicated Google Cloud project.
  2. Restrict the API key and store it in a server-side or CI secret store.
  3. Send the package name and optional normalized SHA-256 certificate fingerprint.
  4. Branch on the state field, while treating HTTP and quota errors separately.

Quick facts

MethodGET packageRegistrationStatus:check
AuthenticationX-Goog-Api-Key header
Stable resultstate field
Field note

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.

Illustrative package-and-certificate request
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.
Illustrative HTTP 200 response body; not a live query
{
  "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: