# Amazon Coupons Scraper (`phone_number_scraper/amazon-coupons-scraper`) Actor

\[ 1k / 1$ ] Amazon Coupons Scraper to find products with active coupons and extract the coupon itself: type, percentage or amount off, expiry date, promotion ID, terms and estimated price after the coupon. Spot Amazon discounts and promotions fast.

- **URL**: https://apify.com/phone_number_scraper/amazon-coupons-scraper.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 Coupons Scraper

Amazon Coupons Scraper finds products that currently carry an Amazon coupon and extracts the coupon itself: its type, the percentage or amount off, the expiry date, the promotion ID, the terms and the estimated price after the coupon. Search by keyword, paste a search URL, or check specific products by URL or ASIN. 🏷️

It is built for deal sites, price-comparison teams, affiliate marketers, resellers and shoppers who want a structured list of discounts instead of scrolling through Amazon result pages. Amazon Coupons Scraper only reads coupons. It never clips or redeems anything, and it needs no Amazon account.

> 🎟️ **At a glance**
>
> - Input: keywords, Amazon search URLs, product URLs or ASINs
> - Output: one record per product coupon with value, expiry and price after coupon
> - Filters: coupon type, minimum coupon value, maximum price after coupon, expiry window, rating and reviews
> - Price: $1.49 per 1,000 results

### 🔹 Amazon Coupons Scraper Key Features

Amazon Coupons Scraper goes beyond a "has coupon" flag. It opens the product and promotion pages, so every record explains what the coupon is worth.

- 🔎 Walks the coupon-only Amazon result list of each keyword or search URL, page by page
- 🎟️ Amazon Coupons Scraper reads coupon label, type (percent or amount), value and promotion ID from the Amazon product page
- 📅 Opens the Amazon promotion terms for the expiry date, headline and summary
- 💵 Amazon Coupons Scraper estimates the price after the coupon and the effective discount percentage
- 🎚️ Filters by coupon type, minimum coupon value, maximum price after coupon, expiry window, rating and review count
- 📍 Sets a US delivery ZIP code on amazon.com, because coupons depend on location
- 🌍 Supports 21 Amazon marketplaces
- ⚡ Works through several keywords or URLs in parallel
- 🔁 Retries automatically when a page does not load

> 💡 **Key idea:** a coupon is only useful when you know its value and deadline. Amazon Coupons Scraper delivers both, together with the product data around it.

### 🔍 What Data Can Amazon Coupons Scraper Extract?

Every record in Amazon Coupons Scraper describes one coupon on one product. The fields fall into five groups.

- **Product:** ASIN, title, brand, URL, thumbnail, rating, reviews, stock status, seller and badges
- **Coupon:** label, type, percentage, amount, whether it needs clipping, promotion ID and links to the terms
- **Terms:** headline, summary, expiry date, original expiry text and days until expiry
- **Pricing:** page price, list price, price after coupon and effective discount percent
- **Discovery:** the keyword, result page and rank where Amazon showed the product

Amazon Coupons Scraper labels the evidence behind each coupon, so you can tell a product-page coupon from a search-card badge.

### 🚀 How to Use Amazon Coupons Scraper

You can run Amazon Coupons Scraper from the Apify Console in a few clicks.

1. Add **Search keywords**, **Search URLs** or **Product URLs or ASINs** from Amazon. The form starts with the keyword *protein powder*.
2. Choose the Amazon marketplace. Keep the ZIP code 10001 for amazon.com, or change it to your own five-digit US ZIP code.
3. Set the limits: **Maximum number of items**, **Result pages per keyword / URL** and the cap on product pages to open.
4. Add optional filters, such as coupon type, minimum coupon value or maximum price after coupon.
5. Start Amazon Coupons Scraper and watch the **Coupon overview** view fill up.
6. Export the dataset as JSON, CSV or Excel, or read it through the Apify API.

### 🧭 How to Find Percent-Off Coupons by Keyword With Amazon Coupons Scraper

To collect only percentage coupons for a topic, enter your keywords, set **Coupon type** to *Percent off* and add a **Minimum coupon value**. Amazon Coupons Scraper opens the Coupons refinement of each search and walks its pages, then verifies every candidate on its product page.

Add **Maximum price after coupon** to keep only bargains. Because the final price is calculated from the page price and the coupon, you can rank deals without extra spreadsheet work.

#### ❓ Can Amazon Coupons Scraper check specific products for a coupon?

