# Amazon Warehouse Deals Scraper (`phone_number_scraper/amazon-warehouse-deals-scraper`) Actor

\[ 1k / 1$ ] Amazon Warehouse Deals Scraper to find Amazon Warehouse and Resale deals: lowest used price, number of used offers and savings versus the new price, with filters for savings, price and rating. Hunt discounted open-box and used products.

- **URL**: https://apify.com/phone_number_scraper/amazon-warehouse-deals-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 Warehouse Deals Scraper

**Amazon Warehouse Deals Scraper finds discounted used, open-box and resale products on Amazon and shows how much you save compared with the new price.** Enter a few keywords and it searches Amazon's public Warehouse Deals (Amazon Resale) department, then returns the lowest used price, the number of used offers and the saving for every product. 🏷️

This Amazon Warehouse Deals Scraper is made for bargain hunters, resellers and price-comparison teams who want a clean deal list instead of opening product pages one by one. No Amazon account or login is required.

> **Amazon Warehouse Deals Scraper at a glance**
>
> - 🔎 Input: keywords searched inside Amazon Warehouse Deals
> - 💸 Output: used price, new price, saving amount and saving percent
> - 🧰 Filters: savings, price range, rating, reviews and condition grade
> - 🌍 21 Amazon marketplaces can be selected
> - 💵 $1.49 per 1,000 results

### 🔹 Amazon Warehouse Deals Scraper Key Features

The Amazon Warehouse Deals Scraper does the comparison work that you would otherwise do by hand for every listing.

- Amazon Warehouse Deals Scraper searches the Warehouse Deals department for each keyword you provide.
- Reads the lowest used price and the number of used offers from every Amazon result card.
- With the comparison on, opens each product to read the new price and list price, then calculates the saving in amount and percent.
- Flags every deal with `usedIsCheaper`, so overpriced used copies are easy to spot.
- Can list the individual used offers with condition grade, seller note, price and shipping.
- Filters by savings, price range, star rating, review count and used condition grade.
- Follows the live Next page link, with a limit per keyword and per run.
- Adds brand, category and Amazon Best Seller Rank to give each deal context.

> **Why use this Actor?** Amazon Warehouse Deals Scraper turns a slow manual search into a dataset you can sort by saving percent in a spreadsheet.

### 📦 What Data Can Amazon Warehouse Deals Scraper Extract?

Each record from the Amazon Warehouse Deals Scraper is one product with its used-versus-new comparison.

| Data group | Fields |
| --- | --- |
| Product | `asin`, `title`, `url`, `brand`, `category`, `thumbnailImage` |
| Used deal | `usedPrice`, `usedOffersCount`, `usedOfferText`, `usedOffers`, `usedOffersInPanel` |
| New price | `newPrice`, `listPrice`, `comparedWith`, `inStockAsNew`, `newPriceDelivery` |
| Savings | `savingsAmount`, `savingsPercent`, `usedIsCheaper` |
| Reputation | `stars`, `reviewsCount`, `boughtInPastMonth`, `isAmazonChoice`, `isBestSeller`, `bestsellerRanks` |
| Search context | `searchTerm`, `searchUrl`, `pageNumber`, `position` |
| Run details | `domain`, `loadedCountryCode`, `scrapedAt` |

Results reflect what Amazon shows to a visitor, so some fields can be empty for individual products.

### 🚀 How to Use Amazon Warehouse Deals Scraper

Using the Amazon Warehouse Deals Scraper needs no code and takes about a minute.

1. Open Amazon Warehouse Deals Scraper on Apify and go to the Input tab.
2. Add one or more search phrases under **Keywords**, for example "headphones" or "laptop".
3. Choose the Amazon marketplace you want to search.
4. Leave **Compare with the new price** on to receive saving amounts and percentages.
5. Add optional filters such as minimum savings, maximum price or minimum rating.
6. Set **Maximum number of deals** and click Start.
7. Open the Deals overview table, or export the dataset as JSON, CSV or Excel.

> **Tip:** Run Amazon Warehouse Deals Scraper on the default 15 deals first to check the fields, then raise `maxItems`.

### 🧭 Amazon Warehouse Deals Scraper Example Run, Step by Step

Suppose you want headphones that cost at least 20 percent less than new and under 100 dollars.

