Skip to content

Google Play Integrity API API

by googleapis.com

OAuthHTTPSAnalytics
Open documentation ↗

Overview

The Play Integrity API helps you check that you're interacting with your genuine app on a genuine Android device powered by Google Play services. The Play Integrity API has replaced SafetyNet Attestation and Android Device Verification.

Google Play Integrity API is an analytics API from googleapis.com. Requests are authenticated with OAuth. It is served over HTTPS. Its OpenAPI description documents 1 endpoints.

At a glance

Authentication
OAuth
HTTPS
Yes
CORS
Unknown
Category
Analytics
Base URL
https://playintegrity.googleapis.com/
Version
v1
Endpoints
1
Spec updated
2023-04-21

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X POST "https://playintegrity.googleapis.com/v1/PACKAGENAME:decodeIntegrityToken" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN"
JavaScript
const response = await fetch("https://playintegrity.googleapis.com/v1/PACKAGENAME:decodeIntegrityToken", {
  method: "POST",
  headers: {
    "Accept": "application/json",
    "Authorization": "Bearer YOUR_TOKEN",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "POST",
    "https://playintegrity.googleapis.com/v1/PACKAGENAME:decodeIntegrityToken",
    headers={
    "Accept": "application/json",
    "Authorization": "Bearer YOUR_TOKEN",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
POST/v1/{packageName}:decodeIntegrityTokenDecodes the integrity token and returns the token payload.

Questions

Does the Google Play Integrity API API need an API key?

Yes. The Google Play Integrity API API uses OAuth authentication; the documentation explains how to get credentials.

Does the Google Play Integrity API API support HTTPS?

Yes, the Google Play Integrity API API is served over HTTPS.

How many endpoints does the Google Play Integrity API API have?

Its OpenAPI description lists 1 endpoint in version v1. All of them are shown on this page.

What are alternatives to the Google Play Integrity API API?

Other Analytics APIs include versionhistory.googleapis.com API, Doc Converter, Perspective Comment Analyzer API, Safe Browsing API, Web Fonts Developer API.

Compare alternatives →

Listed from APIs.guru (CC0).