主题
Google Play 批量应用指标(实时)
POST /v3/dataforseo_labs/google/bulk_app_metrics/live
本接口使用 POST 方法,请求路径为:
POST https://api.seermartech.cn/v3/dataforseo_labs/google/bulk_app_metrics/live
用于获取最多 1000 个 Google Play 应用的排名指标。返回结果根据请求中的 app_id 生成。
app_id 可从 Google Play 应用页 URL 中获取。例如:
https://play.google.com/store/apps/details?id=org.telegram.messenger
,应用的 app_id 为 org.telegram.messenger。
数据更新频率: 每周更新。最新更新时间可通过 /v3/dataforseo_labs/status/ 接口查询。
计费说明
每次请求都会产生费用。该接口当前未在文档中提供固定单价,扣费以响应头 X-SeerMarTech-Charge-CNY 为准。
接口限制:
- 每个 Live API 请求只能 1 个任务。
- 单个请求最多提交 1000 个应用 ID。 平台限流以认证说明中的 30/60/120 次/分钟规则为准。
- 请求体使用 UTF-8 编码的 JSON 格式。
请求参数
请求体为 JSON 数组,数组中的每个对象代表一个任务。
| 参数 | 类型 | 填 | 说明 |
|---|---|---|---|
app_ids | array | 是 | Google Play 应用 ID 列表。应用 ID 可从 Google Play 应用 URL 中获取。例如,https://play.google.com/store/apps/details?id=org.telegram.messenger 中的应用 ID 为 org.telegram.messenger。最多可提交 1000 个应用 ID。 |
location_name | string | 条件填 | 地区完整名称。未指定 location_code 时填写。location_name 与 location_code 至少填写一个。目前本接口支持美国地区。示例:United States |
location_code | integer | 条件填 | 地区代码。未指定 location_name 时填写。location_name 与 location_code 至少填写一个。目前美国地区代码为 2840。 |
language_name | string | 条件填 | 语言完整名称。未指定 language_code 时填写。language_name 与 language_code 至少填写一个。目前本接口支持英语。示例:English |
language_code | string | 条件填 | 语言代码。未指定 language_name 时填写。language_name 与 language_code 至少填写一个。目前英语代码为 en。 |
tag | string | 否 | 用户自定义任务标识,用于识别任务并匹响应结果。最大长度为 255 个字符。提交的值会原样返回在响应的 data 对象中。 |
可通过以下接口获取可用的地区和语言列表:
GET https://api.seermartech.cn/v3/dataforseo_labs/locations_and_languages
请求示例
json
[
{
"app_ids": [
"org.telegram.messenger",
"com.whatsapp"
],
"location_code": 2840,
"language_code": "en",
"tag": "app-metrics-example"
}
]响应字段
接口返回 JSON 数据,顶层 tasks 数组。
顶层响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
version | string | 当前 API 版本。 |
status_code | integer | 通用状态码。完整错误码列表请参考 /v3/appendix/errors。建议客户端实现完善的异常和错误处理机制。 |
status_message | string | 通用状态说明。 |
time | string | 请求执行耗时,单位为秒。 |
cost | float | 平台原始 USD 成本兼容字段;人民币实扣以 X-SeerMarTech-Charge-CNY 为准。 |
tasks_count | integer | tasks 数组中的任务总数。 |
tasks_error | integer | tasks 数组中返回错误的任务数。 |
tasks | array | 任务结果数组。 |
任务字段
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 任务唯一标识,UUID 格式。 |
status_code | integer | 任务状态码,通常在 10000 至 60000 范围。 |
status_message | string | 任务状态说明。 |
time | string | 任务执行耗时,单位为秒。 |
cost | float | 平台原始 USD 成本兼容字段;人民币实扣以 X-SeerMarTech-Charge-CNY 为准。 |
result_count | integer | result 数组中的数量。 |
path | array | 请求路径信息。 |
data | object | 含请求中提交的任务参数。 |
result | array | 任务结果数组。 |
result 字段
| 字段 | 类型 | 说明 |
|---|---|---|
se_type | string | 搜索引擎类型。 |
app_id | string | 请求中的应用 ID。 |
location_code | integer | 请求中的地区代码。 |
language_code | string | 请求中的语言代码。 |
total_count | integer | 数据库中与请求的结果总数。 |
items_count | integer | items 数组中的结果数量。 |
items | array | 指定应用的排名指标数据。 |
items 字段
| 字段 | 类型 | 说明 |
|---|---|---|
se_type | string | 搜索引擎类型。 |
app_id | string | 请求中的应用 ID。 |
metrics | object | 应用排名指标。 |
metrics 字段
google_play_search_organic
Google Play 自然搜索结果中的应用排名数据。
| 字段 | 类型 | 说明 |
|---|---|---|
pos_1 | integer | 应用在自然搜索结果中排名第 1 的结果页数量。 |
pos_2_3 | integer | 应用在自然搜索结果中排名第 2 至第 3 的结果页数量。 |
pos_4_10 | integer | 应用在自然搜索结果中排名第 4 至第 10 的结果页数量。 |
pos_11_100 | integer | 应用在自然搜索结果中排名第 11 至第 100 的结果页数量。 |
count | integer | 含该应用的自然搜索结果页总数。 |
search_volume | integer | 该应用排名在 Google Play 自然搜索中的总搜索量。 |
curl 示例
bash
curl --location --request POST \
"https://api.seermartech.cn/v3/dataforseo_labs/google/bulk_app_metrics/live" \
--header "Authorization: Bearer smt_live_YOUR_KEY" \
--header "Content-Type: application/json" \
--data-raw '[
{
"app_ids": [
"org.telegram.messenger",
"com.whatsapp"
],
"location_code": 2840,
"language_code": "en",
"tag": "app-metrics-example"
}
]'Python 示例
python
import requests
url = "https://api.seermartech.cn/v3/dataforseo_labs/google/bulk_app_metrics/live"
headers = {
"Authorization": "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json"
}
post_data = [
{
"app_ids": [
"org.telegram.messenger",
"com.whatsapp"
],
"location_name": "United States",
"language_name": "English"
}
]
response = requests.post(url, headers=headers, json=post_data)
result = response.json()
if result.get("status_code") == 20000:
print(result)
else:
print(
"请求失败,状态码:%s,信息:%s"
% (result.get("status_code"), result.get("status_message"))
)TypeScript 示例
typescript
import axios from "axios";
const postData = [
{
app_ids: [
"org.telegram.messenger",
"com.whatsapp",
],
location_code: 2840,
language_code: "en",
tag: "app-metrics-example",
},
];
axios({
method: "post",
url: "https://api.seermartech.cn/v3/dataforseo_labs/google/bulk_app_metrics/live",
headers: {
Authorization: "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json",
},
data: postData,
})
.then((response) => {
// 处理接口返回结果
console.log(response.data);
})
.catch((error) => {
// 处理请求异常
console.error(error.response?.data || error.message);
});响应示例
json
{
"version": "0.1.20220428",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.2718 sec.",
"cost": 0.0102,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"id": "11111111-2222-3333-4444-555555555555",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.2500 sec.",
"cost": 0.0102,
"result_count": 1,
"path": [
"v3",
"dataforseo_labs",
"google",
"bulk_app_metrics",
"live"
],
"data": {
"api": "dataforseo_labs",
"function": "bulk_app_metrics",
"se_type": "google",
"app_ids": [
"org.telegram.messenger",
"com.whatsapp"
],
"location_code": 2840,
"language_code": "en",
"tag": "app-metrics-example"
},
"result": [
{
"se_type": "google",
"app_id": "org.telegram.messenger",
"location_code": 2840,
"language_code": "en",
"total_count": 1,
"items_count": 1,
"items": [
{
"se_type": "google",
"app_id": "org.telegram.messenger",
"metrics": {
"google_play_search_organic": {
"pos_1": 120,
"pos_2_3": 245,
"pos_4_10": 680,
"pos_11_100": 1540,
"count": 2585,
"search_volume": 987654
}
}
}
]
}
]
}
]
}实用场景
- 批量评估应用自然排名分布:统计应用在第 1 名、第 2 至 3 名及排名区间的数量,定位 ASO 优化重点。
- 对比竞品应用搜索表现:一次提交多个 Google Play 应用,比较竞品的覆盖量与排名层级。
- 衡量覆盖增长:定期记录
count和search_volume,评估应用覆盖及潜在的变化趋势。 - 筛选高潜力应用市场:结合地区和语言维度分析应用排名指标,为市场拓展和本地化运营提供依据。
- 建立 ASO 周期监测报表:利用每周更新的数据生成应用排名趋势报告,支持版本发布和推广效果复盘。