# Amazon Search Results Scraper (`phone_number_scraper/amazon-search-results-scraper`) Actor

\[ 1k / 1$ ] Amazon Search Results Scraper for keywords or search URLs with real pagination: ranked listings with price, rating, reviews, sponsored and badge flags, sorting, price and quality filters. Track Amazon search rankings and competitors in JSON, CSV or Excel.

- **URL**: https://apify.com/phone_number_scraper/amazon-search-results-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 Search Results Scraper

**Amazon Search Results Scraper** turns Amazon search pages into structured, ranked data. Enter keywords or ready-made search URLs, pick an Amazon marketplace, and get one record per listing: position, title, price, list price, discount, rating, review count, badges, sponsored flag, delivery text and product link. 🔍

This Amazon Search Results Scraper follows Amazon's own *Next page* link, so you can collect several result pages per search instead of only the first screen. It suits sellers, agencies, SEO and ad teams, and analysts who track Amazon search rankings, prices and competitors.

> **At a glance:** keywords or search URLs in, ranked listings out. Sorting, price and quality filters, 21 marketplaces, and exports to JSON, CSV and Excel.

> **Good to know:** results reflect what Amazon shows publicly for the chosen marketplace and delivery location. Sponsored placements are included and flagged, and they do not appear on every page.

### 🔹 Amazon Search Results Scraper Key Features

- 🔑 Searches by keyword or by full search URL, and mixes both in one run.
- 📄 Real pagination through the live *Next page* link, up to 50 result pages per search.
- 📊 Records overall position and organic position, so sponsored slots never distort your ranking data.
- 💲 Captures price, currency, list price and discount percentage when Amazon shows them.
- 🏅 Flags Amazon's Choice, Best Seller, limited-time deal and sponsored listings.
- 🎚️ Applies sorting, department and price range, plus minimum rating and review filters.
- 🧹 Keeps or removes listings by words in the title, and can drop sponsored results with one checkbox.
- 🌍 Supports 21 marketplaces and a US ZIP code for amazon.com.
- 🧮 Skips repeated listings, so the same ASIN is saved once per search.

> **Why use Amazon Search Results Scraper?** It replaces manual searching and copying with repeatable runs. Schedule them to watch Amazon search rankings change over time and compare the same keyword across marketplaces.

### 📊 Amazon Search Results Scraper Data You Can Extract

Each dataset item is one listing from an Amazon search results page. Amazon Search Results Scraper adds the search context, so every row is traceable.

- Ranking: overall position, organic position and result page number.
- Product: ASIN, title, product URL and thumbnail image.
- Pricing: current price, currency, list price and discount percent.
- Social proof: star rating, number of ratings and the "bought in past month" text.
- Badges: Amazon's Choice, Best Seller, limited-time deal, Prime marker and badge texts.
- Offer details: delivery text, coupon text, low-stock text and "more options" text such as extra colors.
- Search context: keyword, search URL, results bar text, marketplace, country code and timestamp.

The overall position counts every card on the page, ads included. The organic position counts only non-sponsored listings, which makes it the cleaner number for ranking reports.

### 🚀 How to Use Amazon Search Results Scraper

You can start Amazon Search Results Scraper without writing code.

1. Open Amazon Search Results Scraper on Apify and go to the Input tab.
2. Add one or more **Search keywords**, or paste full **Search URLs**.
3. Choose the **Amazon marketplace** for your keywords.
4. Set **Maximum number of results** and, if needed, a page limit.
5. Add sorting, price or quality filters.
6. Run Amazon Search Results Scraper and export the dataset as JSON, CSV or Excel.

#### 🧪 Example run, step by step

Here is how a typical Amazon Search Results Scraper run unfolds.

1. You enter two keywords, set **Maximum number of results** to 100 and **Maximum results per keyword / URL** to 50.
2. Amazon Search Results Scraper opens the first result page of each keyword on your marketplace.
3. It reads every listing, numbers it in page order and keeps the ones that pass your filters.
4. It follows the *Next page* link until a search reaches its cap or Amazon shows no further page.

### 🔎 How to Scrape Amazon Search Rankings with Amazon Search Results Scraper

Rank tracking is a core job for Amazon Search Results Scraper. Here is a simple setup for one keyword.

