# Staples Products Search Scraper (`powerai/staples-products-search-scraper`) Actor

Scrape product listings from Staples by providing a listing URL, with automatic pagination and structured product details.

- **URL**: https://apify.com/powerai/staples-products-search-scraper.md
- **Developed by:** [PowerAI](https://apify.com/powerai) (community)
- **Categories:** E-commerce, Integrations, Other
- **Stats:** 11 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 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.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

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

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

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

# README

## 🛒 Staples Products Search Scraper

This actor helps you collect product listings from Staples by providing a product listing URL (search results or a category page). It can follow multiple result pages and returns structured product data you can use for analysis, comparison, and catalog building.

### Features

- **URL-based collection:** Provide a Staples listing URL to collect products from that page
- **Multi-page results:** Continues through result pages until there are no more pages or you reach your limit
- **Structured product data:** Captures key details such as product title, price, discounts, rating, and fulfillment options

### Input Parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `searchUrl` | string | Yes | A Staples listing URL (search or category page) |
| `maxItems` | integer | No | Maximum number of products to collect |
| `proxyConfiguration` | object | No | Proxy settings for the actor |

### Output

The output is a list of product objects. Each item includes:

- `searchUrl`: The listing URL used
- `title`: Product title
- `productUrl`: Product page URL
- `imageUrl`: Product image URL
- `price`: Current price (text as shown on the page)
- `originalPrice`: Original price when available
- `discount`: Discount text when available
- `itemId`: Item identifier when available
- `modelId`: Model identifier when available
- `rating`: Star rating when available
- `reviewsCount`: Number of reviews when available
- `unitOfMeasure`: Unit/pack info when available
- `delivery`: Delivery label when available
- `deliveryDate`: Delivery date text when available
- `pickup`: Pickup label when available
- `pickupStore`: Pickup store text when available
- `hasAutoRestock`: Whether the item supports auto-restock (when shown)
- `hasEcoBadge`: Whether the item has an eco badge (when shown)
- `scrapedAt`: Timestamp of when the item was collected

Example output:

```json
[
  {
    "searchUrl": "https://www.staples.com/paper/directory_paper?fids=myStore_3A_221_22&selectedStores=1216",
    "title": "Staples Multipurpose Copy Paper, 8.5\" x 11\", 20 lbs., 92 Bright, 500 Sheets/Ream",
    "productUrl": "https://www.staples.com/example-product/product_123456",
    "imageUrl": "https://www.staples-3p.com/s7/is/image/Staples/example",
    "price": "$6.99",
    "originalPrice": "$9.99",
    "discount": "30% off",
    "itemId": "123456",
    "modelId": "ABC-123",
    "rating": 4.6,
    "reviewsCount": 128,
    "unitOfMeasure": "per ream",
    "delivery": "Delivery",
    "deliveryDate": "Get it by Fri, Feb 2",
    "pickup": "Pick up",
    "pickupStore": "Pick up at Your Store",
    "hasAutoRestock": true,
    "hasEcoBadge": false,
    "scrapedAt": "2026-01-29T12:00:00.000Z"
  }
]
```

### Use Cases

- Product discovery and catalog building
- Price monitoring and comparison
- Assortment and merchandising research

# Actor input Schema

## `searchUrl` (type: `string`):

A Staples listing URL (search results or a category page) to scrape

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

Maximum number of products to fetch

## `proxyConfiguration` (type: `object`):

Proxy settings for the actor

## Actor input object example

```json
{
  "searchUrl": "https://www.staples.com/paper/directory_paper?fids=myStore_3A_221_22&selectedStores=1216",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "searchUrl": "https://www.staples.com/paper/directory_paper?fids=myStore_3A_221_22&selectedStores=1216",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("powerai/staples-products-search-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 = {
    "searchUrl": "https://www.staples.com/paper/directory_paper?fids=myStore_3A_221_22&selectedStores=1216",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("powerai/staples-products-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchUrl": "https://www.staples.com/paper/directory_paper?fids=myStore_3A_221_22&selectedStores=1216",
  "maxItems": 50
}' |
apify call powerai/staples-products-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=powerai/staples-products-search-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/QWFIrUAsReVEpAbCf/builds/eAdLSKuqhaCHdUH4b/openapi.json
