# Costco Warehouse Catalog & Member Deals (`xyrelith-data/costco-warehouse-catalog-member-deals`) Actor

Collect Costco warehouse products from costco.com and costco.ca: prices, instant-savings deals with end dates, member-only flags, specs, images, ratings and reviews. Search by keyword, browse categories, paste product URLs or item numbers, or sweep the full catalog from Costco's sitemaps.

- **URL**: https://apify.com/xyrelith-data/costco-warehouse-catalog-member-deals.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** E-commerce, Automation, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 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/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 Warehouse Catalog & Member Deals

Collect Costco products from **costco.com** and **costco.ca** without a membership login, an API
key, or a proxy setup. The actor returns current and list prices, instant-savings deals with start
and end dates, member-only and online-only flags, specifications, feature bullets, image galleries,
variants, ratings and full review text.

Use it for price monitoring, deal calendars, assortment research, catalog snapshots and review
analysis. Choose a keyword, a category, product URLs, item numbers or the whole sitemap-driven
catalog; then narrow the result with price, rating, stock, deal, member, brand and delivery
filters.

### What you can collect

- **Search by keyword** across the live catalog.
- **Browse categories** from a category URL, slug, name or id, including sub-categories.
- **Look up product URLs or item numbers** for exact product records.
- **Sweep the full catalog** from Costco's own product sitemaps.
- **Collect reviews** for any product, with rating, title, text, date, author, verified-purchase
  badge, helpful votes and photos.

Every product row carries the deal context the listing pages hide: savings amount, promotion
start/end dates, promotion text, purchase limits and the flags Costco uses for member-only,
online-only and warehouse-only items.

### Markets and currency