1. You enter the keyword "headphones", keep amazon.com, set `minSavingsPercent` to 20, `maxUsedPrice` to 100 and `maxItems` to 25.
2. Amazon Warehouse Deals Scraper searches the Warehouse Deals department and reads each result card: the lowest used price and the number of used offers.
3. Sponsored cards and cards without a used offer are skipped, as they are not warehouse deals.
4. Deals outside your price range are dropped before their product page is opened.
5. For the rest, Amazon Warehouse Deals Scraper opens the product page, reads the new price and calculates the saving.
6. Only deals saving 20 percent or more are saved, and the Next page link is followed until 25 deals are collected.

The Deals overview table then shows used price, new price and saving side by side.

### 🔍 How to Find Amazon Warehouse Deals With the Biggest Savings

To surface the strongest bargains with Amazon Warehouse Deals Scraper, combine the saving filters with a price ceiling.

With Amazon Warehouse Deals Scraper, set `minSavingsPercent` to a value such as 20 and switch on `onlyUsedCheaperThanNew`. Then add `maxUsedPrice` to stay within budget, and `minRating` to skip poorly rated products.

Only products that pass every filter are saved, and Amazon Warehouse Deals Scraper keeps paging until it reaches your limit or runs out of result pages.

### 🤔 Can You Compare Used and New Prices on Amazon Warehouse Deals?

Yes. With **Compare with the new price** switched on, Amazon Warehouse Deals Scraper opens every deal's product page and calculates the saving.

- `newPrice` is the current featured price when the product is sold as new.
- `listPrice` is the crossed-out reference price, when Amazon shows one.
- `comparedWith` says whether the saving was measured against the "new price" or the "list price".
- `usedIsCheaper` is false when the used copy costs more than the comparison price, for example when the used offer is for a different version.

If you switch the comparison off and do not list used offers, Amazon Warehouse Deals Scraper runs faster, but the saving, new-price, brand and category fields stay empty.

### 🎯 Amazon Warehouse Deals Scraper Use Cases

Typical jobs for the Amazon Warehouse Deals Scraper:

- **Bargain hunting:** list the biggest discounts on open-box Amazon electronics in minutes.
- **Resale sourcing:** find used products priced well below the new price.
- **Price monitoring:** schedule Amazon Warehouse Deals Scraper runs and watch `usedPrice` and `savingsPercent` move.
- **Deal newsletters:** feed a weekly list of resale bargains to subscribers.
- **Procurement:** compare used and new costs before buying office equipment.
- **Condition research:** collect grades such as "Used - Like New" across a product group.

### ✅ Why Use Amazon Warehouse Deals Scraper

The Amazon Warehouse Deals Scraper gives you a structured view of a department that is awkward to browse.

> **What you gain**
>
> - Savings calculated for you, in amount and percent
> - Used offers with condition grade on request
> - A failed keyword never stops the others
> - Works with Apify scheduling, webhooks and integrations

### 🔧 Amazon Warehouse Deals Scraper Input

Only `keywords` is required in Amazon Warehouse Deals Scraper. Everything else has a default or stays empty.

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `keywords` | list of strings | none (required) | Search phrases looked up in Warehouse Deals. |
| `marketplace` | select | `amazon.com` | Marketplace to search. |
| `deliveryZip` | string | empty | Five-digit US ZIP code, for amazon.com only. |
| `maxItems` | integer | 15 | Maximum deals in the whole run. |
| `maxItemsPerKeyword` | integer | empty | Optional cap per keyword. |
| `maxPagesPerKeyword` | integer (1-50) | empty | Stop a keyword after this many result pages. |
| `sortBy` | select | `relevance` | `relevance`, `price-low-to-high`, `price-high-to-low`, `avg-customer-review` or `newest-arrivals`. |
| `minSavingsPercent` | number (0-100) | empty | Minimum saving versus the new price. Needs the comparison. |
| `onlyUsedCheaperThanNew` | boolean | false | Keep only deals where used is cheaper. Needs the comparison. |
| `minUsedPrice` | number | empty | Lowest accepted used price. |
| `maxUsedPrice` | number | empty | Highest accepted used price. |
| `conditions` | list of grades | empty | `Used - Like New`, `Used - Very Good`, `Used - Good`, `Used - Acceptable`. Needs used offers. |
| `minRating` | number (1-5) | empty | Minimum star rating. |
| `minReviews` | integer | empty | Minimum number of customer ratings. |
| `compareWithNewPrice` | boolean | true | Open each product for new price, list price, rank, brand and category. |
| `includeOfferDetails` | boolean | false | List each used offer. Slower. |
| `maxConcurrency` | integer (1-10) | 3 | How many keywords run in parallel. |