1. Enter the keyword, for example `wireless earbuds`, and select amazon.com.
2. Set **Maximum number of results** to 100 so the run covers several pages.
3. Leave **Include sponsored results** on to see paid placements.
4. Run it and sort the dataset by `organicPosition` to see natural rankings.
5. Repeat on a schedule and compare `asin` positions between runs.

### 🏷️ How to Find Amazon's Choice Listings with Amazon Search Results Scraper

Badges help you see which products Amazon itself promotes for a phrase. Here is a quick way to list them.

1. Enter your niche keyword and pick the marketplace.
2. Tick **Only Amazon's Choice**, or **Only Best Sellers** if you prefer that badge.
3. Add **Minimum number of reviews** such as 100 to skip untested listings.
4. Raise **Maximum result pages per search** so deeper pages are checked too.
5. Read `badges`, `price` and `delivery` to compare the promoted listings.

### 🤔 Can You Use Amazon Search Results Scraper for These Tasks?

#### 📢 Can Amazon Search Results Scraper research Amazon sponsored ads?

Yes. Sponsored listings are flagged with `isSponsored`, and their `organicPosition` stays empty. Sponsored ads appear intermittently, so repeat runs for a fuller picture.

#### 🔗 Can Amazon Search Results Scraper use a search URL with filters already applied?

Yes. Paste the full search URL and it is used as it is, on its own marketplace. Sorting, price and department settings from the form apply to keywords only.

#### 📍 Can Amazon Search Results Scraper scrape prices for a specific location?

On amazon.com you can set a 5-digit US ZIP code, since prices and availability depend on the delivery location. The ZIP option is ignored on other marketplaces.

#### 🔢 Can Amazon Search Results Scraper search by ASIN?

No. It searches by keyword or by search URL. To read details of known ASINs, use a product-level Actor instead.

### 💡 Amazon Search Results Scraper Use Cases

> **Popular ways to use Amazon Search Results Scraper**

- 📈 Sellers: use Amazon Search Results Scraper to check where a product ranks for the keywords that matter.
- 🕵️ Competitor research: see which brands own the first result pages.
- 📣 Ad teams: use Amazon Search Results Scraper to measure how often sponsored listings appear for a search.
- 💰 Price monitoring: compare prices, list prices and discounts across a keyword.
- 🧭 Market research: find Amazon's Choice and Best Seller listings in a niche.
- 🌐 International teams: compare the same keyword across marketplaces.

### ⚙️ Amazon Search Results Scraper Input

Amazon Search Results Scraper needs at least one keyword or search URL. Every other field is optional.

| Field | Type | Default | What it does |
| --- | --- | --- | --- |
| `keywords` | array | `wireless earbuds` (prefill) | Search phrases to look up. |
| `searchUrls` | array | empty | Full search URLs, used as they are. |
| `marketplace` | string | `amazon.com` | Store for keywords. URLs keep their own. |
| `department` | string | empty | Search department alias, such as `electronics` or `aps`. |
| `deliveryZip` | string | empty | 5-digit US ZIP code, amazon.com only. |
| `maxItems` | integer | 15 | Maximum results in the whole run. |
| `maxItemsPerSearch` | integer | empty | Cap per keyword or URL. |
| `maxPagesPerSearch` | integer | empty | Result pages per search, 1 to 50. |
| `sortBy` | string | `relevance` | Also `price-low-to-high`, `price-high-to-low`, `avg-customer-review`, `newest-arrivals`. |
| `minPrice` | integer | empty | Minimum price in whole currency units. |
| `maxPrice` | integer | empty | Maximum price in whole currency units. |
| `minRating` | number | empty | Minimum stars, 1 to 5. |
| `minReviews` | integer | empty | Minimum number of ratings. |
| `onlyAmazonChoice` | boolean | false | Keep only Amazon's Choice listings. |
| `onlyBestSellers` | boolean | false | Keep only Best Seller listings. |
| `onlyLimitedTimeDeals` | boolean | false | Keep only limited-time deals. |
| `includeKeywords` | array | empty | Title must contain any of these words. |
| `excludeKeywords` | array | empty | Skip titles containing any of these words. |
| `includeSponsored` | boolean | true | Keep sponsored placements. |
| `maxConcurrency` | integer | 3 | Searches processed in parallel, 1 to 10. |