| Market | Storefront | Language | Currency |
|---|---|---|---|
| United States | costco.com | English | USD |
| Canada (English) | costco.ca | English | CAD |
| Canada (French) | costco.ca | French | CAD |

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search`, `byCategory`, `byProductUrls`, `byItemNumbers`, `fullCatalog` or `reviews`. |
| `searchQuery` | string | – | Keyword for `search`, for example `kirkland coffee` or `air fryer`. |
| `categoryUrls` | array | – | Category URLs, slugs, names or ids for `byCategory`, for example `gaming-monitors`. |
| `productUrls` | array | – | Product URLs or ids for `byProductUrls` and `reviews`. |
| `itemNumbers` | array | – | Costco item numbers or product ids for `byItemNumbers` and `reviews`. |
| `market` | string | `us` | `us`, `ca-en` or `ca-fr`. |
| `maxItems` | int | `50` | Hard record cap (1-20,000). |
| `sort` | string | `relevance` | `relevance`, `priceAsc`, `priceDesc`, `rating` or `newest`. |
| `brand` | string | – | Keep products whose brand contains this text. |
| `minPrice` | number | – | Minimum price in the market currency. |
| `maxPrice` | number | – | Maximum price in the market currency. |
| `minRating` | number | `0` | Minimum star rating, 0-5 (0 means no rating filter). |
| `inStockOnly` | bool | `false` | Keep products Costco marks buyable for delivery. |
| `dealsOnly` | bool | `false` | Keep products with an active instant-savings/manufacturer promotion. |
| `memberOnly` | bool | `false` | Keep items marked membership-required. |
| `deliveryType` | string | `any` | `any`, `ships`, `sameDay`, `warehousePickup`, `warehouseOnly` or `onlineOnly`. |
| `includeImages` | bool | `true` | Fetch the full image gallery (the main image is always returned). |
| `maxReviewsPerProduct` | int | `20` | Reviews per product in `reviews` mode (1-200). |

Example: keyword search with filters.

```json
{
  "mode": "search",
  "searchQuery": "gaming monitor",
  "market": "us",
  "maxItems": 20,
  "sort": "priceAsc",
  "brand": "Acer",
  "minPrice": 100,
  "maxPrice": 400,
  "minRating": 3,
  "dealsOnly": true,
  "deliveryType": "ships"
}
```

Example: category browse in Canada.

```json
{
  "mode": "byCategory",
  "categoryUrls": ["https://www.costco.ca/gaming-monitors.html"],
  "market": "ca-en",
  "maxItems": 50
}
```

Example: exact product lookup with the gallery.

```json
{
  "mode": "byItemNumbers",
  "itemNumbers": ["100793682"],
  "market": "us",
  "maxItems": 1,
  "includeImages": true
}
```

### Output

One dataset item per product, or one item per review in `reviews` mode.

| Product field | Meaning |
|---|---|
| `productId` | Costco product id shared by variants. |
| `itemNumber`, `itemNumbers` | The item number and all variant item numbers. |
| `title`, `brand`, `modelNumber` | Product identity. |
| `productUrl`, `site`, `market`, `locale`, `currency` | Where the record came from. |
| `categoryId`, `department`, `categoryPath`, `categoryPathText` | Category context when Costco exposes it. |
| `listPrice`, `currentPrice`, `instantSavings` | Regular price, current delivered price and active savings. |
| `dealStartDate`, `dealEndDate`, `dealText`, `dealType`, `promotions` | Every active promotion with dates and limits. |
| `priceInCartOnly` | Costco hides this price behind the cart/sign-in for a logged-out visitor. |
| `memberOnly`, `onlineOnly`, `warehouseOnly` | Costco's purchase-channel flags. |
| `inStock`, `backorderable`, `deliveryTypes`, `programTypes` | Availability and fulfillment signals. |
| `maxOrderQuantity`, `minOrderQuantity`, `purchaseLimit`, `purchaseLimitText` | Quantity restrictions. |
| `rating`, `reviewCount` | Average rating and review count. |
| `features`, `description`, `specifications` | Marketing bullets, description and specification list. |
| `imageUrl`, `images` | Main image and gallery. |
| `variants` | Variant item numbers with prices and stock. |
| `releaseDate`, `lastModified`, `source`, `scrapedAt` | Dates and provenance. |

Review fields: `reviewId`, `rating`, `title`, `text`, `date`, `author`, `location`,
`verifiedPurchaser`, `recommended`, `helpfulVotes`, `totalFeedback`, `photos`, plus `productId`,
`itemNumber` and `productTitle`.

Example product row (illustrative values):

```json
{
  "recordType": "product",
  "productId": "100793682",
  "itemNumber": "100793682",
  "itemNumbers": ["1543786"],
  "title": "Keter Luzon Outdoor Storage Table",
  "brand": "Keter",
  "productUrl": "https://www.costco.com/.product.100793682.html",
  "market": "us",
  "currency": "USD",
  "categoryPathText": "Patio, Lawn & Garden > Patio & Outdoor Furniture > Deck Boxes & Outdoor Storage Boxes",
  "listPrice": 79.99,
  "currentPrice": 79.99,
  "rating": 4.59,
  "reviewCount": 169,
  "inStock": true,
  "deliveryTypes": ["ships", "warehousePickup"]
}
```

### How prices and deals work

- `listPrice` is Costco's online regular price.
- `currentPrice` is the current delivered/online price after instant savings.
- `instantSavings` is the aggregated discount Costco reports for the item.
- `dealStartDate` and `dealEndDate` come from Costco's promotion records, so schedules can react to
  the real end date instead of guessing from page text.
- `promotions` includes every active promotion: amount, dates, short and long text, type and
  per-member limit.
- In-warehouse and in-club prices are not published online and are not included. Items whose price
  is hidden until sign-in/cart are flagged with `priceInCartOnly`; the price may be absent.

### Data source and reliability

The actor reads Costco's public product-summary service, its asset gallery, its category tree, its
product sitemaps and Bazaarvoice's public product/review endpoints. None of these need a Costco
login, user cookies, an API key or a proxy. Costco's internal search service and product HTML are
protected by a bot challenge that rejects cloud datacenter traffic, so the actor uses Bazaarvoice
search and Costco's own sitemaps instead; the shipped fields are the ones those surfaces fill with
real data.

Runs retry transient 429/5xx responses with backoff and never fabricate a missing value. Empty
fields are omitted, not written as `null`. Every run writes a status message with the number of
records and the number of candidates scanned.

### Limits

- **Full catalog** covers the products in Costco's sitemap: about 17,900 US and 14,800 Canadian
  URLs. New items can appear in search before the sitemap is refreshed.
- **Search** is catalog search, not Costco's internal relevance search. US keyword search uses
  Bazaarvoice full-text search; Canadian keyword search matches product sitemap slugs, so very new
  items that are not in the sitemap yet may be missed.
- **Category browse** resolves Costco's public category tree. Some legacy Costco categories have no
  products under their current id; the actor infers the working category from a matching product
  search and keeps title-relevant results. A category may therefore return fewer or slightly
  broader rows than the live page.
- **Category paths** are returned when Costco's catalog exposes an ancestry path. Otherwise
  `categoryId` and `department` are still returned.
- **Price per unit** is not exposed by the product-summary data and is not estimated.
- **Filtered searches** scan up to 1,000 candidates before stopping; `maxItems` can be reached with
  fewer candidates. The status message tells you how many were scanned.
- **Reviews** are the approved Bazaarvoice reviews for the product, up to 200 per product. Some
  Canadian products have no Bazaarvoice reviews (the review count on the product row still reflects
  the catalog rating count).
- **Images** for full-catalog runs use Costco's main image; turn on `includeImages` in lookup,
  search and category modes for the complete gallery.

### FAQ

**Do I need a Costco membership?** No. The actor reads public product data.

**Can it show my local warehouse price?** No. Costco does not publish in-warehouse prices online;
the actor returns online/delivered prices and flags warehouse availability.

**Why is a price missing?** A few items hide the price until sign-in or cart. Those rows carry
`priceInCartOnly`; the actor does not guess a number.

**How do I get more than the first page?** Raise `maxItems`. Search and category modes page through
their candidate sets automatically; full-catalog mode walks the sitemap.

**Can I run this on a schedule?** Yes. Use a small prefill (one item number or a narrow keyword) for
daily checks and a larger `maxItems` for periodic catalog snapshots.

# Actor input Schema

## `mode` (type: `string`):

What to collect: keyword search, category browse, product URLs, item numbers, the full catalog, or reviews.

## `searchQuery` (type: `string`):

Keyword search, for example coffee, air fryer or Kirkland Signature.

## `categoryUrls` (type: `array`):

Costco category URLs (costco.com/gaming-monitors.html), category slugs (gaming-monitors) or category IDs. Mode: Browse categories.

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

Costco product URLs (/p/-/.../4000372303 or .product.100525739.html) or product IDs. Used by the product and reviews modes.

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

Costco item numbers or product IDs, for example 100793682 or 1543786.

## `market` (type: `string`):

Which Costco storefront and currency to use.

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

Stop after this many dataset records. The full catalog mode can sweep up to 20,000.

## `sort` (type: `string`):

Order of the returned products.

## `brand` (type: `string`):

Only products whose brand contains this text, for example Kirkland or Samsung.

## `minPrice` (type: `number`):

Only products whose current price is at least this amount, in the market currency.

## `maxPrice` (type: `number`):

Only products whose current price is at most this amount, in the market currency.

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

Only products rated at least this many stars (0 to 5). Leave at 0 for no rating filter.

## `inStockOnly` (type: `boolean`):

Only products Costco marks as buyable for delivery.

## `dealsOnly` (type: `boolean`):

Only products with an active instant-savings or manufacturer promotion.

## `memberOnly` (type: `boolean`):

Only items Costco marks as membership-required.

## `deliveryType` (type: `string`):

Filter by how Costco offers the item.

## `includeImages` (type: `boolean`):

Fetch every product image. Turn off for the fastest and cheapest runs; the main image is still returned.

## `maxReviewsPerProduct` (type: `integer`):

Maximum reviews to save for each product in the reviews mode.

## Actor input object example

```json
{
  "mode": "byItemNumbers",
  "searchQuery": "kirkland coffee",
  "categoryUrls": [],
  "productUrls": [],
  "itemNumbers": [
    "100793682"
  ],
  "market": "us",
  "maxItems": 1,
  "sort": "relevance",
  "brand": "",
  "minRating": 0,
  "inStockOnly": false,
  "dealsOnly": false,
  "memberOnly": false,
  "deliveryType": "any",
  "includeImages": false,
  "maxReviewsPerProduct": 20
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset containing product records (one per product) and, in the reviews mode, one record per review.

# 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 = {
    "mode": "byItemNumbers",
    "searchQuery": "kirkland coffee",
    "categoryUrls": [],
    "productUrls": [],
    "itemNumbers": [
        "100793682"
    ],
    "market": "us",
    "maxItems": 1,
    "sort": "relevance",
    "minRating": 0,
    "inStockOnly": false,
    "dealsOnly": false,
    "memberOnly": false,
    "deliveryType": "any",
    "includeImages": false,
    "maxReviewsPerProduct": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/costco-warehouse-catalog-member-deals").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 = {
    "mode": "byItemNumbers",
    "searchQuery": "kirkland coffee",
    "categoryUrls": [],
    "productUrls": [],
    "itemNumbers": ["100793682"],
    "market": "us",
    "maxItems": 1,
    "sort": "relevance",
    "minRating": 0,
    "inStockOnly": False,
    "dealsOnly": False,
    "memberOnly": False,
    "deliveryType": "any",
    "includeImages": False,
    "maxReviewsPerProduct": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/costco-warehouse-catalog-member-deals").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 '{
  "mode": "byItemNumbers",
  "searchQuery": "kirkland coffee",
  "categoryUrls": [],
  "productUrls": [],
  "itemNumbers": [
    "100793682"
  ],
  "market": "us",
  "maxItems": 1,
  "sort": "relevance",
  "minRating": 0,
  "inStockOnly": false,
  "dealsOnly": false,
  "memberOnly": false,
  "deliveryType": "any",
  "includeImages": false,
  "maxReviewsPerProduct": 20
}' |
apify call xyrelith-data/costco-warehouse-catalog-member-deals --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xyrelith-data/costco-warehouse-catalog-member-deals"
        }
    }
}
```

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/Klb4KFqbe8YrcuPFx/builds/w0rgn6Aycny5rlChZ/openapi.json
