# Google Play Competitors API (google_play.competitors)

- Canonical page: https://everyinfra.com/en/google-play-api/competitors
- Endpoint: POST /api/v1/social with {"platform": "google_play", "action": "competitors", "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=google_play&action=competitors

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| app_id | not declared | yes | not declared | The Android package name of the app whose competitors you want, such as `com.spotify.music`, or its play.google.com link with ?id=. An Apple numeric ID or anything else that is not a package name is rejected before the call runs. |
| country | not declared | no | not declared | Storefront for `competitors`. 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 |
|---|---|
| app_id | platform-native meaning |
| shared_keywords | platform-native meaning |
| avg_position | platform-native meaning |
| shared_top10_keywords | platform-native meaning |
| shared_search_volume | platform-native meaning |
| keyword_count | platform-native meaning |
| top10_keywords | platform-native meaning |
| target_app_id | platform-native meaning |
| 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": "google_play",
  "action": "competitors",
  "params": {
    "app_id": "com.whatsapp"
  }
}'
```

```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": "google_play",
        "action": "competitors",
        "params": {
            "app_id": "com.whatsapp",
        },
    },
    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": "google_play",
  "action": "competitors",
  "results": [
    {
      "app_id": …,
      "shared_keywords": …,
      "avg_position": …,
      "shared_top10_keywords": …,
      "shared_search_volume": …,
      "keyword_count": …,
      "top10_keywords": …,
      "target_app_id": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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