Amazon Search Results Scraper supports amazon.com, amazon.co.uk and amazon.de, plus eighteen more regional stores (21 in total).

Quality filters and title words apply to keywords and search URLs alike. Sorting, department and price range apply to keywords only, because a pasted URL already holds its own settings.

### 🧾 Amazon Search Results Scraper Input Example

This example runs Amazon Search Results Scraper for two keywords on amazon.com, sorted by customer review, with quality filters.

```json
{
  "keywords": ["wireless earbuds", "gaming laptop"],
  "marketplace": "amazon.com",
  "department": "electronics",
  "maxItems": 100,
  "maxItemsPerSearch": 50,
  "maxPagesPerSearch": 5,
  "sortBy": "avg-customer-review",
  "minPrice": 20,
  "maxPrice": 300,
  "minRating": 4,
  "minReviews": 100,
  "excludeKeywords": ["refurbished"],
  "includeSponsored": true,
  "maxConcurrency": 3
}
```

### 📦 Amazon Search Results Scraper Output

Amazon Search Results Scraper saves each listing as one dataset item, with an overview table and a search-context view in the Output tab.

- `position`, `organicPosition`, `pageNumber`: where the listing appeared. Sponsored listings have no organic position.
- `asin`, `title`, `url`, `thumbnailImage`, `productPath`: product identity and links.
- `price`, `listPrice`, `discountPercent`: current price, crossed-out price and discount.
- `stars`, `reviewsCount`, `boughtInPastMonth`: rating and demand signals.
- `isSponsored`, `isAmazonChoice`, `isBestSeller`, `isLimitedTimeDeal`, `isPrime`, `badges`: flags and badge texts.
- `delivery`, `couponText`, `lowStockText`, `moreOptionsText`: offer details shown on the card.
- `searchTerm`, `searchUrl`, `resultsInfo`: the search that produced the row.
- `domain`, `loadedCountryCode`, `scrapedAt`: marketplace, country and collection time.

```json
{
  "asin": "B0H8NFRF3S",
  "title": "Wireless Earbuds, Bluetooth 5.4 Headphones with Noise Cancelling Mic, 50H Playtime",
  "url": "https://www.amazon.com/dp/B0H8NFRF3S",
  "price": { "value": 19.97, "currency": "USD", "formatted": "$19.97" },
  "listPrice": { "value": 199.99, "currency": "USD", "formatted": "$199.99" },
  "discountPercent": 90,
  "stars": 4.9,
  "reviewsCount": 676,
  "boughtInPastMonth": "1K+ bought in past month",
  "isSponsored": false,
  "isAmazonChoice": true,
  "isBestSeller": false,
  "isLimitedTimeDeal": false,
  "isPrime": null,
  "badges": ["Overall Pick"],
  "couponText": null,
  "delivery": "FREE delivery Tue, Nov 17 on $35 of items shipped by Amazon",
  "lowStockText": null,
  "moreOptionsText": null,
  "thumbnailImage": "https://m.media-amazon.com/images/I/61rw2e+AtUL._AC_UY218_.jpg",
  "productPath": "/dp/B0H8NFRF3S",
  "position": 1,
  "organicPosition": 1,
  "pageNumber": 1,
  "searchTerm": "wireless earbuds",
  "searchUrl": "https://www.amazon.com/s?k=wireless+earbuds",
  "resultsInfo": "1-16 of over 20,000 results for \"wireless earbuds\"",
  "domain": "amazon.com",
  "loadedCountryCode": "US",
  "scrapedAt": "2026-11-12T14:06:03Z"
}
```

A sponsored listing uses the same fields, but it has no organic position and may carry a coupon or low-stock text:

