# App Rank Tracker — Keyword Rank Movement (`xtracto/app-rank-tracker`) Actor

Track where your apps rank for keywords in the App Store and Google Play, and how far they moved since the last run. Reports falling out of the window separately from never being there. Keyless, no proxy, no login.

- **URL**: https://apify.com/xtracto/app-rank-tracker.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.67 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## App Rank Tracker — Keyword Rank Movement

Track where your apps rank for keywords in the **Apple App Store** and **Google Play**, and how far they moved since the last run.

### Why use this actor

- **No account, no login, no API key.** Enter keywords and app ids, then run.
- **Movement, not just position.** "It was #6 yesterday and is #14 today" is the part worth an alert; every row carries `rank`, `previousRank` and `rankChange`.
- **Clear status for every app**: `present`, `entered-window`, `out-of-window`, `absent` or `first-seen-absent`, plus a `changeType` of `moved` when the rank changed.
- **Honest depth.** Every row says how deep the search went (`horizon`), so "not in the top 200" is never mistaken for "not published".
- **History survives runs**, rebuilds and schedules, per store, country and keyword.
- **Stable JSON output** ready for alerts, dashboards or spreadsheets. Export to JSON, CSV or Excel.

### How it works

1. You pick a store (App Store or Google Play), a country, keywords, and the apps to track.
2. For each keyword the actor runs the store's own search and records the order of the results.
3. Each tracked app's position is compared with the previous run for the same store, country and keyword.
4. You get one row per keyword and app with the current rank, the change, and a status you can alert on.

Nothing to install or babysit; schedule it daily for a rank history.

### Input

```json
{
  "store": "appstore",
  "keywords": ["budget tracker"],
  "trackedApps": ["1525179720"],
  "country": "us",
  "resultLimit": 200,
  "onlyChanges": false
}
```

| Field | Type | Description |
|---|---|---|
| `store` | string | `appstore` (Apple App Store) or `googleplay` (Google Play). Default `appstore`. |
| `keywords` | array of strings | Search terms to measure rank against. One search per keyword per run. Required. |
| `trackedApps` | array of strings | Apps to track. App Store ids are numeric (`284882215`); Google Play ids are package names (`com.example.app`). A store link is accepted; for Google Play it must include `?id=`. Required. |
| `country` | string | Two-letter store country. Default `us`. Changing it starts a fresh history. |
| `resultLimit` | integer | How many App Store results to rank against (max 200). Google Play ignores this and shows about 30. Default `200`. |
| `onlyChanges` | boolean | Only return apps that moved, entered or left the results. Every keyword is still searched and recorded. Default `false`. |

### Output

One row per keyword and tracked app. Real output from a first run on each store.

**App Store** (input above):

```json
{
  "_input": "budget tracker",
  "_source": "S1-appstore-search",
  "_scrapedAt": "2026-11-11T13:14:00Z",
  "store": "appstore",
  "country": "us",
  "keyword": "budget tracker",
  "appId": "1525179720",
  "name": "Budget app - spending tracker",
  "publisher": "Inner Grow Limited",
  "averageRating": 4.72071,
  "ratingCount": 16352,
  "rank": 1,
  "previousRank": null,
  "rankChange": null,
  "status": "present",
  "rankSource": "itunes-search-order",
  "resultsSeen": 193,
  "horizon": 200,
  "isFirstRun": true,
  "scopeChanged": false,
  "changeType": "baseline",
  "previousCheckedAt": null,
  "needsAttention": false
}
```

**Google Play** (`"store": "googleplay"`, `"trackedApps": ["com.youneedabudget.evergreen.app"]`); this app was not in the top 30 for the keyword:

```json
{
  "_input": "budget tracker",
  "_source": "S1-googleplay-search",
  "_scrapedAt": "2026-11-11T13:16:37Z",
  "store": "googleplay",
  "country": "us",
  "keyword": "budget tracker",
  "appId": "com.youneedabudget.evergreen.app",
  "name": null,
  "publisher": null,
  "averageRating": null,
  "ratingCount": null,
  "rank": null,
  "previousRank": null,
  "rankChange": null,
  "status": "first-seen-absent",
  "rankSource": "play-search-dom-order",
  "resultsSeen": 30,
  "horizon": 30,
  "isFirstRun": true,
  "scopeChanged": false,
  "changeType": "baseline",
  "previousCheckedAt": null,
  "needsAttention": false
}
```