Prices are read in the currency of the chosen marketplace.

#### 🧾 Input JSON Example

This Amazon Warehouse Deals Scraper example searches two keywords on amazon.com and keeps only well-rated, clearly cheaper used offers in top condition grades.

```json
{
  "keywords": ["headphones", "mechanical keyboard"],
  "marketplace": "amazon.com",
  "deliveryZip": "10001",
  "sortBy": "price-low-to-high",
  "compareWithNewPrice": true,
  "includeOfferDetails": true,
  "conditions": ["Used - Like New", "Used - Very Good"],
  "minSavingsPercent": 20,
  "onlyUsedCheaperThanNew": true,
  "maxUsedPrice": 150,
  "minRating": 4,
  "maxItems": 40,
  "maxItemsPerKeyword": 20,
  "maxPagesPerKeyword": 5
}
```

### 📊 Amazon Warehouse Deals Scraper Output

The Amazon Warehouse Deals Scraper saves one record per deal. Prices are objects with `value`, `currency` and `formatted`.

- `asin`, `title`, `url`, `brand`, `category` and `thumbnailImage` identify the product.
- `usedPrice`, `usedOffersCount` and `usedOfferText` describe the lowest used offer.
- `newPrice`, `listPrice` and `comparedWith` give the reference price.
- `savingsAmount`, `savingsPercent` and `usedIsCheaper` show the saving; negative values mean the used copy costs more.
- `stars`, `reviewsCount`, `boughtInPastMonth`, `isAmazonChoice`, `isBestSeller` and `bestsellerRanks` show popularity.
- `inStockAsNew` and `newPriceDelivery` describe the new item.
- `usedOffers` and `usedOffersInPanel` are filled when you list individual used offers.
- `searchTerm`, `searchUrl`, `pageNumber`, `position`, `domain`, `loadedCountryCode` and `scrapedAt` describe the search.

> **Dataset views:** Amazon Warehouse Deals Scraper offers a Deals overview, a New vs used comparison and a Used offers table.

#### 🧪 Output JSON Example

This record from the Amazon Warehouse Deals Scraper shows a used price 41.2 percent below the new price.

```json
{
  "asin": "B0BQPNMXQV",
  "title": "JBL Vibe Beam - True Wireless Earbuds - Black",
  "url": "https://www.amazon.com/dp/B0BQPNMXQV",
  "brand": "JBL",
  "category": "Electronics › Headphones, Earbuds & Accessories › Headphones & Earbuds › Earbud Headphones",
  "usedPrice": {
    "value": 28.45,
    "currency": "USD",
    "formatted": "$28.45"
  },
  "usedOffersCount": 1,
  "usedOfferText": "$28.45 (1 used offer)",
  "newPrice": {
    "value": 48.39,
    "currency": "USD",
    "formatted": "$48.39"
  },
  "listPrice": null,
  "comparedWith": "new price",
  "savingsAmount": 19.94,
  "savingsPercent": 41.2,
  "usedIsCheaper": true,
  "stars": 4.2,
  "reviewsCount": 41562,
  "boughtInPastMonth": "10K+ bought in past month",
  "isAmazonChoice": false,
  "isBestSeller": false,
  "bestsellerRanks": [
    {
      "rank": 28,
      "category": "Electronics",
      "url": "https://www.amazon.com/gp/bestsellers/electronics/ref=pd_zg_ts_electronics"
    }
  ],
  "inStockAsNew": true,
  "newPriceDelivery": "FREE delivery Tuesday, November 17",
  "usedOffers": [],
  "usedOffersInPanel": null,
  "thumbnailImage": "https://m.media-amazon.com/images/I/41+1Csr1pSL._AC_UY218_.jpg",
  "searchTerm": "headphones",
  "searchUrl": "https://www.amazon.com/s?k=headphones&i=warehouse-deals",
  "pageNumber": 2,
  "position": 26,
  "domain": "amazon.com",
  "loadedCountryCode": "US",
  "scrapedAt": "2026-11-12T12:29:37Z"
}
```

In this record `usedOffers` is empty because the offer list was off. With **List individual used offers** on, each entry holds the condition grade, condition note, price, shipping and seller, and `isAmazonResale` marks offers sold by Amazon Resale.

#### 🧬 Used Offer Entry Example