```json
{
  "asin": "B0EXAMPL01",
  "title": "Example Brand Sport Earbuds, Waterproof, 40H Battery",
  "url": "https://www.amazon.com/dp/B0EXAMPL01",
  "price": { "value": 24.99, "currency": "USD", "formatted": "$24.99" },
  "listPrice": null,
  "discountPercent": null,
  "stars": 4.3,
  "reviewsCount": 1520,
  "isSponsored": true,
  "isAmazonChoice": false,
  "isBestSeller": false,
  "isLimitedTimeDeal": false,
  "isPrime": true,
  "badges": [],
  "couponText": "Save 10% with coupon",
  "lowStockText": "Only 4 left in stock - order soon",
  "position": 3,
  "organicPosition": null,
  "pageNumber": 1,
  "searchTerm": "wireless earbuds",
  "domain": "amazon.com",
  "loadedCountryCode": "US",
  "scrapedAt": "2026-11-12T14:06:03Z"
}
```

### 🔍 Amazon Search Results Scraper Data Quality Notes

- `position` keeps counting across result pages, so a listing on page 2 can have position 17 or higher.
- Positions are assigned before your filters run, so the saved numbers can have gaps. That is intentional: they show the real place on Amazon.
- `price`, `listPrice` and `discountPercent` are null when the card shows no price or no crossed-out price.
- `isPrime` is `true` when the Prime marker is shown and null otherwise.
- `boughtInPastMonth` is captured when it appears in English wording, so it is often null on other languages.

### 💰 Amazon Search Results Scraper Pricing

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

Amazon Search Results Scraper uses pay-per-result pricing, so you pay for the listings saved to your dataset. Each saved listing counts as one result, sponsored ones included.

- **Maximum number of results** limits the whole run, and **Maximum results per keyword / URL** spreads it across searches.
- Filters keep only matching listings, so you pay only for the records Amazon Search Results Scraper saves.
- A search that runs out of pages leaves its unused share to the other searches.
- Apify platform plans and usage limits apply to your account as usual.

For example, a run capped at 100 results costs about $0.15, and 1,000 results cost $1.49.

### ✅ Tips and Best Practices for Amazon Search Results Scraper

> **Quick tips:** start Amazon Search Results Scraper with a small limit, check the output, then scale up.

- In Amazon Search Results Scraper output, use `organicPosition` for ranking reports and `position` for the full page layout including ads.
- Set **Maximum result pages per search** to control how deep each search goes. A page holds about 16 to 48 results.
- Raise **Maximum number of results** when you search several keywords, or the total may be used up by the first one.
- Use exact marketplace, ZIP code and sorting settings on every scheduled run, so comparisons stay fair.
- Combine `minRating` with `minReviews` to skip new or weakly rated listings and focus on established competitors.
- Prices follow the marketplace currency, so compare `price.value` only within one marketplace.
- Keep **Parallel items** between 2 and 5 for stable Amazon Search Results Scraper runs.

### 🛠️ Troubleshooting Amazon Search Results Scraper Results

> **Fewer listings than your limit?** Look at filters and pages first.

- Listings without a star rating are removed when you set **Minimum rating**, and the same applies to **Minimum number of reviews** above zero.
- Amazon may stop offering *Next page* before your limit, especially for narrow phrases.
- A sponsored listing you saw in the browser is missing: ads rotate, so run the search again.
- Prices differ from your browser: choose the same marketplace and, on amazon.com, the same ZIP code.
- A search that fails to load is skipped, and the remaining searches still finish.

### 🔗 Scheduling and Integrations

Amazon Search Results Scraper runs on the Apify platform, so you can start it manually, on a schedule or through the Apify API. Results download as JSON, CSV, Excel, XML or HTML, and a webhook can notify another system when a run finishes. A daily schedule with fixed settings gives you a ranking history.

### 🧭 Which Amazon Actor Should You Use?

- Use Amazon Search Results Scraper to read what a search page lists, with prices and badges.
- Use Amazon Keyword Rank Tracker to follow where specific ASINs or brands rank for a keyword.
- Use Amazon Sponsored Ads Scraper to study which products advertise on a keyword.
- Use Amazon Product Scraper for full details of a listing once you have its ASIN.
- Use Amazon Search Suggestions Scraper to discover keyword ideas before you search.

### ❓ Frequently Asked Questions

#### 📋 What data does Amazon Search Results Scraper extract?

Amazon Search Results Scraper extracts ranked search listings: position, ASIN, title, price, list price, discount, rating, review count, badges, delivery text and the search context.

#### 🔢 How many Amazon search results can Amazon Search Results Scraper collect?

