# Costco Product & Price Scraper (`automation-lab/costco-product-price-scraper`) Actor

Scrape Costco.com products by keyword, category URL, product URL or item number: online and warehouse prices, Instant Savings amount with start and end dates, availability, delivery options, ratings and images.

- **URL**: https://apify.com/automation-lab/costco-product-price-scraper.md
- **Developed by:** [Automation Lab](https://apify.com/automation-lab) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.97 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

## Costco Product & Price Scraper

Scrape **Costco.com** products by **keyword**, **category URL**, **product URL** or **item number**. Each product comes back as one clean record with the current online price, list price, **Instant Savings amount with start and end dates**, warehouse price, price per unit, online and warehouse availability, delivery options, rating, review count, images and category path.

Built for daily and weekly **Costco price tracking** and **Instant Savings monitoring**: resellers, deal sites, CPG brands and analysts get every savings offer with the date it ends, not just a price.

### What does Costco Product & Price Scraper do?

- 🔍 **Search Costco.com by keyword**, like a shopper typing in the search box ("paper towels", "olive oil", "laptops").
- 🗂️ **Scrape whole Costco categories** from a category URL, such as `https://www.costco.com/laptops.html`.
- 🔢 **Look up item numbers and product URLs** directly. No browser is needed for this mode, so it is the fastest way to track a fixed list of products every day.
- 💲 **Prices**: current online price, list price before savings, the nearest warehouse's in-store price, and price per unit (per roll, capsule, oz and so on).
- 🏷️ **Instant Savings**: total savings amount, each offer's text ("$10 OFF"), full terms, **start date, end date** and per-member limit.
- 📦 **Availability and delivery**: online and warehouse stock status, delivery options (Shipping, 2-Day Delivery, Same-Day Delivery, Warehouse Pickup) and shipping speeds.
- ⭐ **Ratings, images, brand, category path, member-only flag** and product specifications.

### Who is it for?

#### Resellers and arbitrage sellers

Find Costco products with the deepest Instant Savings and know exactly when each deal ends.

#### Deal and coupon sites

Publish Costco deals with accurate savings amounts and end dates, refreshed every day.

#### CPG brands and manufacturers

Monitor your products and competitors on Costco.com: price, savings events, stock and rating.

#### Pricing and market analysts

Build Costco price history by item number, compare online and in-warehouse prices, and track price per unit across pack sizes.

### Why use this Costco scraper?

- **One Actor for every input**: keywords, category URLs, product URLs and item numbers in the same run.
- **Dated savings**: other Costco scrapers return a price or a discount; this one also returns when each Instant Savings offer starts and ends.
- **Online and warehouse prices**: Costco often charges less in the warehouse than online. Both are returned.
- **Clean price per unit**, derived from the pack size so you can compare a 12-pack with a 30-pack.
- **No Costco account or cookies needed.**

### Quick start

1. Enter one or more **Search keywords**, paste **Costco.com URLs**, or list **Item numbers**.
2. Set **Maximum products per search**.
3. Click **Start** and download the results as JSON, CSV, Excel or HTML.

### Input

| Field | Description |
| --- | --- |
| `searchQueries` | Keywords to search on Costco.com. Each returns up to `maxItems` products. |
| `startUrls` | Costco.com category pages, search result pages or product pages. |
| `itemNumbers` | Costco item numbers (the "Item 1452518" number on the product page). |
| `maxItems` | Most products per keyword or category URL (default 50). Item numbers and product URLs are not limited by this. |
| `includeSavingsDetails` | Add Instant Savings dates, member limits, shipping methods and specifications (default on). |
| `includeOutOfStock` | Include products Costco hides because they are sold out (default off). |

### Example input

Search two keywords and one category:

```json
{
    "searchQueries": ["paper towels", "laptops"],
    "startUrls": [{ "url": "https://www.costco.com/televisions.html" }],
    "maxItems": 100
}
```

Track a fixed list of products every day:

```json
{
    "itemNumbers": ["1452518", "512599", "2001199"]
}
```

### Supported Costco URLs

| URL | Example | Result |
| --- | --- | --- |
| Category page | `https://www.costco.com/laptops.html` | Products in the category |
| Search page | `https://www.costco.com/s?keyword=olive+oil` | Products matching the keyword |
| Product page | `https://www.costco.com/p/-/kirkland-signature-paper-towels/100234271` | That one product |
| Old product page | `https://www.costco.com/.product.100737171.html` | That one product |

Only **costco.com (US)** is supported. Costco.ca and Costco Business Center are not.

### Output

One record per product. Example (shortened):

```json
{
    "itemNumber": "2044491",
    "productId": "4201005956",
    "title": "HP OmniBook 3 16\" Touchscreen Laptop - Intel Core Ultra 7 - 16GB Memory - 1TB SSD",
    "brand": "HP",
    "url": "https://www.costco.com/p/-/hp-omnibook-3-16-touchscreen-laptop/4201005956",
    "price": 699.99,
    "listPrice": 1199.99,
    "currency": "USD",
    "instantSavings": 500,
    "instantSavingsText": "$355 OFF",
    "instantSavingsStartDate": "2026-11-01T07:00:00Z",
    "instantSavingsEndDate": "2026-12-01T07:59:00Z",
    "savingsOffers": [
        { "amount": 355, "text": "$355 OFF", "details": "$355 savings is valid 11/1/26 through 11/30/26. While supplies last. Limit 2 per member.", "startDate": "2026-11-01T07:00:00Z", "endDate": "2026-12-01T07:59:00Z", "limitPerMember": 2 },
        { "amount": 145, "text": "$145 OFF", "details": "$145 manufacturer's savings is valid 11/1/26 through 11/30/26. While supplies last. Limit 2 per member.", "startDate": "2026-11-01T07:00:00Z", "endDate": "2026-12-01T07:59:00Z", "limitPerMember": 2 }
    ],
    "pricePerUnit": null,
    "warehousePrice": null,
    "memberOnly": false,
    "onlineAvailability": "In stock",
    "deliveryOptions": ["Shipping"],
    "shippingMethods": ["Standard", "Express 1 to 2 Business Days"],
    "rating": 3,
    "reviewCount": 3,
    "imageUrl": "https://gdx-assets.costco.com/adobe/assets/urn:aaid:aem:6ad980ed-6d9b-423d-b091-3bddc4e96588/as/4201005956-847__1.avif",
    "categoryPath": ["Computers", "Laptops", "Windows Laptops"],
    "sourceType": "search",
    "position": 1,
    "scrapedAt": "2026-11-17T07:29:16.931Z"
}
```

### Data fields

| Field | Description |
| --- | --- |
| `itemNumber`, `productId` | Costco item number (the priced variant) and product ID from the URL |
| `title`, `brand`, `url` | Product name, brand and Costco.com link |
| `price`, `listPrice`, `priceMax` | Online price after savings, before savings, and highest variant price |
| `instantSavings`, `instantSavingsText` | Total savings amount and first savings label |
| `instantSavingsStartDate`, `instantSavingsEndDate` | When the first savings offer starts and ends |
| `savingsOffers` | Every offer with amount, text, terms, dates and member limit |
| `promotionTexts` | All promotion labels, including "Buy more, save more" offers |
| `pricePerUnit`, `unitCount`, `unitName` | Price per unit derived from the pack count or size |
| `warehousePrice`, `warehouseId` | In-warehouse price at the nearest warehouse, when it differs |
| `memberOnly`, `priceInCartOnly` | Member-only product; price shown only in cart |
| `onlineAvailability`, `warehouseAvailability` | Stock status online and in the warehouse |
| `deliveryOptions`, `shippingMethods` | How the product can be delivered and shipping speeds |
| `rating`, `reviewCount` | Average stars and number of ratings |
| `imageUrl`, `images`, `categoryPath`, `attributes` | Images, category path and specifications |
| `source`, `sourceType`, `position`, `scrapedAt` | Where the record came from, its rank and timestamp |

Search and category results include stock status and warehouse prices. Item number lookups return price, savings, rating and specifications but not stock status.

### How much does it cost to scrape Costco?

The Actor uses pay-per-event pricing: a small fee per run plus a fee per product saved. You pay only for products delivered.

| Event | Price |
| --- | --- |
| Run start | $0.03 |
| Product (Free and Starter plans) | $0.0024678 |
| Product (Scale plan) | $0.002221 |
| Product (Business plan and above) | $0.0019742 |

Example: 100 products on the Free plan cost about $0.03 + 100 × $0.0024678 = **$0.28**. 1,000 products cost about $2.50. The start fee covers the browser session and residential proxy every run needs. Set **Maximum charge per run** to cap any run.

### Scheduling price tracking

Use Apify **Schedules** to run the same input every day or week, then compare `price`, `instantSavings` and `instantSavingsEndDate` between runs. The item number mode is the fastest and cheapest for a fixed product list.

### Integrations

Send results to **Google Sheets**, **Zapier**, **Make**, **Slack**, **webhooks**, Amazon S3 or any database through Apify integrations, or read the dataset through the Apify API.

### API usage with cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/automation-lab~costco-product-price-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["olive oil"], "maxItems": 20}'
```

### API usage with JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('automation-lab/costco-product-price-scraper').call({
    searchQueries: ['olive oil'],
    maxItems: 20,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((item) => item.instantSavings));
```

### API usage with Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("automation-lab/costco-product-price-scraper").call(
    run_input={"itemNumbers": ["1452518", "512599"]}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["title"], item["price"], item["instantSavingsEndDate"])
