# App Store App keyword rankings API (app_store.keywords_for_app)

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

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| app_id | not declared | yes | not declared | Apple's numeric app ID, such as `324684580`, or the app's apps.apple.com link, from which the digits after id are taken. A Bundle ID such as com.example.app is not accepted and is rejected before the call runs. |
| country | not declared | no | not declared | Storefront for `keywords_for_app`. Only the US store is covered: leave it out or pass us; any other country is rejected before the call runs. |
| limit | integer (1–100) | no | 20 | The most rows to return in this call, an integer from 1 to 100. The default applies when you leave it out, and a call can return fewer rows. Larger values are accepted and capped at the maximum. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| keyword | A search keyword the app ranks for (keywords_for_app). |
| search_volume | Search volume of the keyword in the US App Store (keywords_for_app), demand for the whole keyword rather than traffic to this app. |
| search_rank | The app's position in that keyword's App Store search results, from 1 (keywords_for_app). |
| search_result_count | How many apps the store returns for the keyword (keywords_for_app). |
| ranked_at | When the rank and search volume for this keyword were last updated, ISO 8601 (keywords_for_app). The data refreshes weekly to monthly, not in real time. |
| app_id | platform-native meaning |
| title | Title. null when the platform has no titles (for example text-only posts). |
| url | Link to the record on the platform. |
| icon_url | platform-native meaning |
| developer | platform-native meaning |
| rating | Rating. **The scale varies by platform**: rating_scale on the same row gives the maximum (usually 5; Booking, Douban, iQIYI and NAVER use 10). Convert with rating_scale before comparing across platforms, or the comparison can come out backwards. |
| rating_scale | Maximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales. Present only when the row has a rating. |
| rating_count | Number of people who rated. null means not disclosed, not 0. |
| is_free | Whether the app is free to download (keywords_for_app). |
| price | Price as a number without a currency symbol; see currency. |
| currency | Currency code of the price (for example CNY, USD). If price is present but currency is null, do not assume a currency. |
| total_keywords | How many keywords the app ranks for in total (keywords_for_app), the same on every row; limit only sets how many of them this call returns. |
| platform | Source platform identifier, the same as platform in the request (for example 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": "keywords_for_app",
  "params": {
    "app_id": "389801252"
  }
}'
```

```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": "keywords_for_app",
        "params": {
            "app_id": "389801252",
        },
    },
    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": "keywords_for_app",
  "results": [
    {
      "keyword": …,
      "search_volume": …,
      "search_rank": …,
      "search_result_count": …,
      "ranked_at": …,
      "app_id": …,
      "title": …,
      "url": …,
      "icon_url": …,
      "developer": …,
      "rating": …,
      "rating_scale": …,
      "rating_count": …,
      "is_free": …,
      "price": …,
      "currency": …,
      "total_keywords": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## 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