Amazon Search Results Scraper collects up to **Maximum number of results**, following result pages until the limit is reached or Amazon shows no further page. You can also cap pages per search at 50.

#### 🌐 Which Amazon marketplaces does Amazon Search Results Scraper support?

Amazon Search Results Scraper supports 21 marketplaces, including amazon.com and amazon.co.uk.

#### 🧮 How do I find a product's organic rank with Amazon Search Results Scraper?

Run the keyword, then filter the dataset by `asin` and read `organicPosition`. Sponsored copies of the same product are flagged separately.

#### 🙈 Can Amazon Search Results Scraper exclude sponsored results?

Yes. In Amazon Search Results Scraper, turn off **Include sponsored results** and only organic listings are saved.

#### 📉 Why did Amazon Search Results Scraper return fewer results than my limit?

Amazon may show no further result page for a search, your filters may remove listings, or the run may stop after a few minutes and keep the results collected so far. Relax your filters or add more keywords to collect more.

#### 🧰 How do I use Amazon Search Results Scraper with my own filters?

Apply the filters on Amazon, copy the search URL from your browser and paste it into **Search URLs**. Amazon Search Results Scraper then reads the filtered results page by page.

#### 🗂️ In which formats can I download Amazon Search Results Scraper data?

The dataset can be exported as JSON, CSV, Excel, XML or HTML and read through the Apify API.

#### 🔁 Does Amazon Search Results Scraper return the same product twice?

Not within one search. A repeated ASIN is saved once per keyword or URL. The same ASIN can appear again for a different keyword, because its rank there is different.

#### 💵 Can Amazon Search Results Scraper compare prices across countries?

Yes. Run Amazon Search Results Scraper with the same keyword on several marketplaces. Each country uses its own currency, so convert values before comparing.

### 🤝 Support

Questions or feature requests for Amazon Search Results Scraper? Open an issue on the Actor page or send an email, and include your input and the run link so the problem can be reproduced quickly.

- contact me by email : alphascraper69@gmail.com

# Actor input Schema

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

Search phrases to look up on Amazon.

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

Full Amazon search URLs (/s?k=… with your filters already applied), used as-is.

## `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: prices, currency 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 results in the whole run.

## `maxItemsPerSearch` (type: `integer`):

Optional cap per keyword or search URL, to spread the total evenly over several searches.

## `maxPagesPerSearch` (type: `integer`):

Stop a search after this many result pages (a page holds about 16–48 results).

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

How Amazon orders the results.

## `minPrice` (type: `integer`):

Amazon price filter, in whole units of the marketplace's currency.

## `maxPrice` (type: `integer`):

Amazon price filter, in whole units of the marketplace's currency.

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

## `onlyAmazonChoice` (type: `boolean`):

Keep only products with the Amazon's Choice badge.

## `onlyBestSellers` (type: `boolean`):

Keep only products with the Best Seller badge.

## `onlyLimitedTimeDeals` (type: `boolean`):

Keep only products with a limited-time deal.

## `includeKeywords` (type: `array`):

Keep only results whose title contains at least one of these words.

## `excludeKeywords` (type: `array`):

Skip results whose title contains any of these words.

## `includeSponsored` (type: `boolean`):

Keep sponsored placements (flagged with `isSponsored`).

## `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": [
    "gaming laptop",
    "iphone 15 case"
  ],
  "searchUrls": [
    "https://www.amazon.com/s?k=yoga+mat"
  ],
  "marketplace": "amazon.com",
  "department": "electronics",
  "deliveryZip": "10001",
  "maxItems": 15,
  "sortBy": "relevance",
  "onlyAmazonChoice": false,
  "onlyBestSellers": false,
  "onlyLimitedTimeDeals": false,
  "includeKeywords": [
    "wireless",
    "bluetooth"
  ],
  "excludeKeywords": [
    "refurbished",
    "case"
  ],
  "includeSponsored": 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-search-results-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": ["wireless earbuds"] }

# Run the Actor and wait for it to finish
run = client.actor("phone_number_scraper/amazon-search-results-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": [
    "wireless earbuds"
  ]
}' |
apify call phone_number_scraper/amazon-search-results-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-search-results-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/1xMRtgiByKGOhvyOv/builds/YWqg6ihCYRNY5GEmk/openapi.json
