API Documentation

Google Play Data Safety API

Query Google Play datasafety. Empty results and failures are free.

Test API
Open the product page and test
POST https://api.goanyapi.com/api/v1/googleplay/datasafety

Request and input parameters

Synchronous POST JSON query. There are no Path or Query parameters and no asynchronous task.

Parameter Location Type Required Default Constraints and meaning
Authorization Header string Yes — Bearer YOUR_API_KEY
Content-Type Header string Yes application/json application/json
url JSON body string Optional or conditional — Complete HTTPS resource URL; takes precedence over resource identifiers; maxLength=4096
country JSON body string Optional or conditional — Store country code; URL country is used when not explicitly overridden; pattern=^[A-Za-z]{2}$
lang JSON body string Optional or conditional — Language code; pattern=^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8}){0,2}$
appId JSON body string Optional or conditional — Android application package name; pattern=^[A-Za-z][A-Za-z0-9_](.[A-Za-z][A-Za-z0-9_])+$

Conditional requirements (required lists mandatory fields; satisfy at least one anyOf branch, exactly one oneOf branch, and every allOf branch):

{
  "required": [],
  "anyOf": [
    {
      "required": [
        "url"
      ]
    },
    {
      "required": [
        "appId"
      ]
    }
  ]
}

Request example

POST /api/v1/googleplay/datasafety
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "url": "https://play.google.com/store/apps/details?id=com.rockstargames.gtasa",
  "appId": "com.rockstargames.gtasa"
}

Output fields

Field path Type Meaning
code string ok on success; public error code otherwise
message string Request status message
data.result object / null Business result; actual null, empty and missing values are preserved
data.creditsUsed integer Actual charge; empty results and failures are free
data.remainingCredits number Account balance after settlement
data.result.appId string appId: public business value; may be empty or absent
data.result.sharedData array sharedData: public business value; may be empty or absent
data.result.collectedData array collectedData: public business value; may be empty or absent
data.result.collectedData[].data string data: public business value; may be empty or absent
data.result.collectedData[].optional boolean optional: public business value; may be empty or absent
data.result.collectedData[].purpose string purpose: public business value; may be empty or absent
data.result.collectedData[].type string type: public business value; may be empty or absent
data.result.securityPractices array securityPractices: public business value; may be empty or absent
data.result.securityPractices[].practice string practice: public business value; may be empty or absent
data.result.securityPractices[].description string description: public business value; may be empty or absent
data.result.privacyPolicyUrl string privacyPolicyUrl: public business value; may be empty or absent

Real response example

Captured: 2026-11-25T10:23:56Z. Real public response excerpt; only data.creditsUsed and data.remainingCredits are omitted. Charges and balance depend on the actual request.

{
  "code": "ok",
  "message": "ok",
  "data": {
    "result": {
      "appId": "com.rockstargames.gtasa",
      "sharedData": [],
      "collectedData": [
        {
          "data": "应用互动",
          "optional": false,
          "purpose": "分析",
          "type": "应用活动"
        },
        {
          "data": "其他操作",
          "optional": false,
          "purpose": "应用功能分析",
          "type": "应用活动"
        },
        {
          "data": "诊断信息",
          "optional": false,
          "purpose": "分析",
          "type": "应用信息和性能"
        },
        {
          "data": "设备 ID 或其他 ID",
          "optional": false,
          "purpose": "应用功能广告或营销",
          "type": "设备 ID 或其他 ID"
        },
        {
          "data": "名称",
          "optional": false,
          "purpose": "账号管理",
          "type": "个人信息"
        },
        {
          "data": "邮箱",
          "optional": false,
          "purpose": "账号管理",
          "type": "个人信息"
        },
        {
          "data": "用户 ID",
          "optional": false,
          "purpose": "应用功能分析账号管理",
          "type": "个人信息"
        }
      ],
      "securityPractices": [
        {
          "practice": "数据在传输过程中会加密",
          "description": "您的数据会通过安全连接转移"
        },
        {
          "practice": "您可以要求开发者删除数据",
          "description": "如果您要求删除数据,开发者已提供相应的方式。"
        }
      ],
      "privacyPolicyUrl": "http://www.rockstargames.com/privacy"
    }
  }
}

Pagination and billing

This operation does not support cursor pagination; do not invent a next page.

…

When neither inputs nor URL provide locale, defaults are CN and zh-CN. Set country and lang explicitly for another locale.

Successful nonempty requests use the current database-configured price. Empty results and failures are free; each page is billed separately. Empty optional fields do not make a record empty. Missing fields, null, empty strings and arrays are preserved. Saved media URLs and cursors may expire; query again for current values.

Status codes

HTTP Meaning
200 Success; results may be empty
400 Invalid parameters or JSON
401 Missing or invalid authentication
402 Insufficient credits
429 Rate limit exceeded
502 The data request could not complete
503 API or pricing is not configured