Yes. Put product URLs or ASINs into **Product URLs or ASINs** and Amazon Coupons Scraper checks them directly, without searching.

#### 📆 Can Amazon Coupons Scraper find coupons that expire soon?

Yes. **Coupon expires within (days)** keeps only coupons ending within that window. It needs the promotion terms, which are read automatically, and expiry dates are parsed from English pages only.

#### 🛒 Can Amazon Coupons Scraper clip or redeem coupons?

No. Clipping requires a signed-in Amazon account, and Amazon Coupons Scraper only reads what public pages show. The `requiresClip` field tells you when a coupon has to be clipped before checkout.

#### 📍 Can Amazon Coupons Scraper use a delivery location?

On amazon.com, yes: the ZIP code field mirrors the "Deliver to" choice of a visitor. On other marketplaces the field is ignored with a warning.

### 🧪 Amazon Coupons Scraper Sample Run Step by Step

Example: the keyword *protein powder*, **Coupon type** *Percent off* and **Maximum number of items** 15.

1. Amazon Coupons Scraper sets the ZIP code, searches and follows the Coupons refinement of the results.
2. It walks up to three coupon result pages, noting each product's page and rank.
3. Products with a coupon badge on the card are verified first, then the others, up to the product page cap.
4. Amazon Coupons Scraper reads each promotion's terms once and calculates the price after the coupon.
5. Coupons that fail a filter are dropped, and the run stops at 15 records or when the candidates run out.

### 💡 Why Use Amazon Coupons Scraper?

Amazon coupons change often and differ by location, which makes manual tracking slow. Amazon Coupons Scraper turns the search into a repeatable data job.

- Amazon Coupons Scraper finds coupon products by keyword instead of one product at a time
- Amazon Coupons Scraper calculates the price after the coupon for quick deal ranking
- Keeps the discovery context, so you know which search surfaced each offer

### 🎯 Amazon Coupons Scraper Use Cases

> 🎯 **Where teams use Amazon Coupons Scraper:** deal publishing, affiliate content, price monitoring, promotion research and shopping alerts.

- 📰 **Deal sites:** publish fresh Amazon coupon lists sorted by effective discount
- 🔗 **Affiliate marketing:** pick Amazon products whose coupons make the offer attractive
- 📉 **Price monitoring:** watch how coupons change the real price of a product
- 🏢 **Brand and seller research:** see which competitors run coupons on Amazon and how large they are
- 🔔 **Alerts:** schedule Amazon Coupons Scraper and notify subscribers about Amazon coupons that end soon
- 🧮 **Promotion analysis:** compare percent and amount coupons across categories

### ⚙️ Amazon Coupons Scraper Input

Provide at least one of keywords, search URLs or product URLs. Everything else is optional, and Amazon Coupons Scraper has defaults for it.

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `keywords` | array | `["protein powder"]` in the form | Search phrases; the coupon-only results of each phrase are collected |
| `searchUrls` | array | empty | Full Amazon search URLs; your own department, price and brand filters are kept |
| `productUrls` | array | empty | Amazon product URLs or ASINs checked directly |
| `marketplace` | string | `amazon.com` | One of 21 Amazon sites; a URL keeps its own marketplace |
| `deliveryZip` | string | `10001` | Five-digit US ZIP code for amazon.com; empty keeps the default location Amazon assigns |
| `maxItems` | integer | `15` | Maximum number of coupon records in the whole run |
| `maxResultPages` | integer | `3` | Coupon result pages per keyword or URL (1 to 50, about 48 products per page) |
| `maxProductsToCheck` | integer | `40` | Cap on product pages opened in one run |
| `department` | string | empty | Optional department for keyword searches, such as electronics or garden |
| `sortBy` | string | `relevance` | `relevance`, `price-low-to-high`, `price-high-to-low`, `avg-customer-review` or `newest-arrivals` |
| `couponType` | string | `any` | `any`, `percent` or `amount` |
| `minEffectiveDiscountPercent` | number | empty | Keep coupons worth at least this share of the price (0 to 100) |
| `maxPriceAfterCoupon` | number | empty | Keep products whose estimated price after the coupon is at most this value |
| `expiresWithinDays` | integer | empty | Keep coupons that end within this many days |
| `minRating` | number | empty | Minimum star rating (1 to 5) |
| `minReviews` | integer | empty | Minimum number of customer ratings |
| `includeTerms` | boolean | `true` | Read each promotion's terms page for expiry, headline and summary |
| `includeProductDetails` | boolean | `false` | Attach the full product record as `productDetails` |
| `maxConcurrency` | integer | `3` | Keywords, URLs or products processed in parallel (1 to 10) |

