# App Store & Google Play Keyword Popularity & Difficulty (ASO) (`carmentara/aso-keyword-research`) Actor

Get a popularity and difficulty score (0-100) for any App Store or Google Play keyword, in one run for both stores, without an Apple Search Ads account. $5 per 1,000 keywords.

- **URL**: https://apify.com/carmentara/aso-keyword-research.md
- **Developed by:** [Carmentara OU](https://apify.com/carmentara) (community)
- **Categories:** 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 keyword metrics

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

## App Store & Google Play Keyword Popularity & Difficulty (ASO)

Get a popularity and difficulty score (0-100) for any App Store or Google Play keyword, in one run for both stores, without an Apple Search Ads account. $5 per 1,000 keywords.

- **Who it's for**: App marketers, indie devs, ASO freelancers. Score 10–200 candidate keywords before a metadata update.
- **What you get**: For each `keyword + store + country` — popularity, difficulty, opportunity, plus components and the top apps snapshot (no personal/developer data).
- **How it's computed**: Transparent, deterministic formulas from public autocomplete and search results (method `public-signals-v1`). Not Apple Search Ads popularity.

Example output (from `scripts/live-check.mjs`, US, top-10; run date in PR):

| Keyword | Store  | Country | Popularity | Difficulty | Opportunity |
|--------:|:-------|:-------:|-----------:|-----------:|------------:|
| meditation | apple  | us | 92 | 90 | 9  |
| meditation | google | us | 76 | 26 | 56 |
| sleep sounds | apple  | us | 88 | 84 | 14 |
| sleep sounds | google | us | 82 | 25 | 62 |
| habit tracker | apple  | us | 90 | 74 | 23 |
| habit tracker | google | us | 82 | 22 | 64 |

Full rows in the dataset include the component fields and top-apps (sanitized).

### How scores are computed

All scores are 0–100 and deterministic with these components; see `src/scoring.ts` for exact math and unit tests.

- **Popularity** (per keyword+store+country) from autocomplete:
  - For growing prefixes of the keyword (2 chars up to full term), fetch suggestions.
  - Components:
    - `firstPrefixLength`: shortest prefix length where the exact keyword appears (shorter = more popular).
    - `bestPosition`: best rank (1-based) where the exact keyword appears (higher = more popular).
    - `suggestionCount`: count of longer-tail suggestions for the full term (broader demand).
  - Formula:
    - `prefixScore = 1 - (firstPrefixLength - minL) / (maxL - minL)` (0 if not seen)
    - `positionScore = 1 - (bestPosition - 1) / (maxPos - 1)` (0 if not seen)
    - `tailBreadthScore = min(suggestionCount / Smax, 1)`
    - Popularity = `round(100 * clamp( 0.5*prefixScore + 0.3*positionScore + 0.2*tailBreadthScore ))`

- **Difficulty** (from top-N search results):
  - Inputs:
    - `topMedianRatings`: median of `log10(ratingsCount)` over top-N
    - `top3MedianRatings`: median over top-3
    - `avgRating`: average star rating (1–5)
    - `titleMatchShare`: share of titles that contain the exact keyword or all its tokens
    - `bigAppsCount`: apps with `ratingsCount > 100k`
  - Normalize: `topMedian/6`, `top3Median/6`, `(avgRating-3)/2`, `titleMatchShare`, `min(bigAppsCount/5,1)`.
  - Formula: Difficulty = `round(100 * clamp( 0.35*topMedian + 0.25*top3Median + 0.15*avgRating + 0.15*titleMatch + 0.10*bigApps ))`

- **Opportunity** = `round(100 * Popularity/100 * (1 - Difficulty/100))`

### Inputs

See `.actor/input_schema.json`. Defaults finish under 60s.

| Field | Type | Default | Notes |
|------:|:-----|:--------|:------|
| `keywords` | string\[] | required | Max 200 in v0.1 |
| `stores` | `["apple","google"]` | both | |
| `countries` | string\[] | `["us"]` | 2-letter codes |
| `language` | string | `en` | Google Play |
| `includeSuggestions` | boolean | false | Also output up to `maxSuggestionsPerKeyword` popularity-only rows |
| `maxSuggestionsPerKeyword` | number | 10 | Cap 50 |
| `topN` | number | 10 | Max 25 |

### Pricing (proposed, pay-per-event)

- `apify-actor-start` $0.00005
- `keyword-metrics` $0.005 (per keyword+store+country)
- `keyword-suggestion` $0.0005 (per suggestion row)

Charges stop immediately when the buyer's max-charge limit is reached (`eventChargeLimitReached`).

### Usage

1. Run this actor with your keywords, both stores, and country list.
2. Consume the dataset; the Overview view shows Keyword, Store, Country, Popularity, Difficulty, Opportunity.
3. Use with our rank tracker [`carmentara/aso-rank-tracker`](https://apify.com/carmentara/aso-rank-tracker) to watch rank movement versus difficulty.
4. Schedule weekly to refresh demand and competitiveness.

### Countries

Apple storefront mapping includes at least: US (`us`), GB (`gb`), CA (`ca`), AU (`au`), DE (`de`), FR (`fr`), ES (`es`), IT (`it`), NL (`nl`), SE (`se`), JP (`jp`), BR (`br`), IN (`in`), MX (`mx`), TR (`tr`).

### Limitations

- Estimates from public signals; not Apple Search Ads popularity.
- Country coverage limited by storefront mapping and Google Play language availability.
- Polite rate limiting; very large runs may take longer.
- No personal data in outputs (no developer/seller names, no user names).

### Development

- Node 22, TS. Build with `npm run build`, test with `npm test` (offline fixtures; no live network).
- Live smoke: `npm run live` runs 3 keywords on both stores and prints scores.

### Method

`method: "public-signals-v1"` on each row.

## ASO Keyword Research (stub)

Implementation is in a PR; see branch feat/v0.1.

# Actor input Schema

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

List of seed keywords to analyze

## `stores` (type: `array`):

Target app stores to analyze

## `countries` (type: `array`):

Countries to analyze (2-letter ISO codes)

## `language` (type: `string`):

Language code for Google Play (e.g., en)

## `includeSuggestions` (type: `boolean`):

When true, includes popularity-only rows for suggestions

## `maxSuggestionsPerKeyword` (type: `integer`):

Maximum number of suggestions to output per seed

## `topN` (type: `integer`):

Number of top search results to score for difficulty

## Actor input object example

```json
{
  "keywords": [
    "meditation",
    "sleep sounds",
    "habit tracker"
  ],
  "stores": [
    "apple",
    "google"
  ],
  "countries": [
    "us"
  ],
  "language": "en",
  "includeSuggestions": false,
  "maxSuggestionsPerKeyword": 10,
  "topN": 10
}
```

# Actor output Schema

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

No description

# 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": [
        "meditation",
        "sleep sounds",
        "habit tracker"
    ],
    "stores": [
        "apple",
        "google"
    ],
    "countries": [
        "us"
    ],
    "language": "en",
    "includeSuggestions": false,
    "maxSuggestionsPerKeyword": 10,
    "topN": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("carmentara/aso-keyword-research").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": [
        "meditation",
        "sleep sounds",
        "habit tracker",
    ],
    "stores": [
        "apple",
        "google",
    ],
    "countries": ["us"],
    "language": "en",
    "includeSuggestions": False,
    "maxSuggestionsPerKeyword": 10,
    "topN": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("carmentara/aso-keyword-research").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": [
    "meditation",
    "sleep sounds",
    "habit tracker"
  ],
  "stores": [
    "apple",
    "google"
  ],
  "countries": [
    "us"
  ],
  "language": "en",
  "includeSuggestions": false,
  "maxSuggestionsPerKeyword": 10,
  "topN": 10
}' |
apify call carmentara/aso-keyword-research --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,carmentara/aso-keyword-research"
        }
    }
}
```

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/CWGoHWQnSqZWfynZY/builds/0RgUIQzhmrjj0Qpry/openapi.json