```

### Use with Apify MCP and AI agents

#### Claude Code

```bash
claude mcp add --transport http apify https://mcp.apify.com?tools=automation-lab/costco-product-price-scraper
```

#### Claude Desktop, Cursor, and VS Code setup

Use this `mcpServers` JSON in Claude Desktop or Cursor. VS Code users can add the same HTTP MCP server through the MCP configuration panel.

```json
{
  "mcpServers": {
    "apify": {
      "type": "http",
      "url": "https://mcp.apify.com?tools=automation-lab/costco-product-price-scraper"
    }
  }
}
```

Example prompts:

- "Find Costco laptops with Instant Savings and tell me when each deal ends."
- "Get the current Costco price for item numbers 1452518 and 512599."
- "Compare price per roll for Costco paper towels."

### Performance and limits

- A search or category run starts one browser session, then fetches up to 96 products per request. 100 products usually take under a minute.
- Item number runs need no browser and return 20 products per request.
- Costco caps very deep result pages; split a broad search into narrower keywords or categories for complete coverage.

### Tips for best results

- Use item numbers for daily tracking of a known product list: faster and cheaper than search.
- Use specific keywords ("kirkland olive oil") to keep results relevant.
- Keep **Add Instant Savings dates** on when you need savings end dates.

### Troubleshooting

#### Why did a keyword return a category?

Costco sends some keywords (like "tv") straight to a category page. The Actor follows that redirect and returns the category's products.

#### Why are some item numbers missing?

Costco no longer lists them. The run log names every item number Costco did not return.

#### Why is the price per unit empty?

It is only filled when the pack count or size is clear from the product's quantity or title.

#### Why do two runs of the same keyword return different counts?

Costco shows each US region its own assortment, and hides products that are out of stock there. Each run uses one US shopper location (logged as the session's state and ZIP code), so counts can differ between runs. For a fixed product list, use item numbers: they always return Costco's national online price.

#### Why is the warehouse price empty?

The product is online-only, or the warehouse price equals the online price data Costco returns.

### Legal and ethical use

This Actor collects publicly available product and price information from Costco.com without logging in. Use the data in line with Costco's terms and applicable laws, and do not use it to overload the website. You are responsible for how you use the data.

### Data handling and diagnostics

Results are stored only in your Apify datasets, key-value stores and run logs, which follow your account's retention settings. No AI model is used. When a run fails, sanitized diagnostics (exception, Actor/build/run IDs and the input with secret fields and URL queries removed) are sent to our private GlitchTip error tracker and kept for 30 days so we can fix the problem. Deleting Apify storage does not delete those reports.

### Related scrapers

- [Costco Product Reviews Scraper](https://apify.com/automation-lab/costco-product-reviews-scraper): individual Costco product reviews and rating statistics.

### FAQ

#### Does it require a Costco membership or account?

No. It reads the public Costco.com catalog.

#### Does it use a proxy or browser?

Yes. It uses Apify residential proxies, and a browser for search and category pages. Both are included in the price.

#### Can I scrape Costco.ca?

Not yet. Only costco.com (US) is supported.

#### Can I export to CSV or Excel?

Yes. Download the dataset as CSV, Excel, JSON, XML or HTML.

#### Can I run it on a schedule?

Yes, with Apify Schedules, daily or weekly.

### Support

Found a bug or need a field? Open an issue on the Actor's **Issues** tab and we will help.

# Changelog

This Actor's version history is a separate document: https://apify.com/automation-lab/costco-product-price-scraper/changelog.md

# Actor input Schema

## `searchQueries` (type: `array`):

Words to search on Costco.com, one per line, like a shopper would type them. Each keyword returns up to Maximum products per search.

## `startUrls` (type: `array`):

Costco.com category pages (like https://www.costco.com/laptops.html), search result pages, or product pages. Product pages return that one product.

## `itemNumbers` (type: `array`):

Costco item numbers, as shown on the product page ("Item 1452518"). Each returns one product with its current price and savings. No browser is needed, so this is the fastest mode for daily price tracking.

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

The most products to return for each keyword or category URL. Item numbers and product URLs are not limited by this.

## `includeSavingsDetails` (type: `boolean`):

Look up each product's savings start and end dates, member limit, savings text and shipping methods. Turn off for slightly faster search runs with prices only.

## `includeOutOfStock` (type: `boolean`):

Costco hides sold-out products from search by default. Turn on to include them.

## Actor input object example

```json
{
  "searchQueries": [
    "paper towels",
    "olive oil",
    "laptops"
  ],
  "startUrls": [
    {
      "url": "https://www.costco.com/paper-towels.html"
    }
  ],
  "itemNumbers": [
    "1452518",
    "512599"
  ],
  "maxItems": 20,
  "includeSavingsDetails": true,
  "includeOutOfStock": false
}
```

# Actor output Schema

## `overview` (type: `string`):

One record per Costco product: item number, title, brand, URL, price, list price, Instant Savings and dates, availability and rating.

# 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 = {
    "searchQueries": [
        "paper towels"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation-lab/costco-product-price-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 = {
    "searchQueries": ["paper towels"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("automation-lab/costco-product-price-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 '{
  "searchQueries": [
    "paper towels"
  ],
  "maxItems": 20
}' |
apify call automation-lab/costco-product-price-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automation-lab/costco-product-price-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/rtJfbXPifibrtxZgv/builds/k8erMaFRnkdq462cm/openapi.json