Amazon Coupons Scraper treats every keyword, search URL and product as a separate source, and the item limit is shared across all of them.

#### 🧾 Input example

```json
{
  "keywords": ["protein powder", "dog food"],
  "marketplace": "amazon.com",
  "deliveryZip": "10001",
  "couponType": "percent",
  "minEffectiveDiscountPercent": 10,
  "maxPriceAfterCoupon": 50,
  "expiresWithinDays": 14,
  "minRating": 4,
  "minReviews": 50,
  "includeTerms": true,
  "maxResultPages": 3,
  "maxItems": 30
}
```

### 📦 Amazon Coupons Scraper Output

Amazon Coupons Scraper stores one record per coupon. The Console offers four views: **Coupon overview**, **Coupon details**, **Pricing** and **Discovery context**. Export everything as JSON, CSV, Excel, XML or HTML.

The price after the coupon is always an estimate, and `priceAfterCouponIsEstimate` says so. Amount coupons in a different currency than the page price are not used for that calculation.

#### 🔬 Coupon record fields

| Field | Description |
| --- | --- |
| `asin`, `title`, `url`, `brand`, `thumbnailImage` | Product identity, link and image |
| `couponText` | Coupon label such as "Apply 15% coupon" |
| `couponType` | `percent` or `amount` |
| `couponPercent`, `couponAmount` | Percentage, or an amount object with `value`, `currency` and `formatted` |
| `couponAmountInMarketplaceCurrency` | Amount stated in the terms in the marketplace currency, when available |
| `requiresClip` | `true` when the label says the coupon must be applied or clipped first |
| `promotionId`, `termsUrl`, `qualifyingItemsUrl` | Promotion ID, its terms page and the list of qualifying items |
| `evidence` | `product page`, or `search card` when only the result card showed the coupon |
| `discountHeadline`, `couponSummary` | Headline and summary sentence from the terms |
| `expiryDate`, `expiryText`, `daysUntilExpiry` | ISO date, original text and days left |
| `price`, `listPrice`, `discountPercent` | Page price, list price and the ordinary discount |
| `priceAfterCoupon`, `effectiveCouponDiscountPercent` | Estimated price with the coupon and the coupon's share of the price |
| `searchResultPrice`, `displayedCurrency` | Price shown on the result card and the page currency |
| `stars`, `reviewsCount`, `isPrime`, `inStock`, `availability`, `seller`, `boughtInPastMonth`, `badges` | Product context |
| `discoveredVia`, `searchKeyword`, `searchPage`, `searchRank`, `couponResultsReported` | How the product was found and how many coupon results Amazon reported |
| `deliveryZip`, `marketplace`, `scrapedAt` | Location, marketplace and collection time |
| `productDetails` | Full product record, only when `includeProductDetails` is on |

#### 🎟️ Coupon record example

```json
{
  "asin": "B0GF3Y6LLV",
  "title": "Life Extension Vitamin C 24-Hour Liposomal Hydrogel Formula, 90 Vegetarian Tablets",
  "url": "https://www.amazon.com/dp/B0GF3Y6LLV",
  "brand": "Life Extension",
  "couponText": "Apply 15% coupon",
  "couponType": "percent",
  "couponPercent": 15,
  "couponAmount": null,
  "requiresClip": true,
  "promotionId": "A1EXAMPLEPROMO",
  "evidence": "product page",
  "termsUrl": "https://www.amazon.com/promotion/details/popup/A1EXAMPLEPROMO",
  "discountHeadline": null,
  "couponSummary": "Save 15% with this coupon. Discount at checkout.",
  "expiryDate": "2026-12-01",
  "expiryText": "December 1, 2026",
  "daysUntilExpiry": 19,
  "price": { "value": 36.99, "currency": "USD", "formatted": "$36.99" },
  "listPrice": null,
  "discountPercent": 10,
  "priceAfterCoupon": { "value": 31.44, "currency": "USD" },
  "priceAfterCouponIsEstimate": true,
  "effectiveCouponDiscountPercent": 15,
  "stars": 4.7,
  "reviewsCount": 587,
  "isPrime": true,
  "inStock": true,
  "availability": "In Stock",
  "seller": "Example Seller LLC",
  "boughtInPastMonth": "200+ bought in past month",
  "badges": [],
  "discoveredVia": "coupon search",
  "searchKeyword": "vitamin c",
  "searchPage": 1,
  "searchRank": 7,
  "couponResultsReported": 298,
  "deliveryZip": "10001",
  "marketplace": "amazon.com",
  "scrapedAt": "2026-11-12T13:10:23Z"
}
```