| Field | Type | Description |
|---|---|---|
| `store`, `country`, `keyword`, `appId` | string | What was measured |
| `name`, `publisher`, `averageRating`, `ratingCount` | string, number | App details (App Store only; `null` on Google Play) |
| `rank` | integer | Position in the search results, `null` if not found |
| `previousRank`, `rankChange` | integer | Last run's rank and the change; positive means it climbed |
| `status` | string | `present`, `entered-window`, `out-of-window`, `absent` or `first-seen-absent` |
| `rankSource` | string | `itunes-search-order` (App Store result order) or `play-search-dom-order` (Google Play displayed order) |
| `resultsSeen`, `horizon` | integer | How many results the search returned and how deep ranking goes (200 App Store, 30 Google Play) |
| `isFirstRun`, `changeType` | boolean, string | `changeType` is `baseline` (first run), `moved`, `status-changed` (entered or left the results), `unchanged`, or `rebaselined` (country or depth changed) |
| `scopeChanged` | boolean | `true` when the country or depth changed, which starts a fresh history |
| `previousCheckedAt` | string | Time of the previous run |
| `needsAttention` | boolean | `true` when the app moved, entered or dropped out of the results |
| `_input`, `_source`, `_scrapedAt` | string | The keyword, data source and time of the check |

### What the statuses mean

- `present` — found this run. If the rank differs from last run, `changeType` is `moved` and `rankChange` says by how much. **Alerts.**
- `entered-window` — not ranked last run, ranked now. **Alerts.**
- `out-of-window` — ranked last run, not now (it dropped below the search depth). **Alerts.**
- `absent` — not found this run or last run. Nothing changed, no alert.
- `first-seen-absent` — not found on the very first run. No alert; double-check the app id.

### Notes

- **The App Store is the more precise of the two.** Apple returns up to 200 ranked results per search. Google Play shows about 30 results per search and labels no ads or sections, so its rank is the displayed order of those 30.
- **Rank is per country and depth.** "#7 of 200 in US" and "#7 of 30 in GB" are different measurements; changing either starts a fresh history instead of reporting a move that never happened.
- **A failed search never overwrites history**; the next successful run still measures movement against the last real reading.
- **Bad ids fail fast.** If every tracked app id is invalid for the chosen store, the run stops before searching and says why.

# Actor input Schema

## `store` (type: `string`):

Which store's search to measure against. The two give ranking of different quality and the rows say so: the App Store states rank by ordering its JSON, while Google Play publishes no ranking marker at all and the position is the search page's displayed order.

## `keywords` (type: `array`):

Search terms to measure rank against, such as 'budget tracker'. One request per keyword per run.

## `trackedApps` (type: `array`):

The apps whose rank you want. App Store ids are numeric ('284882215'); Google Play ids are package names ('com.example.app'). A store URL is accepted and reduced to its id — for Play it must include the '?id=' parameter, because a bare hostname is itself a valid package-name shape and would otherwise be tracked as an app that cannot exist.

## `country` (type: `string`):

Two-letter store country. Rank is country-specific, so a snapshot from one country is never compared against another — changing this starts a fresh baseline rather than reporting a phantom move.

## `resultLimit` (type: `integer`):

How many results to rank against. This is the horizon: an app absent from the results is reported as out-of-window rather than unranked, and the horizon is on every row so 'not in the top 200' is never read as 'not published'. Apple caps its search at 200 server-side regardless of what is asked. Google Play ignores this — its search page ships about 30 results before infinite scroll takes over.

## `onlyChanges` (type: `boolean`):

Return only apps that moved, entered or left the window. Every keyword is still searched and its snapshot still recorded, so nothing is missed while this is on.

## Actor input object example

```json
{
  "store": "appstore",
  "keywords": [
    "budget tracker"
  ],
  "trackedApps": [
    "1525179720"
  ],
  "country": "us",
  "resultLimit": 200,
  "onlyChanges": false
}
```

# Actor output Schema

## `results` (type: `string`):

One row per scraped record, stored in the run's default dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "budget tracker"
    ],
    "trackedApps": [
        "1525179720"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/app-rank-tracker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "keywords": ["budget tracker"],
    "trackedApps": ["1525179720"],
}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/app-rank-tracker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "budget tracker"
  ],
  "trackedApps": [
    "1525179720"
  ]
}' |
apify call xtracto/app-rank-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xtracto/app-rank-tracker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/s7ZScJG5un8IU5IOY/builds/8JNbNatfZKjDIBWn5/openapi.json
