# Shopify App Keyword Rank Scraper (`scoutlayer/shopify-app-keyword-rank-scraper`) Actor

Track app rankings for any Shopify App Store keyword search — returns every result with its absolute position, sponsored status, and Built for Shopify badge.

- **URL**: https://apify.com/scoutlayer/shopify-app-keyword-rank-scraper.md
- **Developed by:** [Scoutlayer](https://apify.com/scoutlayer) (community)
- **Categories:** E-commerce, Lead generation, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

Track app rankings for any keyword search on the Shopify App Store. Input one or more keywords and the actor paginates through search result pages, returning each result as a flat dataset row with its absolute position. Don't want to poll this yourself? [Applora](https://applora.ai) already tracks keyword rankings continuously, with day-over-day position history built in.

### Features

- **Multi-Keyword**: Scrape rankings for multiple keywords in a single run
- **Pagination**: Automatically follows result pages up to `maxPages` per keyword
- **Absolute Position**: Position is counted across all pages, so position 25 is the first app on page 2
- **Sponsored Detection**: Distinguishes sponsored/ad placements from organic results
- **Built for Shopify**: Flags apps carrying the Built for Shopify badge
- **Run Stats**: Records per-keyword success/failure counts and total apps in the key-value store

### Input

| Field      | Type    | Required | Default | Description                                                     |
| ---------- | ------- | -------- | ------- | --------------------------------------------------------------- |
| `keywords` | array   | Yes      | —       | Search keywords, e.g. `["email marketing", "reviews"]`          |
| `maxPages` | integer | No       | `3`     | Max result pages per keyword. Each page contains up to 24 apps. |

### Output

#### Dataset

One row per app per keyword, ordered by position.

```json
{
  "keyword": "email marketing",
  "appHandle": "klaviyo",
  "appName": "Klaviyo: Email Marketing & SMS",
  "appUrl": "https://apps.shopify.com/klaviyo",
  "position": 1,
  "page": 1,
  "isSponsored": false,
  "isBuiltForShopify": true,
  "scrapedAt": "2024-06-01T00:00:00.000Z"
}
```

| Field               | Type    | Description                                              |
| ------------------- | ------- | -------------------------------------------------------- |
| `keyword`           | string  | The search keyword                                       |
| `appHandle`         | string  | App handle slug                                          |
| `appName`           | string  | App display name                                         |
| `appUrl`            | string  | Full App Store URL of the app                            |
| `position`          | number  | Absolute ranking position across all pages (starts at 1) |
| `page`              | number  | Source page number                                       |
| `isSponsored`       | boolean | Whether the app is in a sponsored/ad placement           |
| `isBuiltForShopify` | boolean | Whether the app carries the Built for Shopify badge      |
| `scrapedAt`         | string  | ISO 8601 timestamp of when the keyword was scraped       |

#### Stats (Key-Value Store)

```json
{
  "total": 3,
  "succeededKeywords": 3,
  "failedKeywords": 0,
  "totalApps": 216
}
```

| Field               | Description                                          |
| ------------------- | ---------------------------------------------------- |
| `total`             | Total number of keywords requested                   |
| `succeededKeywords` | Keywords where at least one result page was scraped  |
| `failedKeywords`    | Keywords that failed to fetch (network errors, etc.) |
| `totalApps`         | Total individual app rows pushed to the dataset      |

### Usage Examples

#### Track rankings for a single keyword

```json
{
  "keywords": ["email marketing"]
}
```

#### Track rankings for multiple keywords

```json
{
  "keywords": ["email marketing", "reviews", "loyalty program", "upsell"],
  "maxPages": 5
}
```

#### Scrape only the first page (top 24 results)

```json
{
  "keywords": ["dropshipping", "print on demand", "subscriptions"],
  "maxPages": 1
}
```

***

**Want rank history instead of a one-off snapshot?** [Applora](https://applora.ai) tracks keyword rankings on the Shopify App Store every day — browse [keyword competition data](https://applora.ai/keywords) or query it live over [MCP](https://applora.ai/#mcp).

# Actor input Schema

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

Search keywords to track rankings for, e.g. \["email marketing", "reviews"].

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

Maximum number of search result pages to scrape per keyword. Each page contains up to 24 apps.

## Actor input object example

```json
{
  "keywords": [
    "email marketing"
  ],
  "maxPages": 3
}
```

# Actor output Schema

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

URL of the dataset with the scraped keyword rankings

## `crawlStats` (type: `string`):

Statistics about the scrape run

# 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": [
        "email marketing"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scoutlayer/shopify-app-keyword-rank-scraper").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": ["email marketing"] }

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

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    "email marketing"
  ]
}' |
apify call scoutlayer/shopify-app-keyword-rank-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scoutlayer/shopify-app-keyword-rank-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/Wd2FnKJguzDzRJlHe/builds/aRaPon4C4J152iTFM/openapi.json