#### 💵 Amount coupon record example

An amount coupon is a fixed sum, so `couponPercent` is empty:

```json
{
  "asin": "B0EXAMPLE01",
  "title": "Example Stainless Steel Water Bottle, 32 oz",
  "url": "https://www.amazon.com/dp/B0EXAMPLE01",
  "couponText": "Apply $5 coupon",
  "couponType": "amount",
  "couponPercent": null,
  "couponAmount": { "value": 5, "currency": "USD", "formatted": "$5.00" },
  "requiresClip": true,
  "promotionId": "A2EXAMPLEPROMO",
  "evidence": "product page",
  "expiryDate": "2026-12-15",
  "daysUntilExpiry": 33,
  "price": { "value": 24.99, "currency": "USD", "formatted": "$24.99" },
  "priceAfterCoupon": { "value": 19.99, "currency": "USD" },
  "priceAfterCouponIsEstimate": true,
  "effectiveCouponDiscountPercent": 20.01,
  "discoveredVia": "product input",
  "marketplace": "amazon.com",
  "scrapedAt": "2026-11-12T13:14:41Z"
}
```

#### 🌐 Search URL input example

Walk a search URL with Amazon Coupons Scraper for amount coupons, cheapest first:

```json
{
  "searchUrls": ["https://www.amazon.com/s?k=vitamin+c&i=hpc"],
  "sortBy": "price-low-to-high",
  "couponType": "amount",
  "maxResultPages": 2,
  "maxProductsToCheck": 60,
  "maxItems": 25
}
```

### 💲 Amazon Coupons Scraper Pricing

Amazon Coupons Scraper uses pay-per-result pricing: **$1.49 per 1,000 results**. Each coupon record in the dataset is one result, and a product with two different coupons gives two results.

> 💳 **Cost control:** `maxItems` limits the number of coupon results, and `maxProductsToCheck` limits how many product pages are opened. Apify platform plans and usage limits apply.

### ✅ Tips and Best Practices

- Keep the default ZIP code for amazon.com, because Amazon coupons and prices depend on the delivery location
- Start Amazon Coupons Scraper with the default 15 items, then raise the limits
- Use specific keywords such as "protein powder" rather than one-word terms to reach relevant coupons
- Raise `maxProductsToCheck` together with `maxResultPages`, because every verified product uses one page of the cap
- Amazon coupons change quickly, so schedule runs close to the time you publish or act
- Runs take several minutes; a very long run stops and keeps the results collected so far

### 🛠️ Troubleshooting and Data Quality

Amazon Coupons Scraper reports only what public pages show, so some results can be missing.

- **A keyword returns nothing:** Amazon shows no Coupons refinement for the search right now; try a broader phrase
- **Fewer records than `couponResultsReported`:** some products show no coupon to signed-out Amazon visitors, or the product page cap was reached first
- **Records vanish when a filter is set:** price and coupon-value filters need a calculable price, and `expiresWithinDays` needs a readable expiry date
- **Empty `expiryDate`:** the date is parsed from English terms pages only, and `expiryText` keeps the original wording
- **Empty `priceAfterCoupon`:** the page showed no price, or an amount coupon uses a different currency than the price
- **Different coupons than in your browser:** coupons and currency follow the delivery location, so set the ZIP code

### 🧩 Which Amazon Actor Should You Use?

> 🧭 **Pick by question:** choose the Actor that matches what you need to know.

- Product coupons with value and expiry: Amazon Coupons Scraper
- Today's Deals and lightning deals: Amazon Deals Scraper
- Price changes over time: Amazon Price Tracker
- Full detail of single products: Amazon Product Scraper
- Keyword rankings and sponsored flags: Amazon Search Results Scraper

### ❓ Frequently Asked Questions

#### 📋 What data does Amazon Coupons Scraper return?

Amazon Coupons Scraper returns the coupon type and value, promotion ID, expiry details, product price, estimated price after the coupon, product ratings and discovery context.

#### 🔐 Do I need an Amazon account to use Amazon Coupons Scraper?

No. Coupons are read from public Amazon pages. The Actor does not log in, and it does not activate coupons for you.

#### ⏱️ How long does Amazon Coupons Scraper take?

Several minutes for a typical Amazon run, because Amazon Coupons Scraper loads search pages and product pages one after another. Smaller limits finish sooner.