This is one entry of the `usedOffers` list from Amazon Warehouse Deals Scraper when individual offers are switched on.

```json
{
  "position": 1,
  "isBuyBoxWinner": false,
  "condition": "Used - Very Good",
  "conditionType": "used",
  "conditionDetail": "Very Good",
  "conditionNote": "Item shows minor signs of use. All accessories are included.",
  "price": {
    "value": 28.45,
    "currency": "USD",
    "formatted": "$28.45"
  },
  "shippingCost": null,
  "freeDelivery": true,
  "deliveryText": "FREE delivery Tuesday, November 17",
  "promotion": null,
  "shipsFrom": "Amazon",
  "shipsFromNote": null,
  "soldBy": "Amazon Resale",
  "sellerId": null,
  "sellerUrl": null,
  "isSoldByAmazon": true,
  "isFulfilledByAmazon": true,
  "isPrime": null,
  "sellerRating": null,
  "isAmazonResale": true
}
```

#### 🗂️ Field Reference for Tricky Fields

Some values in the Amazon Warehouse Deals Scraper dataset need a short explanation.

| Field | What it means |
| --- | --- |
| `savingsAmount` | New or list price minus used price. Negative when the used copy costs more. |
| `savingsPercent` | The saving as a percent of the comparison price, rounded to one decimal. |
| `conditionType` | Offer kind: used, renewed or collectible. |
| `sellerRating` | Stars, rating count and positive percent when the offer shows a seller rating; otherwise null. |

### 💰 Amazon Warehouse Deals Scraper Pricing

> **Pay per result:** $1.49 per 1,000 results.

You pay for the deal records the Amazon Warehouse Deals Scraper saves. Every deal record in the dataset counts as one result, and deals removed by your filters cost nothing. The `maxItems` field limits how many results a run can return.

| Results | Approximate cost |
| --- | --- |
| 15 (default) | $0.02 |
| 1,000 | $1.49 |
| 10,000 | $14.90 |

Standard Apify platform plans and limits apply to your account.

### 🛠️ Tips and Best Practices

> **Quick checklist**
>
> - Keep the Amazon Warehouse Deals Scraper comparison on when you filter by savings.
> - Turn on used offers only when you need grades or sellers.
> - Use `maxItemsPerKeyword` to spread results across keywords.

- `minSavingsPercent` and `onlyUsedCheaperThanNew` need **Compare with the new price**, and `conditions` needs **List individual used offers**; the run reports an input error otherwise.
- Amazon Warehouse Deals Scraper skips sponsored ads and products that show no used offer, because those are not warehouse deals.
- Amazon lists only offers that can ship to your delivery location, so the offers panel can be empty for some regions.
- A long Amazon Warehouse Deals Scraper run stops after a few minutes and keeps the results collected so far.
- Keep the Amazon marketplace, location and filters unchanged between runs when you compare deals over time.

### 🩺 Troubleshooting: Fewer Results or Empty Fields

Most surprises with Amazon Warehouse Deals Scraper have a simple cause.

- **No results at all:** the chosen Amazon marketplace may have no Warehouse or Resale department, or the keyword has no used offers. Try a broader keyword.
- **Fewer deals than `maxItems`:** filters remove products, or Amazon runs out of result pages for a narrow keyword.
- **`savingsPercent` is null:** no comparison price was found, or the comparison is off. A savings filter drops such deals.
- **`usedIsCheaper` is false:** the used offer costs more than the new or list price, often because it is a different version.
- **`usedOffers` is empty:** the offer list is off, or Amazon shows no offers that can ship to your location.
- **Rating filters remove too much:** products without a visible rating are left out when you set `minRating` or `minReviews`.

### 🔄 Scheduling, Automation and Integrations

Amazon Warehouse Deals Scraper suits recurring deal checks.

- Create an Apify schedule to run Amazon Warehouse Deals Scraper daily and compare each dataset with the last one.
- Add a webhook to send new deals to your own workflow when a run finishes.
- Download the dataset as JSON, CSV or Excel, or connect it to spreadsheets and no-code tools through Apify integrations.

### 🧭 Which Amazon Actor Should You Use?

This collection has sibling Actors, and each one answers a different question.

| You want | Use |
| --- | --- |
| Used and resale deals with savings | Amazon Warehouse Deals Scraper |
| Every seller offer for chosen products | Amazon Product Offers Scraper |
| Today's lightning and limited-time deals | Amazon Deals Scraper |
| Price history and price-drop alerts | Amazon Price Tracker |
| Full details of single products | Amazon Product Scraper |

