# App Store 批量 App 排名指标 API (app_store.bulk_metrics)

- Canonical page: https://everyinfra.com/app-store-api/bulk_metrics
- Endpoint: POST /api/v1/social with {"platform": "app_store", "action": "bulk_metrics", "params": {...}}
- Price: $0.01151 per call ($11.51 per 1,000 requests); failed and empty results are not charged
- Returns: list
- Mode: sync; add "mode": "async" for slow tasks

App Store 批量排名指标按 `app_ids` 一次查最多 20 个应用，每个应用一行：能排得上的关键词总数 `keyword_count`，排第 1、前 3、前 10 的关键词个数 `top1_keywords`、`top3_keywords`、`top10_keywords`，以及这些词的月搜索量合计 `keywords_search_volume`。它回答「这几款应用谁的关键词覆盖更广、靠前的词更多」，适合竞品对比和赛道摸底。

`app_ids` 填应用链接里 id 后面那串数字，数组或逗号分隔的字符串都行，示例是 324684580；只查美国站，`country` 传别的国家会在扣费前被拒。这一项只给个数，不给具体的词。

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=app_store&action=bulk_metrics

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| app_ids | not declared | yes | not declared | 要查的 App Store 应用 ID，数组或逗号分隔的字符串，每个是应用链接里 id 后面那串数字（如 324684580）。bulk_metrics 收 1–20 个（一个应用一行，没有数据的不出行），keyword_intersection 收 2–10 个（一行一个共同关键词）；只查美国站。 |
| country | not declared | no | not declared | App Store 店面国家/地区：只支持 us（美国站，默认），传别的国家在扣费前被拒。 |
| limit | integer (1–) | no | not declared | 这次调用最多返回的条数，整数，至少为 1；不传按默认值，实际返回可能少于这个数。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| app_id | App Store 数字 ID。 |
| keyword_count | 这个 App 排得上的关键词总数（bulk_metrics、competitors）。 |
| top1_keywords | 排第 1 的关键词个数（bulk_metrics）。 |
| top3_keywords | 排进前 3 的关键词个数（bulk_metrics，含第 1）。 |
| top10_keywords | 排进前 10 的关键词个数（bulk_metrics、competitors，含前 3）。 |
| keywords_search_volume | 排得上的关键词，月搜索量合计（bulk_metrics）。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "app_store",
  "action": "bulk_metrics",
  "params": {
    "app_ids": [
      "324684580",
      "1017492454"
    ]
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "app_store",
        "action": "bulk_metrics",
        "params": {
            "app_ids": [
                "324684580",
                "1017492454",
            ],
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "app_store",
  "action": "bulk_metrics",
  "results": [
    {
      "app_id": …,
      "keyword_count": …,
      "top1_keywords": …,
      "top3_keywords": …,
      "top10_keywords": …,
      "keywords_search_volume": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### `top1_keywords`、`top3_keywords`、`top10_keywords` 可以相加吗？

不能。它们是累计口径：`top3_keywords` 含第 1，`top10_keywords` 含前 3。要得到只排第 4 到第 10 的词有多少个，用 `top10_keywords` 减去 `top3_keywords`。

### 传入的应用没有数据时会怎样？

一次收 1 到 20 个 `app_ids`，一个应用一行，没有数据的应用不出行，所以返回的行数可能少于传入的个数。对结果时按每行的 `app_id` 对号，不要按位置对。

### 想知道具体是哪些关键词，怎么办？

这一项只有个数和 `keywords_search_volume` 这个月搜索量合计。要看一个应用的具体关键词和名次，用 App 关键词排名；要看几个应用同时排得上的词，用多个 App 共同关键词，它要求 2 到 10 个应用。

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=app_store
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