#### 🌐 Can I scrape coupons on marketplaces other than amazon.com with Amazon Coupons Scraper?

Yes, select another Amazon marketplace. Coupon availability and currency differ by marketplace, and the delivery ZIP option is limited to amazon.com.

#### 🧾 Why does an Amazon Coupons Scraper record have no expiry date?

The expiry date comes from the promotion terms page and is parsed from English pages only. The original text stays in `expiryText` when it is available.

#### 💸 Is the price after the coupon exact?

Amazon Coupons Scraper calculates it from the page price and the coupon, so it is an estimate, and `priceAfterCouponIsEstimate` marks it. The final amount can differ at checkout.

#### 🎯 How do I find only coupons worth 20 percent or more?

In Amazon Coupons Scraper, set **Minimum coupon value (% of price)** to 20. Percent coupons use their percentage, and amount coupons use amount divided by price when the currencies match.

#### 🆚 What is the difference between Amazon Coupons Scraper and Amazon Deals Scraper?

Amazon Coupons Scraper reads product coupons with promotion IDs and expiry dates. Amazon Deals Scraper reads Today's Deals such as lightning and limited-time offers.

#### 📤 How do I export Amazon Coupons Scraper results?

Open the run's dataset and download JSON, CSV, Excel, XML or HTML. Sorting the sheet by `effectiveCouponDiscountPercent` gives a quick deal ranking.

#### 🔁 Can I schedule Amazon Coupons Scraper?

Yes. Apify schedules let you run Amazon Coupons Scraper every day, and integrations or webhooks can pass the dataset to spreadsheets, alerts or your own tools.

### 💬 Support

Questions about Amazon Coupons Scraper, a coupon that looks wrong or a field you would like to see? Send a message and include your run link.

- contact me by email : alphascraper69@gmail.com

# Actor input Schema

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

Search phrases; the coupon-only results of each phrase are collected.

## `searchUrls` (type: `array`):

Full Amazon search URLs; your own department, price and brand filters are kept.

## `productUrls` (type: `array`):

Products to check for a coupon directly, without searching.

## `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.

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

US ZIP code (5 digits) for amazon.com, chosen the way a visitor does with the 'Deliver to' link before scraping: coupons, prices and currency 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`):

Maximum number of coupon records in the whole run.

## `maxResultPages` (type: `integer`):

Coupon-result pages walked per keyword or search URL (Amazon lists about 48 products per page).

## `maxProductsToCheck` (type: `integer`):

Safety cap on product pages opened to verify coupons in one run.

## `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.

## `sortBy` (type: `string`):

How Amazon orders the coupon results.

## `couponType` (type: `string`):

Percent coupons ('Save 10%'), amount coupons ('Save $5') or both.

## `minEffectiveDiscountPercent` (type: `number`):

Keep coupons worth at least this much of the price (percent coupons: the percentage; amount coupons: amount ÷ price when comparable).

## `maxPriceAfterCoupon` (type: `number`):

Keep only products whose estimated price after the coupon is at most this value.

## `expiresWithinDays` (type: `integer`):

Keep only coupons that end within this many days. Needs 'Read coupon terms' (English pages only).

## `minRating` (type: `number`):

Keep only products rated at least this many stars (1 to 5).

## `minReviews` (type: `integer`):

Keep only products with at least this many customer ratings.

## `includeTerms` (type: `boolean`):

Open each promotion's terms page for the expiry date, headline and summary.

## `includeProductDetails` (type: `boolean`):

Attach the full parsed product record as `productDetails` (bigger records).

## `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": [
    "dog food"
  ],
  "productUrls": [
    "B0BVM1PSYN"
  ],
  "marketplace": "amazon.com",
  "deliveryZip": "10001",
  "maxItems": 15,
  "maxResultPages": 3,
  "maxProductsToCheck": 40,
  "department": "electronics",
  "sortBy": "relevance",
  "couponType": "any",
  "includeTerms": true,
  "includeProductDetails": false,
  "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": [
        "protein powder"
    ]
};

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

# Run the Actor and wait for it to finish
run = client.actor("phone_number_scraper/amazon-coupons-scraper").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": [
    "protein powder"
  ]
}' |
apify call phone_number_scraper/amazon-coupons-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,phone_number_scraper/amazon-coupons-scraper"
        }
    }
}
```

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/fyLVlmA9KuiSlM7rR/builds/nXhXocdut0hXpOgPH/openapi.json