### ❓ Frequently Asked Questions

#### 🔸 What data does Amazon Warehouse Deals Scraper extract?

Amazon Warehouse Deals Scraper extracts the lowest used price, the number of used offers, the new and list price, the saving in amount and percent, rating, reviews, brand, category and Best Seller Rank for every deal.

#### 🔸 How do I scrape only used-cheaper deals with Amazon Warehouse Deals Scraper?

Switch on **Only when used is cheaper**. Amazon Warehouse Deals Scraper then keeps deals whose `usedIsCheaper` value is true.

#### 🔸 Can Amazon Warehouse Deals Scraper filter by condition grade?

Yes. Select grades such as "Used - Like New" and turn on **List individual used offers**. Deals without an offer in those grades are dropped, and grade names are recognized on non-English marketplaces too.

#### 🔸 Does Amazon Warehouse Deals Scraper need an Amazon login?

No. Amazon Warehouse Deals Scraper reads the public Warehouse Deals department as a visitor sees it, so no Amazon account is needed.

#### 🔸 Why is usedOffers empty in Amazon Warehouse Deals Scraper results?

The individual offer list is off by default. When it is on, Amazon still shows only offers that can ship to your delivery location.

#### 🔸 Which Amazon marketplaces does Amazon Warehouse Deals Scraper support?

All 21 marketplaces in the input list can be selected, from amazon.com to amazon.eg. Only those with a Warehouse or Resale department return deals.

#### 🔸 Does Amazon Warehouse Deals Scraper include sponsored products?

No. Amazon Warehouse Deals Scraper skips sponsored results and results that show no used offer.

#### 🔸 How many used offers does Amazon Warehouse Deals Scraper list per product?

Up to 50 used offers per product, when **List individual used offers** is on. This makes each product slower to process.

#### 🔸 How do I export Amazon Warehouse Deals Scraper results?

Download the deals dataset as JSON, CSV or Excel from the run page, or fetch it with the Apify API. You can also schedule runs.

### 💬 Support

Questions, feature ideas or a keyword that returns fewer deals than expected? Send the run link and your input, and the Amazon Warehouse Deals Scraper results will be reviewed.

- contact me by email : alphascraper69@gmail.com

# Actor input Schema

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

Search phrases looked up in the Warehouse Deals department (for example 'headphones', 'laptop').

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

Marketplace to search (only marketplaces that have Warehouse / Resale deals return results).

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

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

## `maxItemsPerKeyword` (type: `integer`):

Optional cap per keyword, to spread the total evenly over several keywords.

## `maxPagesPerKeyword` (type: `integer`):

Stop a keyword after this many result pages.

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

How Amazon orders the Warehouse Deals results.

## `minSavingsPercent` (type: `number`):

Keep only deals that save at least this percent compared with the new price (needs 'Compare with the new price').

## `onlyUsedCheaperThanNew` (type: `boolean`):

Keep only deals where the used price is lower than the new price (needs 'Compare with the new price').

## `minUsedPrice` (type: `number`):

Keep only deals whose lowest used price is at least this value (marketplace currency).

## `maxUsedPrice` (type: `number`):

Keep only deals whose lowest used price is at most this value (marketplace currency).

## `conditions` (type: `array`):

Keep only deals that have an offer in one of these grades. Needs 'List individual used offers'.

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

## `compareWithNewPrice` (type: `boolean`):

Open every product page for the new price, list price, savings, rank, brand and category (one page load per product).

## `includeOfferDetails` (type: `boolean`):

Also open the product's offers panel and list each used offer (condition, price, shipping, seller). Slower.

## `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": [
    "headphones",
    "laptop"
  ],
  "marketplace": "amazon.com",
  "deliveryZip": "10001",
  "maxItems": 15,
  "sortBy": "relevance",
  "onlyUsedCheaperThanNew": false,
  "compareWithNewPrice": true,
  "includeOfferDetails": 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": [
        "headphones"
    ]
};

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

# Run the Actor and wait for it to finish
run = client.actor("phone_number_scraper/amazon-warehouse-deals-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": [
    "headphones"
  ]
}' |
apify call phone_number_scraper/amazon-warehouse-deals-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-warehouse-deals-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/hnEUQHGpgb9dGQ1uT/builds/IuUTckQblwP21su71/openapi.json
