# Apple Search Ads API: App Store Keyword Rankings and Ad Intel (`nabeelbaghoor/apple-search-ads-keyword-intelligence-api`) Actor

Apple Search Ads API and App Store keyword rank tracker: daily keyword rankings and 30 day history, top and organic keywords, search volume, top charts, category ranks, ad creatives, top advertisers and Search Ads paid keywords and paying apps (MobileAction). Bring your own key.

- **URL**: https://apify.com/nabeelbaghoor/apple-search-ads-keyword-intelligence-api.md
- **Developed by:** [Nabeel Hassan](https://apify.com/nabeelbaghoor) (community)
- **Categories:** Developer tools, Marketing, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 ranking rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Apple Search Ads API: App Store Keyword Rankings and Ad Intel

Track App Store keyword rankings and their daily history, see which keywords competitors pay for in Apple Search Ads, and pull mobile ad creatives and top advertisers, as clean rows you can export to CSV, Excel or JSON.

This actor wraps the read endpoints of the MobileAction API for App Store optimization (ASO), app store keyword research, competitor ad monitoring and Apple Search Ads planning. Bring your own MobileAction API key.

BYOK, not live tested: every route, parameter and response field comes from MobileAction's own documentation (docs.mobileaction.co), and the routes were probed on 2026-11-05 with an invalid key of realistic length. No route has been run against a live key.

### What it does

- **Keyword rankings**: the daily App Store rank of one or more apps for up to 100 keywords per request, split by iPhone and iPad.
- **Keyword ranking history**: an app's daily rank for a keyword over up to 30 days, ready for a rank tracking chart.
- **Top keywords and organic keywords**: every keyword an app ranks for on a date, with rank and search volume. Reverse engineer a competitor's ASO keyword set.
- **Keyword metadata**: search volume, Apple Search Ads popularity score, iPhone and iPad ranking chance, number of competing apps and the brand app for a keyword.
- **Apps ranking for a keyword** and **organic impression share**: who wins a search term organically, and how the impressions split between apps.
- **Top charts and category ranking history**: free, paid and grossing App Store charts by category, country and device, and an app's category ranks over time.
- **Ad intelligence**: an app's ad creatives across networks such as Facebook, AdMob, Unity, AppLovin and TikTok, the top advertisers list, and an app's ads split by network, country or language. App Store and Google Play apps.
- **Apple Search Ads insights**: the paid keywords an app bids on with its share of impressions and slot 1 and slot 2 shares, and the apps paying for a keyword, with custom product page counts.
- **Dropdowns from the documentation**: App Store categories, chart types, devices, chart versions and ad media types are built in.
- **Read only and pay only for results**: no route that adds or deletes tracked keywords in your MobileAction workspace is called. Empty answers and refused lookups become a free row that says why.

### What you need

A MobileAction plan with API access. MobileAction offers the API to enterprise customers through its sales team; the actor never signs up or buys anything for you.

1. Ask MobileAction for API access and your API key.
2. Paste the key into the **MobileAction API key** field, or set the DATA_API_KEY secret. The key is sent only as the `token` parameter to api.mobileaction.co, as the documentation shows, and is removed from every log line and message.

Every request spends MobileAction credits from your plan's allowance: 3 for keyword rankings, 10 for history, charts and category ranks, 20 for top keywords, 50 for organic keywords and Search Ads insights, 150 per top advertisers page and 200 per ad creatives page. The run's final status shows the credits left.

### Input

| Field | Modes | Notes |
| --- | --- | --- |
| `mode` | all | `keywordRankings`, `keywordHistory`, `topKeywords`, `organicKeywords`, `keywordMetadata`, `keywordApps`, `impressionShare`, `topCharts`, `categoryRankings`, `adCreatives`, `topAdvertisers`, `adDistribution`, `searchAdsPaidKeywords`, `searchAdsPayingApps` |
| `apiKey` | all | your MobileAction API key; falls back to the DATA_API_KEY secret |
| `trackIds` | app modes | App Store track IDs or links; ad modes also take Google Play package names |
| `keywords` | keyword modes | one keyword per line |
| `countryCode` | keyword, chart and Search Ads modes | App Store storefront, default US |
| `device` | top and organic keywords, impression share, top charts | `IPHONE` or `IPAD` |
| `date` | rankings, top and organic keywords, top charts | YYYY-MM-DD, default yesterday |
| `startDate`, `endDate` | history, category ranking, ad and Search Ads modes | up to 30 days (14 for Search Ads), default the last 7 days |
| `topKeywordsLimit` | topKeywords | default 100 |
| `categoryId`, `rankingType`, `chartVersion` | topCharts | App Store category, FREE, PAID or GROSSING, v1 or v2 |
| `hourly` | categoryRankings | exact ranks instead of daily averages |
| `adCountry`, `adNetwork` | ad modes | optional filters |
| `platformId` | topAdvertisers | both stores, Google Play or App Store |
| `distribution`, `adMediaType` | adDistribution | network, country or language; creatives or impressions |
| `maxPages` | adCreatives, topAdvertisers | pages of 50, default 1 |
| `maxResults` | all | stop after this many rows (default 1,000) |

Example input:

```json
{
    "mode": "keywordHistory",
    "trackIds": ["366562751"],
    "keywords": ["ticket", "concert tickets"],
    "countryCode": "US",
    "startDate": "2026-10-01",
    "endDate": "2026-10-30"
}
```

### Output

A keyword rank row (the values are illustrative):

```json
{
    "recordType": "keywordRank",
    "found": true,
    "mode": "keywordHistory",
    "query": "366562751 US ticket",
    "trackId": "366562751",
    "keyword": "ticket",
    "countryCode": "US",
    "device": "IPHONE",
    "date": "2026-10-01",
    "rank": 3
}
```

An Apple Search Ads paid keyword row:

```json
{
    "recordType": "searchAdsKeyword",
    "found": true,
    "mode": "searchAdsPaidKeywords",
    "trackId": "1482155847",
    "keyword": "free phone games",
    "share": 12.5,
    "slot1Share": 25,
    "slotShares": { "1": 25 }
}
```

Other row types: `topKeyword` (keyword, rank, searchVolume), `keywordMetadata` (searchVolume, searchAdsPopularity, iphoneChance, ipadChance, app counts, brandAppTrackId), `keywordApps` (iphoneApps, ipadApps), `impressionShare` (trackId, share), `chartRank` (rank, trackId, categoryName, rankingType), `categoryRank`, `adCreative` (appName, adTitle, callToAction, networks, countries, mediaUrl, width, height, firstSeenDate, lastSeenDate), `topAdvertiser` (rank, appName, developerName, adCount, creativeCount, networks), `adDistribution` (name, percent) and `searchAdsApp` (trackId, share, slot shares, product page counts).

### Pricing

Pay per event, only for rows with data:

| Event | Price |
| --- | --- |
| Ranking row (keyword rank, top or organic keyword, impression share, chart position, category rank) | $0.005 |
| Keyword insight (keyword metadata or keyword app list) | $0.01 |
| Ad creative | $0.015 |
| Top advertiser | $0.01 |
| Ad distribution slice | $0.005 |
| Apple Search Ads share (paid keyword or paying app) | $0.01 |

Your MobileAction plan and its credits are billed separately by MobileAction.

### FAQ

#### What is the MobileAction API?

MobileAction is an App Store optimization and Apple Search Ads intelligence platform. Its REST API returns App Store and Google Play keyword rankings, keyword search volume, top charts, category ranks, mobile ad intelligence and Apple Search Ads insights as JSON, paid for with per period credits.

#### How do I track App Store keyword rankings for my app?

Choose Keyword rankings, add your App Store track ID and up to 100 keywords per request. For a trend, choose Keyword ranking history with a start and end date up to 30 days apart and schedule the actor to run monthly.

#### Can I see which keywords a competitor bids on in Apple Search Ads?

Yes. Search Ads paid keywords returns the keywords an app was seen bidding on over up to 14 days, with its share of all ad impressions and its share of slot 1 and slot 2. Search Ads paying apps answers the reverse: which apps pay for a given keyword.

#### Where does the keyword search volume come from?

From MobileAction's keyword metadata, which also returns the Apple Search Ads popularity score, the chance of an iPhone or iPad app ranking, and how many apps compete for the keyword.

#### Does it cover Google Play?

The ad intelligence modes take Google Play package names such as com.facebook.katana, and top advertisers can be limited to Google Play. The keyword, chart and Search Ads modes are App Store only.

#### How do I find an app's track ID?

It is the number after id in the app's App Store link: apps.apple.com/us/app/facebook/id284882215 is 284882215. You can paste the full link instead.

#### Why did a run cost many MobileAction credits?

Credits are per request and vary by endpoint: ad creatives cost 200 per page and top advertisers 150 per page. Keep Pages per lookup at 1 until you know you need more.

#### What do I pay?

$0.005 per ranking row or ad distribution slice, $0.01 per keyword insight, top advertiser or Apple Search Ads share, and $0.015 per ad creative. Empty answers and refused lookups are free.

### Keyword map

Apple Search Ads API, Apple Search Ads competitor keywords, App Store keyword rankings API, ASO keyword tracker, keyword rank history, App Store search volume, keyword popularity, top keywords of an app, organic keywords, top charts API, category rankings, mobile ad intelligence, ad creatives API, top advertisers, ad network distribution, custom product pages, MobileAction API.

### Routes and verification

| Mode | Route (GET api.mobileaction.co) |
| --- | --- |
| Keyword rankings | /appstore-keyword-ranking/{trackId}/{countryCode}/keywordrankings |
| Keyword ranking history | /appstore-keyword-ranking/{trackId}/{countryCode}/{keyword}/keywordrankings |
| Top keywords | /appstore-keyword-ranking/{trackId}/{countryCode}/top-keywords |
| Organic keywords | /appstore-keyword-ranking/{trackId}/{countryCode}/{device}/organic-keywords |
| Keyword metadata | /appstore-keyword-ranking/{countryCode}/keyword-metadata |
| Apps ranking for a keyword | /appstore-keyword-ranking/{countryCode}/keyword-apps |
| Organic impression share | /appstore-keyword-ranking/organic-impression-share/keyword/{keyword}/{countryCode}/{device} |
| Top charts | /appstore-category-v2/topcharts/{version}/{categoryId}/{countryCode}/{rankingType}/{device} |
| Category ranking history | /appstore-category-v2/rankings/{version}/{trackId}/{countryCode} |
| Ad creatives | /ad-intelligence/get-creatives-by-track-id |
| Top advertisers | /ad-intelligence/top-advertisers |
| Ad distribution | /ad-intelligence/network_distribution, country_distribution, language_distribution |
| Search Ads paid keywords | /searchads-stats/paid-keywords/{trackId}/{countryCode} |
| Search Ads paying apps | /searchads-stats/paying-apps/{countryCode} |

Probed twice on 2026-11-05 with an invalid 40 character key: documented routes answered 401 with an empty body; invented route prefixes (such as /appstore-keyword-rankingz and /searchads-statz) answered 404 JSON "Not Found". The routes that add or delete tracked keywords, and the Search Ads account and report routes, are not wrapped.

### Licensing and data use

This actor works only with your own MobileAction API key, and your agreement with MobileAction applies. Its terms license the service for your internal business purposes and do not allow reselling or sublicensing the data, so keep the results inside your organisation. Keep your key private. This actor is not affiliated with or endorsed by MobileAction.

# Actor input Schema

## `mode` (type: `string`):

Each mode calls one documented read endpoint of the MobileAction API with your own API key. Every request spends MobileAction credits from your plan (shown in brackets). Nothing in your MobileAction workspace is ever added, changed or deleted.

## `apiKey` (type: `string`):

Your own MobileAction API key. API access is an enterprise feature: MobileAction issues keys through its sales and support team. Sent only as the token parameter to api.mobileaction.co and removed from every log line. Leave empty to use the DATA_API_KEY secret.

## `trackIds` (type: `array`):

One app per line. App Store track ID (the number after id in an apps.apple.com link, such as 284882215 for Facebook) or a full App Store link. Ad creatives and ad distribution also take Google Play package names such as com.facebook.katana. Used by keyword rankings, history, top and organic keywords, category ranking, ad creatives, ad distribution and Search Ads paid keywords.

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

One search keyword per line, such as ticket or photo editor. Keyword rankings send up to 100 per request; history, metadata, app lists, impression share and Search Ads paying apps make one request per keyword.

## `countryCode` (type: `string`):

The App Store storefront for keyword, chart and Search Ads modes.

## `device` (type: `string`):

Top keywords, organic keywords, organic impression share and top charts.

## `date` (type: `string`):

YYYY-MM-DD. Keyword rankings, top keywords, organic keywords and top charts. Leave empty for yesterday.

## `startDate` (type: `string`):

YYYY-MM-DD. Keyword history, category ranking and ad intelligence allow up to 30 days a request; Search Ads modes up to 14 days. Leave empty for 7 days before the end date.

## `endDate` (type: `string`):

YYYY-MM-DD, inclusive (exclusive for category ranking, as documented). Leave empty for yesterday.

## `topKeywordsLimit` (type: `integer`):

Top keywords. How many keywords the API returns per app; the documented default is 100.

## `categoryId` (type: `string`):

Top charts. App Store category, from the documentation's App Store Categories table.

## `rankingType` (type: `string`):

Top charts.

## `chartVersion` (type: `string`):

Top charts and category ranking. v1 is the iOS 11 and earlier chart with every category; v2 is the iOS 12 and later chart, overall category only.

## `hourly` (type: `boolean`):

Category ranking. On returns the exact ranks as recorded; off returns daily average ranks.

## `adCountry` (type: `string`):

Ad creatives, top advertisers and ad distribution. Only ads seen in this country.

## `adNetwork` (type: `string`):

Ad creatives and top advertisers. Only ads on this network, by name, such as facebook, admob, unity, applovin or tiktok.

## `platformId` (type: `string`):

Top advertisers.

## `distribution` (type: `string`):

Ad distribution.

## `adMediaType` (type: `string`):

Ad distribution by network or country. The language split takes no media type.

## `maxPages` (type: `integer`):

Ad creatives and top advertisers. Each page holds up to 50 rows and costs 200 (creatives) or 150 (advertisers) MobileAction credits. Reading stops early at the last page.

## `maxResults` (type: `integer`):

The run stops after this many rows.

## Actor input object example

```json
{
  "mode": "keywordRankings",
  "trackIds": [
    "366562751"
  ],
  "keywords": [
    "ticket"
  ],
  "countryCode": "US",
  "device": "IPHONE",
  "topKeywordsLimit": 100,
  "categoryId": "36",
  "rankingType": "FREE",
  "chartVersion": "v1",
  "hourly": false,
  "adCountry": "any",
  "platformId": "any",
  "distribution": "network",
  "adMediaType": "any",
  "maxPages": 1,
  "maxResults": 1000
}
```

# Actor output Schema

## `records` (type: `string`):

One row per ranking, keyword, chart position, ad or share the chosen mode read.

# 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 = {
    "trackIds": [
        "366562751"
    ],
    "keywords": [
        "ticket"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nabeelbaghoor/apple-search-ads-keyword-intelligence-api").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 = {
    "trackIds": ["366562751"],
    "keywords": ["ticket"],
}

# Run the Actor and wait for it to finish
run = client.actor("nabeelbaghoor/apple-search-ads-keyword-intelligence-api").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 '{
  "trackIds": [
    "366562751"
  ],
  "keywords": [
    "ticket"
  ]
}' |
apify call nabeelbaghoor/apple-search-ads-keyword-intelligence-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nabeelbaghoor/apple-search-ads-keyword-intelligence-api"
        }
    }
}
```

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/ggeccE9FrxBfRaW0n/builds/aDedDQKFZays9Q9DS/openapi.json
