# Amazon Keyword Rank Tracker (`phone_number_scraper/amazon-keyword-rank-tracker`) Actor

\[ 1k / 1$ ] Amazon Keyword Rank Tracker that follows where your ASINs and brands rank in Amazon search for any keyword: organic and sponsored positions, share of shelf, SERP snapshots and rank changes since the last run. Monitor Amazon SEO over time.

- **URL**: https://apify.com/phone_number_scraper/amazon-keyword-rank-tracker.md
- **Developed by:** [Phone Number Scraper](https://apify.com/phone_number_scraper) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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

### Amazon Keyword Rank Tracker

Amazon Keyword Rank Tracker shows where your ASINs and brands appear in Amazon search for any keyword. It scans the public Amazon search result pages, finds your products, and reports the organic rank, the sponsored position, the page number and how far the rank moved since your last check. 📈

Amazon Keyword Rank Tracker is made for Amazon sellers, brand managers, agencies and SEO teams who need a repeatable way to measure search visibility. Add keywords, add the ASINs or brands to follow, and schedule Amazon Keyword Rank Tracker to build a rank history for every marketplace you care about.

> **At a glance:** Amazon Keyword Rank Tracker writes three record types (`rank`, `serpResult`, `summary`), covers 21 Amazon marketplaces, needs no login, and costs **$1.49 per 1,000 results**.

| Item | Details |
|---|---|
| Actor | Amazon Keyword Rank Tracker |
| Tracks | ASINs, product URLs and brand names |
| Measures | Organic rank, sponsored rank, share of shelf, rank change |
| Depth | You choose how many positions to scan per keyword |
| Marketplaces | United States plus 20 other Amazon sites |

### 🔹 Amazon Keyword Rank Tracker Key Features

> **Key Features:** organic and sponsored positions, share of shelf, SERP snapshots and rank changes between runs.

- Amazon Keyword Rank Tracker walks the Amazon search result pages for every keyword until your chosen depth is reached or Amazon shows no further page.
- It reports two ranks: an organic rank that ignores ads, and an absolute rank that counts ads as positions.
- It tells you whether a tracked product also appears as a sponsored ad and the highest sponsored position it reached.
- It tracks single ASINs, product URLs and whole brands in the same run.
- It remembers the previous run and reports the change, with labels such as up, down, same, new, entered or lost.
- It can flag a record as an alert when the organic rank moved by a number of positions you set.
- It saves a product snapshot with price, rating, review count and badges next to every rank.
- It optionally stores the full ranked list of Amazon results for each keyword.

### ✅ Why Use Amazon Keyword Rank Tracker?

> **Why Use This Actor:** you measure search position the way a shopper sees it, without checking pages by hand.

- Amazon Keyword Rank Tracker turns a manual task into a scheduled, structured report.
- Separate tracking names let you keep one history per client, brand or product list.
- Summary records show the organic versus sponsored mix of Amazon results for every keyword.
- Amazon Keyword Rank Tracker exports clean JSON, CSV or Excel that is ready for dashboards and client reports.

### 📦 What Data Can Amazon Keyword Rank Tracker Extract?

Amazon Keyword Rank Tracker writes one dataset with a `recordType` field on every row.

- **rank:** one per tracked ASIN or brand and keyword, found or not found within the scanned depth.
- **serpResult:** one per scanned search position, so you get the complete ranked list.
- **summary:** one per keyword, with positions scanned, organic and sponsored counts, share of shelf, average price and rating, and the top five organic and sponsored results.

> **Good to know:** a rank record is still written when a product is not found, so gaps in visibility show up in your data.

#### 🧮 How Amazon Keyword Rank Tracker Measures Share of Shelf

Share of shelf is the percentage of scanned Amazon positions taken by your tracked ASINs or brands. If Amazon Keyword Rank Tracker scans 30 positions and 3 belong to your brand, the share is 10 percent. Sponsored and organic appearances both count, and a position matched by two of your targets is counted once.

### 🚀 How to Use Amazon Keyword Rank Tracker

Setting up Amazon Keyword Rank Tracker takes a few minutes, and you can start from the prefilled example keyword.

1. Open the Actor in Apify Console and go to the Input tab.
2. Enter your **Keywords**, one search phrase per line.
3. Add the **ASINs to track** and, if you like, **Brands to track**.
4. Choose the Amazon marketplace and, on amazon.com, a delivery ZIP code.
5. Set the **Search depth** and keep **Compare with previous run** on.
6. Start the run, then open the Tracked ranks, Search results and Keyword summary views.

For a rank history, schedule the same input of Amazon Keyword Rank Tracker daily or weekly and keep the same **Tracking name**.

### 🧭 Example Run: What Amazon Keyword Rank Tracker Produces

Imagine two keywords, one ASIN, one brand and a search depth of 30. For each keyword, Amazon Keyword Rank Tracker writes 2 `rank` records, 30 `serpResult` records and 1 `summary`, which makes 33 records.

Across both keywords that is 66 results, or about $0.10 at $1.49 per 1,000 results. Switch off **Include every SERP position** and the same run of Amazon Keyword Rank Tracker shrinks to 6 records.

### 🔍 How to Track an ASIN's Rank for an Amazon Keyword

Put the keyword in **Keywords** and the ASIN in **ASINs to track**. Amazon Keyword Rank Tracker scans the results and returns a `rank` record with the page number, the position on that page and the organic rank.

To follow a brand instead, add its name to **Brands to track**. A result matches when the brand appears as a whole word in the result title. The first organic match is the brand's rank, and every match counts toward its share of shelf.

### ❓ Can You Use Amazon Keyword Rank Tracker to See Rank Changes Over Time?

Yes. Each **Tracking name** keeps its own remembered ranks. On the next run, Amazon Keyword Rank Tracker compares the new organic rank with the old one and writes `previousOrganicRank`, `rankChange` and `trend`.

A positive `rankChange` means the product moved up. The first run for a keyword and target is labelled `new`, because there is nothing to compare yet.

#### 🏷️ Trend Labels Explained

| `trend` | Meaning |
|---|---|
| `up` / `down` / `same` | The organic rank improved, dropped or stayed identical. |
| `new` | No earlier result is stored for this keyword and target. |
| `entered` | Earlier it was not ranked, now it has an organic rank. |
| `lost` | It had an organic rank before and is not found now. |
| `not-ranked` | Not ranked organically in either run. |

### 🎯 Amazon Keyword Rank Tracker Use Cases

> **Use Cases:** SEO monitoring, ad visibility checks, competitor benchmarking and client reporting.

- **Amazon SEO tracking:** watch how listing changes affect search position.
- **Sponsored versus organic:** see whether you rank organically or only through ads.
- **Competitor benchmarking:** add rival brands and compare their share of shelf.
- **Launch monitoring:** follow a new ASIN as it climbs Amazon search for target keywords.
- **Agency reporting:** keep one tracking name per client and export a clean report.
- **Market snapshots:** use serpResult rows to study prices, ratings and badges of the top results.

Sellers use Amazon Keyword Rank Tracker to confirm that listing edits worked, and agencies use Amazon Keyword Rank Tracker to show clients how visibility changes week by week.

### ⚙️ Amazon Keyword Rank Tracker Input

Amazon Keyword Rank Tracker needs one required field. Without `asins` or `brands` you still get summaries and, if enabled, every scanned position.

> **Input:** only `keywords` is required. Add `asins` or `brands` to get rank records.

| Field | Type | Default | What it does |
|---|---|---|---|
| `keywords` | array | one example phrase | Search phrases to check. |
| `asins` | array | empty | ASINs or product URLs to track. |
| `brands` | array | empty | Brand names to match in result titles. |
| `marketplace` | select | `amazon.com` | Amazon site to search. |
| `department` | string | empty | Optional search department such as electronics or aps. |
| `deliveryZip` | string | empty | US ZIP code, amazon.com only. |
| `maxItems` | integer | `15` | Result positions to scan per keyword, ads included. |
| `compareWithPrevious` | boolean | `true` | Report changes against the previous run. |
| `historyName` | string | `default` | Name of the tracking project and its history. |
| `rankChangeAlertThreshold` | integer | empty | Set `rankAlert` when the rank moves this many positions. |
| `includeSerpResults` | boolean | `true` | Write one `serpResult` per scanned position. |
| `maxConcurrency` | integer | `3` | Keywords processed in parallel, 1 to 10. |

#### 🧾 Amazon Keyword Rank Tracker Input JSON Example

```json
{
  "keywords": ["wireless earbuds", "bluetooth earbuds"],
  "asins": ["B0EXAMPLE1"],
  "brands": ["Anker"],
  "marketplace": "amazon.com",
  "department": "electronics",
  "deliveryZip": "10001",
  "maxItems": 48,
  "compareWithPrevious": true,
  "historyName": "earbuds-weekly",
  "rankChangeAlertThreshold": 3,
  "includeSerpResults": true,
  "maxConcurrency": 3
}
```

### 📊 Amazon Keyword Rank Tracker Output

Amazon Keyword Rank Tracker stores every record in the default dataset.

> **Output / Data Fields:** rank records for your targets, serpResult rows for every position and one summary per keyword.

- **rank:** `keyword`, `domain`, `loadedCountryCode`, `targetType`, `target`, `asin`, `found`, `foundOrganic`, `organicRank`, `absoluteRank`, `pageNumber`, `positionOnPage`, `appearsAsSponsored`, `bestSponsoredRank`, `totalAppearances`, `matchedAsins`, `appearances`, `scannedDepth`, `pagesScanned`, `previousOrganicRank`, `rankChange`, `trend`, `rankAlert`, `previousCheckedAt`, `product`, `searchUrl`, `checkedAt`.
- **serpResult:** `asin`, `absolutePosition`, `organicPosition`, `sponsoredPosition`, `pageNumber`, `positionOnPage`, `isSponsored`, `isTracked`, plus the product snapshot fields such as title, price, stars, reviews and badges.
- **summary:** `resultsInfo`, `positionsScanned`, `pagesScanned`, `organicResults`, `sponsoredResults`, `sponsoredSharePercent`, `trackedTargets`, `trackedPositions`, `shareOfShelfPercent`, `uniqueAsins`, `avgPrice`, `avgStars`, `topOrganic`, `topSponsored`.

#### 📖 Amazon Keyword Rank Tracker Rank Field Reference

| Field | Meaning |
|---|---|
| `organicRank` | Position among organic results only. Empty when only ads were found. |
| `absoluteRank` | Position counting ads, as the shopper scrolls the page. |
| `appearsAsSponsored` | `true` when the target also showed up as an ad. |
| `matchedAsins` | For brand targets, every ASIN that matched. |
| `appearances` | Every matching position with its page and sponsored flag. |

#### 🧪 Amazon Keyword Rank Tracker Output JSON Example

A `rank` record for one ASIN on a keyword:

```json
{
  "recordType": "rank",
  "keyword": "usb c cable",
  "domain": "amazon.com",
  "targetType": "asin",
  "target": "B0EXAMPLE1",
  "asin": "B0EXAMPLE1",
  "found": true,
  "foundOrganic": true,
  "organicRank": 2,
  "absoluteRank": 2,
  "pageNumber": 1,
  "positionOnPage": 2,
  "appearsAsSponsored": false,
  "bestSponsoredRank": null,
  "totalAppearances": 1,
  "scannedDepth": 30,
  "pagesScanned": 2,
  "previousOrganicRank": 4,
  "rankChange": 2,
  "trend": "up",
  "rankAlert": null,
  "product": {
    "title": "Example Brand USB C to USB C Cable, 240W Fast Charging (6.6FT)",
    "url": "https://www.amazon.com/dp/B0EXAMPLE1",
    "price": { "value": 8.99, "currency": "USD", "formatted": "$8.99" },
    "stars": 4.5,
    "reviewsCount": 13230,
    "isAmazonChoice": true,
    "badges": ["Overall Pick"]
  },
  "searchUrl": "https://www.amazon.com/s?k=usb+c+cable",
  "checkedAt": "2026-11-12T13:12:01Z"
}
```

A `summary` record for the same keyword:

```json
{
  "recordType": "summary",
  "keyword": "usb c cable",
  "domain": "amazon.com",
  "resultsInfo": "1-16 of over 80,000 results for \"usb c cable\"",
  "positionsScanned": 30,
  "pagesScanned": 2,
  "organicResults": 30,
  "sponsoredResults": 0,
  "sponsoredSharePercent": 0,
  "trackedTargets": 2,
  "trackedPositions": 1,
  "shareOfShelfPercent": 3.3,
  "uniqueAsins": 30,
  "avgPrice": 13.32,
  "avgStars": 4.63,
  "topOrganic": [
    { "organicPosition": 1, "asin": "B0EXAMPLE3", "title": "Example Brand USB C Cable, 60W (2-Pack, 6 ft)" }
  ],
  "topSponsored": [],
  "checkedAt": "2026-11-12T13:12:01Z"
}
```

A `serpResult` record from Amazon Keyword Rank Tracker, one per scanned position:

```json
{
  "recordType": "serpResult",
  "keyword": "usb c cable",
  "domain": "amazon.com",
  "asin": "B0EXAMPLE1",
  "absolutePosition": 2,
  "organicPosition": 2,
  "sponsoredPosition": null,
  "pageNumber": 1,
  "positionOnPage": 2,
  "isSponsored": false,
  "isTracked": true,
  "title": "Example Brand USB C to USB C Cable, 240W Fast Charging (6.6FT)",
  "price": { "value": 8.99, "currency": "USD", "formatted": "$8.99" },
  "stars": 4.5,
  "reviewsCount": 13230,
  "thumbnailImage": "https://m.media-amazon.com/images/I/example-cable.jpg",
  "checkedAt": "2026-11-12T13:12:01Z"
}
```

#### 🧰 More Input Examples for Amazon Keyword Rank Tracker

A brand watch on the United Kingdom site, with rank records and summaries only:

```json
{
  "keywords": ["protein powder", "whey protein"],
  "brands": ["Example Brand", "Rival Brand"],
  "marketplace": "amazon.co.uk",
  "maxItems": 60,
  "historyName": "uk-protein-brands",
  "rankChangeAlertThreshold": 5,
  "includeSerpResults": false
}
```

A one-off check on the German site from product URLs, without history:

```json
{
  "keywords": ["yogamatte"],
  "asins": ["https://www.amazon.de/dp/B0EXAMPLE9", "B0EXAMPLE8"],
  "marketplace": "amazon.de",
  "department": "aps",
  "maxItems": 48,
  "compareWithPrevious": false,
  "maxConcurrency": 2
}
```

### 💰 Amazon Keyword Rank Tracker Pricing

Amazon Keyword Rank Tracker uses pay-per-result pricing: **$1.49 per 1,000 results**. You pay for the results you receive. Every record saved to the dataset counts as one result, including rank records, SERP position records and summary records.

> **Pricing:** $1.49 per 1,000 results. Apify platform plans and limits apply on top of your Actor usage.

- **Search depth** (`maxItems`) sets how many positions Amazon Keyword Rank Tracker scans per keyword, so it directly shapes the size of a run.
- Switch off **Include every SERP position** if you only need rank and summary records from Amazon Keyword Rank Tracker.

### 💡 Tips and Best Practices

> **Tips:** keep inputs stable between runs so rank changes stay comparable.

- Use the same keywords, marketplace, ZIP code and **Tracking name** each time you compare ranks from Amazon Keyword Rank Tracker.
- Pick a depth that fits your goal. An Amazon results page holds roughly 16 to 48 results, so 48 or 96 covers the first pages.
- A product that is not found is simply not within the scanned depth, not proof that it is missing from Amazon.
- Sponsored ads appear intermittently on Amazon, so sponsored counts can differ between two runs.
- Results depend on what Amazon shows publicly, and rankings can vary by time and delivery location.
- A run stops after a few minutes and keeps the results collected so far.

### 🛠️ Troubleshooting Amazon Keyword Rank Tracker Results

> **Why is my rank empty?** Empty fields in Amazon Keyword Rank Tracker results usually have a simple reason.

- **`found` is false:** the target is not within the scanned depth. Raise **Search depth** to scan more positions.
- **`organicRank` is empty but `found` is true:** the product appeared only as an ad, so read `bestSponsoredRank`.
- **`trend` is always `new`:** **Compare with previous run** is off, or the keyword, marketplace or **Tracking name** changed.
- **No `rankAlert`:** it appears only when **Rank change alert threshold** is set and comparison is on.
- **Fewer positions than the depth:** Amazon showed no further result page, so `scannedDepth` reports what was really scanned.

### 🔗 Scheduling, Export and Integrations

Create an Apify schedule for Amazon Keyword Rank Tracker and keep the same **Tracking name** to build a rank history. Download datasets as JSON, CSV, Excel, HTML or XML, or read them through the Apify API.

Webhooks can start your own workflow when a run of Amazon Keyword Rank Tracker finishes, for example to forward records with `rankAlert` set to true.

### 🧩 Which Amazon Actor Should You Use?

- **Amazon Keyword Rank Tracker:** your own ranks, share of shelf and rank changes over time.
- **Amazon Search Results Scraper:** full product data for every result of a search.
- **Amazon Sponsored Ads Scraper:** a focus on sponsored placements.
- **Amazon Price Tracker:** price history of chosen products rather than search position.

### ❓ Frequently Asked Questions

#### 📌 What data does Amazon Keyword Rank Tracker return?

Amazon Keyword Rank Tracker returns rank records for your ASINs and brands, an optional list of every scanned position, and a summary for each keyword.

#### 📌 How do I check my Amazon ranking for a keyword?

Add the keyword and your ASIN, run Amazon Keyword Rank Tracker, and read `organicRank`, `pageNumber` and `positionOnPage` in the rank record.

#### 📌 Can Amazon Keyword Rank Tracker track brands as well as ASINs?

Yes. Add brand names and Amazon Keyword Rank Tracker counts every result whose title contains the brand as a whole word. Very common words can match unrelated titles, so prefer distinctive brand names.

#### 📌 What is the difference between organic rank and absolute rank?

Organic rank skips sponsored results. Absolute rank counts them, so it shows the true position on the page.

#### 📌 Does Amazon Keyword Rank Tracker need an Amazon account?

No. It reads public Amazon search pages and never asks for credentials.

#### 📌 How do I get alerts when a rank drops?

Set **Rank change alert threshold**. Records where the organic rank moved by at least that many positions get `rankAlert` set to true.

#### 📌 Which marketplaces does Amazon Keyword Rank Tracker support?

It supports 21 Amazon sites, from amazon.com and amazon.co.uk to amazon.de, amazon.co.jp and amazon.ae. Pick one in the **Amazon marketplace** field. A product URL in **ASINs to track** is only used to read the ASIN.

#### 📌 How many keywords can Amazon Keyword Rank Tracker check in one run?

You can add as many keywords as you need. Each keyword is processed independently, and several run in parallel according to **Parallel items**.

#### 📌 Can I track the same ASIN on several marketplaces with Amazon Keyword Rank Tracker?

Yes, in separate runs. Choose the marketplace for each run. Ranks are remembered per marketplace and keyword, so the histories never mix.

#### 📌 Does Amazon Keyword Rank Tracker show ranks for one department only?

Yes. Set **Department** to a search alias such as electronics, or aps for all departments. Leave it empty to search every department.

#### 📌 Why does a rank from Amazon Keyword Rank Tracker differ from my browser?

Amazon changes results by time and delivery location, so use the same ZIP code on amazon.com as in your browser and expect small differences.

### 📬 Support

Questions about Amazon Keyword Rank Tracker or an Amazon data field you would like to see? Send your input and what you expected, and it will be reviewed.

- contact me by email : alphascraper69@gmail.com

# Actor input Schema

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

Search phrases to check.

## `asins` (type: `array`):

ASINs (or product URLs) whose rank you want to track.

## `brands` (type: `array`):

Every result whose title contains the brand counts as a match (first match = the brand's rank, all matches = its share of shelf).

## `marketplace` (type: `string`):

Amazon site to use. It is used for plain ASINs, keywords and names; a full Amazon URL always keeps its own marketplace. Prices, currency and availability follow the marketplace and the visitor's location.

## `department` (type: `string`):

Optional search department (Amazon's 'search-alias' / category dropdown) such as electronics, garden, fashion, stripbooks, toys-and-games or aps for all departments. Empty searches every department.

## `deliveryZip` (type: `string`):

US ZIP code (5 digits) for amazon.com, chosen the way a visitor does with the 'Deliver to' link before scraping: search results and rankings depend on the delivery location. Leave empty to keep the location Amazon assigns to your network. Ignored, with a warning, on other marketplaces.

## `maxItems` (type: `integer`):

How many result positions to scan per keyword (ads count as positions). A page holds roughly 16–48 results.

## `compareWithPrevious` (type: `boolean`):

Report rank changes against the previous run of the same tracking name.

## `historyName` (type: `string`):

Name of this tracking project. Each name keeps its own remembered history, so you can run several independent tracking projects (for example per client or per product list) with the same Actor.

## `rankChangeAlertThreshold` (type: `integer`):

Flag a record as an alert when the organic rank moved by at least this many positions since the last run.

## `includeSerpResults` (type: `boolean`):

Also write one `serpResult` record for every scanned position (the full ranked list).

## `maxConcurrency` (type: `integer`):

How many input items (keywords, URLs, ASINs, profiles ...) are processed at the same time, each in its own browser. A higher value finishes faster but needs more memory (about 600 MB per browser - the run never starts more browsers than its memory allows) and sends more simultaneous requests to Amazon; 2 to 5 is a good range.

## Actor input object example

```json
{
  "keywords": [
    "wireless earbuds",
    "yoga mat"
  ],
  "asins": [
    "B09X7MPX8L"
  ],
  "brands": [
    "Anker"
  ],
  "marketplace": "amazon.com",
  "department": "electronics",
  "deliveryZip": "10001",
  "maxItems": 15,
  "compareWithPrevious": true,
  "historyName": "default",
  "includeSerpResults": true,
  "maxConcurrency": 3
}
```

# Actor output Schema

## `dataset` (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": [
        "wireless earbuds"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("phone_number_scraper/amazon-keyword-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": ["wireless earbuds"] }

# Run the Actor and wait for it to finish
run = client.actor("phone_number_scraper/amazon-keyword-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": [
    "wireless earbuds"
  ]
}' |
apify call phone_number_scraper/amazon-keyword-rank-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,phone_number_scraper/amazon-keyword-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/sRa1s0mtsQFdSnc05/builds/m0lXhbQn8WDXI6AF3/openapi.json
