> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Play Keyword Rankings

> Search Google Play for any keyword and get the apps that rank for it, in order: rank, app, developer, rating and price. Use it to track where you and your competitors rank for the searches that matter.

`POST /v1/data/google-play/keyword-rankings/run`

**Pricing:** $0.001 per ranked app ($1.00 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**keywords** `string[]` *required*

Searches to run on Google Play, e.g. meditation or budget tracker. One or more.

**country** `string` (default: US)

Google Play country to rank in, e.g. United States. Defaults to United States.

235 allowed values, for example `AF` (Afghanistan), `AL` (Albania), `DZ` (Algeria), `AS` (American Samoa), `AD` (Andorra), `AO` (Angola), `AI` (Anguilla), `AQ` (Antarctica), `AG` (Antigua and Barbuda), `AR` (Argentina). Fetch the full list with `GET /v1/data/google-play/keyword-rankings?expand=options`.

**maxResults** `integer` (default: 10)

How many ranked apps to return per keyword, from rank 1 down. Defaults to 10; use 0 for all (up to 200).

Max `200`.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/google-play/keyword-rankings/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "keywords": [
      "meditation"
    ],
    "country": "US",
    "maxResults": 10
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/google-play/keyword-rankings/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "keywords": [
        "meditation"
    ],
    "country": "US",
    "maxResults": 10
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/google-play/keyword-rankings/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "keywords": [
    "meditation"
  ],
  "country": "US",
  "maxResults": 10
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one ranked app, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `keyword` | Keyword | text |
| `country` | Country | text |
| `rank` | Rank | number |
| `appId` | App ID | text |
| `title` | Title | text |
| `appUrl` | App URL | url |
| `developer` | Developer | text |
| `rating` | Rating | rating |
| `free` | Free | boolean |
| `price` | Price | number |
| `currency` | Currency | text |
| `icon` | Icon | image |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "google-play/keyword-rankings",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "rating": 4.7,
      "appId": "com.spotlightsix.zentimerlite2",
      "rank": 1,
      "country": "US",
      "free": true,
      "icon": "https://play-lh.googleusercontent.com/H7MMtGtHuKqoT73wpfXXuqBgufaw3k03jUG58cqwJ1KITPU6nY8c1cvdAYCNcZY7xRwKwi-G3W6yltje3VbMnfY",
      "developer": "Insight Network Inc",
      "keyword": "meditation",
      "appUrl": "https://play.google.com/store/apps/details?id=com.spotlightsix.zentimerlite2",
      "title": "Insight Timer - Meditation App",
      "currency": "USD",
      "price": 0
    }
  ]
}
```

## Related APIs

To start from an app instead of a keyword use [`google-play/app-keywords`](https://docs.mindcase.co/apis/google-play/app-keywords); for the App Store use [`app-store/keyword-rankings`](https://docs.mindcase.co/apis/app-store/keyword-rankings).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.