# Costco Scraper — Products, Prices, Instant Savings & Specs (`logiover/costco-scraper`) Actor

Extract Costco.com wholesale product catalogs, Warehouse Item Numbers, online & delivered prices, Instant Savings promotions, brands, models, customer ratings, review counts, stock/delivery eligibility, images & specs. Built for retail intelligence & price monitoring.

- **URL**: https://apify.com/logiover/costco-scraper.md
- **Developed by:** [Logiover](https://apify.com/logiover) (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.40 / 1,000 results

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 Scraper — Products, Prices, Instant Savings & Specs

> **Disclaimer:** This Actor is an independent data extraction tool and is not affiliated with, endorsed by, or sponsored by Costco Wholesale Corporation or its parent company. All trademarks belong to their respective owners.

**Costco Scraper** (`logiover/costco-scraper`) is an enterprise-ready **Costco scraper** (`costco.com scraper`) engineered to extract structured wholesale product catalogs, official **Costco Warehouse Item Numbers** (`itemNumber`) and online catalog IDs (`productId`), current selling & delivered prices (`price`), regular comparison prices (`onlinePrice`), active **Instant Savings** and manufacturer markdowns (`instantSavings`, `promoSummary`, `promoDetails`), *Kirkland Signature* & national brand names, model numbers, AS400 department classifications, verified customer star ratings, review counts, 2-Day Grocery & In-Warehouse fulfillment eligibility, order limits, high-resolution Adobe Dynamic Media imagery, feature bullets, and structured key-value specifications directly from **Costco.com** (`costco.com`). Purpose-built as a fast, zero-maintenance **Costco API alternative**, it lets CPG brands, wholesale price intelligence teams, MAP compliance auditors, ecommerce analysts, and retail arbitrage operators **scrape costco.com without API key** approvals or slow headless browser rendering.

Whether you are tracking daily Instant Savings coupon cycles across 100 core SKUs at Costco's national fulfillment center (`warehouseNumber: "847"`) or sweeping **10,800+ unique deduplicated Costco products** across Major Appliances, Electronics, Grocery, Computers, Furniture, Health & Beauty, and Household Essentials, you can **export Costco to CSV, Excel, JSON**, JSONL, Parquet, or stream live structured wholesale records straight into Snowflake, BigQuery, Databricks, Google Sheets, n8n, Make, or Zapier. Fully **AI agent & MCP ready**, this Actor connects directly to Claude Desktop, Cursor, Windsurf, OpenAI Agents SDK, and LangGraph via the official Apify MCP Server with predictable Pay-Per-Event billing and strict per-run cost caps.

***

### At a Glance

| Capability | Specification |
| :--- | :--- |
| **Target Platform** | Costco Wholesale (`https://www.costco.com`) — Official GDX Product Summary v2 Batch JSON + Active Catalog Index |
| **Extraction Modes** | 1) Keyword Search (`searchQueries`) · 2) Department / Category Browse (`departments`) · 3) Direct Product URL / Product ID Lookup (`productUrls`) · 4) Full Wholesale Catalog Sweep (`expandCatalog: true`) |
| **Warehouse Localization** | Supports `"847"` (Costco.com National Fulfillment) or any physical US Costco Warehouse ID (e.g. `"1"`, `"144"`, `"1001"`) |
| **Dual Identifier Coverage** | Extracts both `productId` (Costco.com online ID) AND `itemNumber` (physical Costco Warehouse Item Number) at **`100%` fill** |
| **Primary Deduplication Key** | `id` / `productId` (**`0` duplicates verified across `10,800` rows**) |
| **Verified Platform Throughput** | **30 rich products in `6.4s`** (default QC run) · **`10,800` unique Costco products in `231.4s`** (high-volume scale run) |
| **Pricing Model** | Pay-Per-Event (`apify-default-dataset-item`) — **$2.20 / 1,000 results** (FREE) down to **$1.40 / 1,000 results** (GOLD / PLATINUM / DIAMOND) |
| **Budget Guard** | Native `Actor.getChargingManager()` guard — stops cleanly with `SUCCEEDED` status at your exact `Max cost per run` ceiling |
| **Export Formats** | JSON, JSONL, CSV, Excel (`.xlsx`), XML, RSS, and direct REST API / MCP tool streaming |

***

### Key Features & Extraction Modes

#### 1. Direct GDX Product Summary v2 Batch Architecture (`20` SKUs per JSON Call)

Instead of launching fragile Chromium instances that get tar-pitted on client-rendered category pages, **Costco Scraper** communicates directly with Costco's live GDX Product Summary v2 JSON microservice (`product-api/v2/products/summary`) paired with Costco's active catalog XML index and GRS query expansion:

- **Verified US Session Warmup & Hedged Index Loading:** Automatically warms up and pins clean US Datacenter sessions before dispatching catalog batches, rotating instantly if any session encounters regional geo-gating.
- **Self-Healing Credential Refresh:** Starts immediately with Costco's live GDX client identifiers and dynamically refreshes `clientId` and `client-identifier` headers from `costco.com` if Costco ever updates its frontend configuration.

#### 2. Complete Dual-ID Mapping: `itemNumber` + `productId` (`100%` Fill)

Costco uses two distinct identifiers across its retail ecosystem:

- **`itemNumber` (`100.0%` fill):** Costco's 6–7 digit physical **Warehouse Item Number** (`"1660437"`, `"2899021"`, `"1314569"`) printed on club shelf signs, Monthly Coupon Books, and receipts.
- **`productId` / `id` (`100.0%` fill):** Costco.com's online catalog entry identifier (`"100978861"`, `"4201037288"`) used in `.product.<productId>.html` URLs.

#### 3. Instant Savings, Promotional Dates & Member Purchase Limits

Costco's Monthly Instant Savings events drive massive CPG volume shifts. Every record captures:

- **Net vs. Regular Pricing:** Extracts `price` (net delivered/selling price after savings, e.g. `18.39`), `onlinePrice` (regular online price before savings, e.g. `22.89`), `instantSavings` (`4.50`), `discountPercent` (`20%`), and `hasInstantSavings` (`true`/`false`).
- **Coupon Terms & Validity Windows:** Captures `promoSummary` (`"$4.50 OFF"`, `"$10 OFF"`, `"Black Friday Deal"`) and full `promoDetails` (`"$4.50 manufacturer's savings is valid 11/16/26 through 12/20/26. While supplies last. Limit 5 per member."`), plus `maxOrderQty` and `minOrderQty`.
- **Member-Only Flagging:** Identifies `isMemberOnly` (`isMembershipReqd` or cart-gated member pricing) and `isFsaEligible` (FSA/HSA healthcare eligibility).

#### 4. Fulfillment Channels, Warehouse Localization & Structured Specifications

- **Channel Flags (`100.0%` fill):** Normalizes Costco `programTypes` into clean booleans: `onlineShippable` (`ShipIt` / `Standard`), `twoDayDelivery` (`2DayDelivery` Costco Grocery), and `inWarehouse` (`InWarehouse` physical club availability).
- **AS400 Department & Category Codes:** Captures internal Costco merchandising classifications (`department: "FOOD"`, `"SMALL APPLIANCES"`, `"MAJOR APPLIANCES"`, `"COMPUTERS"`, plus `categoryCode`).
- **Clean Specifications & Unmasked Manufacturer Contacts:** Parses `productAttributes` into a clean key-value `specifications` object (`Brand`, `Model`, `Roast`, `Form`, `Dietary Features`, `Dimensions`, `Warranty`), splits `features` into clean bullet arrays, and decodes `description` HTML while preserving public manufacturer customer-support phone numbers unmasked.

***

### 12 High-ROI Wholesale, CPG, Retail & AI Use Cases

1. **Monthly Instant Savings & Coupon Book Tracking:** Monitor `hasInstantSavings`, `instantSavings`, `promoSummary`, and `promoDetails` (`instantSavingsOnly: true`) across national brands and competitors during Costco's monthly promotional cycles.
2. **Kirkland Signature Private-Label Benchmarking:** Compare per-unit pricing, `rating`, and `reviewCount` between *Kirkland Signature* SKUs (`searchQueries: ["kirkland signature"]`) and competing national CPG brands across Coffee, Vitamins, Pet Food, Olive Oil, Paper Goods, and Apparel.
3. **CPG Vendor Digital Shelf & Review Monitoring:** Track daily movements in `rating`, `reviewCount`, `isBuyable`, `features`, and `specifications` across your brand's authorized Costco SKU portfolio (`productUrls`).
4. **MAP (Minimum Advertised Price) & Wholesale Price Auditing:** Detect when electronics, appliances, or home goods drop below authorized MAP thresholds via Instant Savings or regional `warehouseNumber` markdowns.
5. **Cross-Club & Cross-Retailer Assortment Comparison (Costco vs. Sam's Club / Target / BJ's):** Match Costco `itemNumber`, `brand`, and `model` identifiers against Sam's Club, Walmart, Amazon, and Target catalogs to measure bulk pack-size value spreads.
6. **Costco 2-Day Grocery & Cold-Chain Assortment Analysis (`twoDayDeliveryOnly: true`):** Audit dry grocery and household consumables eligible for Costco 2-Day Delivery vs. In-Warehouse stocked items (`inWarehouse`).
7. **Wholesale-to-Marketplace Arbitrage Sourcing:** Filter active discounted inventory (`instantSavingsOnly: true`, `buyableOnly: true`) with high customer ratings (`ratingMin: 4`) and generous `maxOrderQty` limits.
8. **Appliance & Consumer Electronics Spec Intelligence:** Extract structured dimensions, capacities, energy ratings, screen sizes, processor models, and warranty terms inside `specifications` across `MAJOR APPLIANCES` and `COMPUTERS`.
9. **FSA / HSA Healthcare Catalog Mapping:** Identify `isFsaEligible: true` optical, pharmacy, OTC health, and personal-care products sold on Costco.com.
10. **AI Shopping & Procurement Agents (MCP):** Connect Claude Desktop, Cursor, or custom procurement agents to `logiover/costco-scraper` via Apify MCP so agents can compare bulk wholesale pricing, active Instant Savings, and product specs in real time.
11. **Macro Consumer Staples & Bulk Inflation Indexing:** Track longitudinal price changes across standardized wholesale bulk packs (43.5 oz coffee canisters, 80-count K-Cups, laundry detergent, appliances) using `expandCatalog: true`.
12. **PIM Enrichment & Merchandising Audits:** Populate enterprise Product Information Management (`PIM`) databases with clean `title`, `brand`, `model`, `imageUrl`, `features`, and normalized `specifications`.

***

### Copy-Paste JSON Input Recipes

#### Recipe 1: Fast Coffee & Kitchen Appliances Check (Default Prefill — 30 Items in `6.4s`)

```json
{
  "searchQueries": [
    "coffee",
    "air fryer"
  ],
  "warehouseNumber": "847",
  "instantSavingsOnly": false,
  "buyableOnly": true,
  "twoDayDeliveryOnly": false,
  "expandCatalog": false,
  "maxResults": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 2: Active Instant Savings & Coupon Deal Hunter (`instantSavingsOnly: true`)

```json
{
  "searchQueries": [
    "kirkland signature",
    "coffee",
    "vacuum",
    "laptop",
    "vitamins"
  ],
  "warehouseNumber": "847",
  "instantSavingsOnly": true,
  "buyableOnly": true,
  "maxResults": 250,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 3: `10,800`+ Product Full Wholesale Catalog Sweep (Verified Benchmark Input)

```json
{
  "searchQueries": [
    "coffee",
    "kirkland signature",
    "laptop",
    "television",
    "air fryer"
  ],
  "warehouseNumber": "847",
  "buyableOnly": true,
  "expandCatalog": true,
  "maxResults": 10800,
  "concurrency": 16,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 4: Direct Costco Product URLs / Product IDs Monitoring (`productUrls`)

```json
{
  "productUrls": [
    "https://www.costco.com/Folgers-Classic-Roast-Ground-Coffee,-Medium,-43.5-oz.product.100978861.html",
    "4201037288",
    "100487757"
  ],
  "searchQueries": [],
  "warehouseNumber": "847",
  "buyableOnly": false,
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 5: Kirkland Signature Private-Label Assortment Audit

```json
{
  "searchQueries": [
    "kirkland signature"
  ],
  "warehouseNumber": "847",
  "buyableOnly": true,
  "maxResults": 600,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 6: Costco 2-Day Grocery Delivery Basket (`twoDayDeliveryOnly: true`)

```json
{
  "searchQueries": [
    "olive oil",
    "protein",
    "coffee",
    "snacks",
    "sparkling water"
  ],
  "warehouseNumber": "847",
  "buyableOnly": true,
  "twoDayDeliveryOnly": true,
  "maxResults": 300,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 7: Laptops, Monitors & OLED TVs Electronics Audit

```json
{
  "departments": [
    "https://www.costco.com/laptops.html",
    "monitors",
    "televisions"
  ],
  "searchQueries": [
    "macbook",
    "gaming laptop",
    "oled tv"
  ],
  "warehouseNumber": "847",
  "priceMin": 300,
  "ratingMin": 4,
  "buyableOnly": true,
  "maxResults": 400,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 8: Regional Warehouse Pricing & Promo Comparison (`warehouseNumber: "1"`)

```json
{
  "searchQueries": [
    "refrigerator",
    "washer dryer",
    "dishwasher"
  ],
  "warehouseNumber": "1",
  "buyableOnly": true,
  "maxResults": 150,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

***

### Full Input Reference

| Parameter | Type | Default / Prefill | Description |
| :--- | :--- | :--- | :--- |
| `searchQueries` | `array<string>` | `["coffee", "air fryer"]` | Keywords, brands, or product terms matched against Costco's active catalog index + GRS query suggestions. Set `[]` when using only `departments`, `productUrls`, or `expandCatalog`. |
| `departments` | `array<string>` | `[]` | Department keywords (`"appliances"`, `"furniture"`, `"laptops"`) or Costco category URLs (`"https://www.costco.com/laptops.html"`). |
| `productUrls` | `array<string>` | `[]` | Direct Costco product URLs (`"https://www.costco.com/...product.100978861.html"`) or numeric Costco Product IDs (`"100978861"`, `"4201037288"`). |
| `warehouseNumber` | `string` | `"847"` | Costco warehouse code for localized pricing & promotions (`"847"` = Costco.com National Fulfillment, `"1"` = Seattle #1, `"144"`, `"1001"`, etc.). |
| `priceMin` | `integer` | — | Optional minimum selling `price` filter in USD. |
| `priceMax` | `integer` | — | Optional maximum selling `price` filter in USD. |
| `ratingMin` | `integer` | — | Optional minimum customer star `rating` filter (`0` to `5`). |
| `instantSavingsOnly` | `boolean` | `false` | Return only items with active Instant Savings / markdowns (`hasInstantSavings === true`). |
| `buyableOnly` | `boolean` | `true` | Keep only currently published, buyable Costco SKUs (`isBuyable === true`). |
| `twoDayDeliveryOnly` | `boolean` | `false` | Keep only items eligible for Costco `2DayDelivery`. |
| `expandCatalog` | `boolean` | `false` | Sweeps Costco's entire live 25,000+ product catalog in 20-SKU GDX batches to extract 10,000–25,000+ unique products in a single run. |
| `maxResults` | `integer` | `200` (`30` prefill) | Maximum unique Costco products (deduplicated by `productId`) to extract (`1` to `100,000`). Enforced synchronously before batch push. |
| `concurrency` | `integer` | `12` | Parallel GDX batch worker count (`1` to `25`). |
| `proxyConfiguration` | `object` | `{ "useApifyProxy": true }` | Apify Proxy configuration (automatically warms up and pins verified US Datacenter Proxy sessions). |

***

### Complete Data Dictionary & Real Measured Fill Rates

Measured directly across **`10,800` unique Costco products** on live Apify platform run `BO20CBtOVwCwGaM23` (and 30-row prefill run `Hf9z40lOTlC8D0biz`) on **2026-11-18**:

| Field | Type | Measured Fill Rate | Description & Example |
| :--- | :--- | :--- | :--- |
| `id` | `string` | **100.0%** | Primary deduplication key matching `productId` (`"100978861"`). |
| `productId` | `string` | **100.0%** | Official Costco.com online catalog ID (`"100978861"`). |
| `itemNumber` | `string` | **100.0%** | Official Costco Warehouse Item Number (`"1660437"`). |
| `url` | `string` | **100.0%** | Canonical Costco.com PDP URL (`"https://www.costco.com/...product.100978861.html"`). |
| `title` | `string` | **100.0%** | Clean HTML-decoded product title (`"Folgers Classic Roast Ground Coffee, Medium, 43.5 oz"`). |
| `brand` | `string` | **100.0%** | Brand name (`"Folgers"`, `"Kirkland Signature"`, `"Peet's Coffee"`). |
| `model` | `string` | **100.0%** | Manufacturer model number or SKU identifier (`"Major Dickason's Blend"`, `"1660437"`). |
| `department` | `string` | **100.0%** | Costco AS400 department name (`"FOOD"`, `"SMALL APPLIANCES"`, `"MAJOR APPLIANCES"`). |
| `categoryCode` | `string` | **100.0%** | Costco AS400 category code (`"AAA"`, `"EKE"`, `"HAB"`). |
| `price` | `number \| null` | **99.4%** | Current net selling / delivered price in USD (`18.39`; `null` only on strict sign-in-only member items). |
| `onlinePrice` | `number \| null` | **99.4%** | Regular online comparison price before Instant Savings (`22.89`). |
| `formattedPrice` | `string` | **100.0%** | Display price string (`"$18.39"` or `"Member-Only Price"`). |
| `currency` | `string` | **100.0%** | ISO 4217 currency code (`"USD"`). |
| `hasInstantSavings` | `boolean` | **100.0%** | `true` when an active Instant Savings discount applies. |
| `instantSavings` | `number` | **100.0%** | Dollar savings off `onlinePrice` (`4.5`, `10`, or `0`). |
| `discountPercent` | `number` | **100.0%** | Percentage savings off `onlinePrice` (`20`, or `0`). |
| `promoSummary` | `string` | **100.0%** | Promotional headline (`"$4.50 OFF"`, `"$10 OFF"`, `"Everyday Wholesale Value"`). |
| `promoDetails` | `string` | **100.0%** | Promotional validity window, member redemption limit, and terms. |
| `rating` | `number \| null` | **90.9%** | Average verified customer star rating (`4.71`; `null` on unreviewed items). |
| `reviewCount` | `number` | **100.0%** | Total verified customer review count (`1154`, or `0`). |
| `isBuyable` | `boolean` | **100.0%** | Whether the product is published and actively purchasable. |
| `isMemberOnly` | `boolean` | **100.0%** | Whether Costco membership sign-in is required to purchase or view price. |
| `isFsaEligible` | `boolean` | **100.0%** | Whether the product qualifies for FSA / HSA spending. |
| `onlineShippable` | `boolean` | **100.0%** | Whether standard parcel or LTL online delivery is enabled. |
| `twoDayDelivery` | `boolean` | **100.0%** | Whether Costco 2-Day Grocery Delivery is available. |
| `inWarehouse` | `boolean` | **100.0%** | Whether the SKU carries the `InWarehouse` physical club indicator. |
| `programTypes` | `array<string>` | **100.0%** | Raw Costco fulfillment flags (`["2DayDelivery", "InWarehouse", "ShipIt"]`). |
| `maxOrderQty` | `number` | **100.0%** | Maximum allowed order quantity (`9999`, `5`, `2`). |
| `minOrderQty` | `number` | **100.0%** | Minimum required order quantity (`1`). |
| `warehouseNumber` | `string` | **100.0%** | Costco warehouse queried (`"847"`). |
| `imageUrl` | `string` | **100.0%** | High-resolution primary product image URL (`gdx-assets.costco.com` / `images.costco-static.com`). |
| `features` | `array<string>` | **100.0%** | Clean product highlight & feature bullets. |
| `specifications` | `object` | **100.0%** | Structured key-value product specifications (`Brand`, `Model`, `Roast`, `Dimensions`, `Weight`). |
| `description` | `string` | **100.0%** | Clean HTML-decoded product description (preserving public manufacturer support phone numbers unmasked). |
| `startDate` | `string \| null` | **100.0%** | Costco catalog introduction date (`"2022-05-30"`). |
| `searchQuery` | `string` | **100.0%** | Originating keyword, `department:<name>`, `product:<id>`, or `catalog:wholesale`. |
| `scrapedAt` | `string` | **100.0%** | ISO 8601 UTC extraction timestamp. |

***

### Real Unmasked JSON Output Sample (Live Platform Run `Hf9z40lOTlC8D0biz`)

Below is an exact, unedited Costco product record extracted live on Apify on **2026-11-18**:

```json
{
  "id": "100978861",
  "productId": "100978861",
  "itemNumber": "1660437",
  "url": "https://www.costco.com/Folgers-Classic-Roast-Ground-Coffee,-Medium,-43.5-oz.product.100978861.html",
  "title": "Folgers Classic Roast Ground Coffee, Medium, 43.5 oz",
  "brand": "Folgers",
  "model": "1660437",
  "department": "FOOD",
  "categoryCode": "AAA",
  "price": 18.39,
  "onlinePrice": 22.89,
  "formattedPrice": "$18.39",
  "currency": "USD",
  "hasInstantSavings": true,
  "instantSavings": 4.5,
  "discountPercent": 20,
  "promoSummary": "$4.50 OFF",
  "promoDetails": "$4.50 manufacturer's savings is valid 11/16/26 through 12/20/26. While supplies last. Limit 5 per member. Terms & Conditions",
  "rating": 4.71,
  "reviewCount": 1154,
  "isBuyable": true,
  "isMemberOnly": false,
  "isFsaEligible": false,
  "onlineShippable": true,
  "twoDayDelivery": true,
  "inWarehouse": true,
  "programTypes": [
    "3rdPartyDelivery",
    "2DayDelivery",
    "GoogleGrocery",
    "LocationControlledInventory",
    "InWarehouse",
    "WarehouseDelivery",
    "ShipIt"
  ],
  "maxOrderQty": 9999,
  "minOrderQty": 1,
  "warehouseNumber": "847",
  "imageUrl": "https://gdx-assets.costco.com/adobe/assets/urn:aaid:aem:c4677644-3eea-44e8-8e0c-1c58499a126b/as/1660437-847__1.avif",
  "features": [
    "100% pure coffee",
    "Classic, medium roast",
    "Makes up to 400 6 fl oz cups",
    "Kosher",
    "43.5 oz canister"
  ],
  "specifications": {
    "Caffeine Type": "Caffeinated",
    "Quantity": "1 Can(s)",
    "Brand": "Folgers"
  },
  "description": "Ground Coffee \nClassic, medium roast \nMakes up to 400 6 fl oz cups \nKosher \n43.5 oz canister",
  "startDate": "2022-05-30",
  "searchQuery": "coffee",
  "scrapedAt": "2026-11-18T13:42:46.790Z"
}
```

***

### Measured Performance & Scale Proof (Verified `2026-11-18`)

All benchmarks below were executed live on the Apify cloud platform (`1024 MB` container) on **2026-11-18**:

| Benchmark Scenario | Apify Run ID | Configuration | Unique Rows | Duplicates | Empty Columns | Duration | Peak RAM | Status |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| **Default Prefill QC Run** | `Hf9z40lOTlC8D0biz` | `["coffee", "air fryer"]`, `warehouseNumber: "847"` | **30** | **0** | **0** | **6.4s** | 113 MB | `SUCCEEDED` |
| **Wholesale Catalog Scale Proof** | `BO20CBtOVwCwGaM23` | `expandCatalog: true`, 20-SKU GDX Product Summary batches | **`10,800`** | **0** | **0** | **`231.4s`** | `168` MB | `SUCCEEDED` |
| **PPE Max-Cost Budget Proof** | `lmgmXpBzA0JKgUBY1` | Pay-Per-Event `$0.05` Hard Ceiling Test | **`25`** | **0** | **0** | **`4.5s`** | `97` MB | `SUCCEEDED` |

***

### Pricing — What You Pay (Pay-Per-Event)

**Costco Scraper** uses transparent **Pay-Per-Event (PPE)** billing (`apify-default-dataset-item`). You pay strictly per unique deduplicated Costco product delivered to your dataset—with **no monthly subscription fees**, no residential proxy surcharges required, and automatic volume discounts across Apify Store plan tiers:

| Apify Plan Tier | Price per Result | Price per 1,000 Results | 10,000 Products |
| :--- | :--- | :--- | :--- |
| **FREE** | `$0.002200` | **$2.20 / 1k** | `$22.00` |
| **BRONZE** | `$0.001933` | **$1.93 / 1k** | `$19.33` |
| **SILVER** | `$0.001667` | **$1.67 / 1k** | `$16.67` |
| **GOLD** | `$0.001400` | **$1.40 / 1k** | `$14.00` |
| **PLATINUM** | `$0.001400` | **$1.40 / 1k** | `$14.00` |
| **DIAMOND** | `$0.001400` | **$1.40 / 1k** | `$14.00` |

#### Controlling Spend with "Maximum Cost Per Run"

You have deterministic spend control on every run:

1. Set **Maximum cost per run** in Apify Console (**Run Options**) or pass `?maxTotalChargeUsd=2.50` via the API.
2. Before pushing each batch of products, our runtime charging guard queries `calculateMaxEventChargeCountWithinLimit` to slice the exact affordable count.
3. Once your dollar cap is reached, the Actor records a `STOPPED_AT_BUDGET` summary in the Key-Value Store (`SUMMARY`) and exits cleanly with `SUCCEEDED` status—never leaving your workflow with an `ABORTED` status.

***

### AI Agent & Official Apify MCP Server Integration

**Costco Scraper** is **AI agent & MCP ready**. Connect Claude Desktop, Cursor, Windsurf, OpenAI Agents SDK, or LangGraph agents directly to live Costco wholesale catalog, Instant Savings, and specification data via the official Apify MCP Server:

- **MCP Endpoint:** `https://mcp.apify.com?tools=logiover/costco-scraper`

#### Claude Desktop / Cursor `mcp.json` Configuration

```json
{
  "mcpServers": {
    "costco-scraper": {
      "url": "https://mcp.apify.com?tools=logiover/costco-scraper",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

Example natural-language prompt for your MCP-connected AI agent:

> *"Use `logiover/costco-scraper` to find all coffee and espresso products currently on Instant Savings (`instantSavingsOnly: true`) on Costco.com, and rank them by dollar savings and customer rating."*

***

### Code & Automation Integrations

#### Node.js (`apify-client`)

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

const client = new ApifyClient({ token: process.env.APIFY_API_TOKEN });

const run = await client.actor('logiover/costco-scraper').call(
    {
        searchQueries: ['kirkland signature', 'coffee', 'espresso'],
        warehouseNumber: '847',
        instantSavingsOnly: true,
        buyableOnly: true,
        maxResults: 100,
    },
    { maxTotalChargeUsd: 0.5 },
);

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Extracted ${items.length} discounted Costco products:`, items[0]);
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_API_TOKEN"])

run = client.actor("logiover/costco-scraper").call(
    run_input={
        "searchQueries": ["laptop", "oled tv", "monitor"],
        "warehouseNumber": "847",
        "ratingMin": 4,
        "buyableOnly": True,
        "maxResults": 250,
    },
    max_total_charge_usd=1.00,
)

items = client.dataset(run["defaultDatasetId"]).list_items().items
for prod in items[:5]:
    print(prod["itemNumber"], "|", prod["formattedPrice"], "| save:", prod["instantSavings"], "|", prod["title"])
```

#### cURL (Synchronous Dataset JSON Output)

```bash
curl -X POST "https://api.apify.com/v2/acts/logiover~costco-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN&maxTotalChargeUsd=0.25" \
  -H "Content-Type: application/json" \
  -d '{
    "searchQueries": ["air fryer"],
    "warehouseNumber": "847",
    "buyableOnly": true,
    "maxResults": 30
  }'
```

#### n8n / Make / Zapier / Google Sheets Workflows

- **Coupon & MAP Alerts (n8n / Make / Slack):** Schedule `logiover/costco-scraper` daily with your brand's `productUrls` or `searchQueries`, compare `price` and `instantSavings` against your MAP floor, and alert Slack or Microsoft Teams whenever a new Instant Savings promotion launches.
- **Google Sheets / Excel:** Download any dataset directly as `.xlsx` or `.csv` from the Apify Console Dataset tab, or sync live wholesale rows into Google Sheets using the official Apify integration.

***

### Troubleshooting & Best Practices

- **Full Catalog Sweeps (`expandCatalog: true`):** Enable `"expandCatalog": true` when you want to sweep 10,000–25,000+ unique Costco products across all departments in 20-SKU GDX batches. Keep `"expandCatalog": false` (default) for targeted keyword, department, or `productUrls` lookups.
- **Warehouse Number (`warehouseNumber`):** `"847"` is Costco.com's primary national US e-commerce fulfillment warehouse. You can pass any physical US Costco club number (e.g. `"1"`, `"144"`, `"471"`, `"1001"`) to inspect regional pricing and warehouse-specific promotions.
- **Member-Only Items (`isMemberOnly`):** A small percentage of luxury or contract SKUs on Costco.com hide their dollar figure behind signed-in membership verification (`dispPriceInCartOnly: 1`). On those items, `isMemberOnly` is `true`, `formattedPrice` is `"Member-Only Price"`, and `price` is `null` rather than a misleading zero.
- **Support & Issue Reporting:** Need an extra Costco GDX field or spotted an edge case? Open a ticket on the [Actor Issues tab](https://apify.com/logiover/costco-scraper/issues) or share feedback on the [Reviews tab](https://apify.com/logiover/costco-scraper/reviews).

***

### Frequently Asked Questions (FAQ)

#### Do I need a Costco membership login or developer API key to use this Actor?

No. **Costco Scraper** queries Costco's public GDX Product Summary v2 and catalog endpoints without requiring login credentials or partner API keys, and includes automatic dynamic header refresh from `costco.com`.

#### What is the difference between `itemNumber` and `productId` on Costco.com?

`itemNumber` (e.g. `"1660437"`) is Costco's 6–7 digit physical Warehouse Item Number used on club signage, receipts, and Monthly Coupon Books. `productId` (e.g. `"100978861"`) is Costco.com's online catalog product identifier used in `.product.<productId>.html` URLs. Both are extracted at `100%` fill.

#### How does Costco Instant Savings extraction work?

The Actor reads `onlinePrice`, `deliveredPrice`, `aggregatedDiscountAmt`, and `discounts[].promotions` from Costco's GDX Product Summary v2 response, outputting `price` (net price after savings), `onlinePrice` (pre-discount price), `instantSavings` (dollar discount), `discountPercent`, `promoSummary` (e.g. `"$4.50 OFF"`), and `promoDetails` (exact start/end dates and member limits).

#### Can I filter strictly for products currently on Instant Savings?

Yes. Set `"instantSavingsOnly": true`. Non-discounted items are filtered out before `maxResults` reservation so you only pay for discounted Instant Savings items.

#### How many unique Costco products can I extract in a single run?

Over `20,000+` unique deduplicated products across Costco's active US catalog (`maxResults` supports up to `100,000`). In our verified live benchmark (`BO20CBtOVwCwGaM23` on `2026-11-18`), the Actor extracted **`10,800` unique Costco products** in **`231.4` seconds** with **`0` duplicates**.

#### Do I need expensive Residential or Unblocker proxies for Costco.com?

No. Costco geo-gates non-US IPs, so **Costco Scraper** automatically warms up and pins verified US Datacenter Proxy sessions (`{ "useApifyProxy": true }`), delivering fast HTTP 200 JSON batch responses with zero residential proxy surcharges.

#### Can I scrape specific Costco product URLs or Product IDs directly?

Yes. Pass full `.product.<id>.html` URLs or raw numeric Product IDs (`"100978861"`, `"4201037288"`) inside `productUrls` (and set `"searchQueries": []`). Set `"buyableOnly": false` if you also want to inspect discontinued or out-of-season SKUs.

#### How does `warehouseNumber` affect prices and promotions?

Warehouse `"847"` represents Costco.com's national US online fulfillment catalog. Passing a specific physical club number (such as `"1"` for Seattle or `"1001"`) queries GDX pricing and promotional blocks scoped to that warehouse code.

#### Can I filter for Costco 2-Day Grocery Delivery items?

Yes. Set `"twoDayDeliveryOnly": true` to restrict results to items carrying Costco's `2DayDelivery` fulfillment flag, and inspect `inWarehouse` and `onlineShippable` on every record.

#### Why is `price` `null` on a small fraction of Costco items?

Select manufacturer-restricted items on Costco.com enforce `"Member-Only Item"` sign-in pricing (`dispPriceInCartOnly === 1`). Rather than outputting a false `0`, the Actor sets `price: null`, `isMemberOnly: true`, and `formattedPrice: "Member-Only Price"`.

#### Why is `rating` `null` on some products?

Newly introduced seasonal items (`reviewCount: 0`) have no verified customer ratings yet, so `rating` is `null` rather than an artificial `0`.

#### Are HTML tags and CDATA blocks stripped from Costco descriptions and features?

Yes. Raw Costco CDATA/HTML fragments, comments, and entities are cleaned into structured `features` arrays, key-value `specifications` objects, and readable plain-text `description` copy—while keeping any public manufacturer support phone numbers unmasked.

#### How does deduplication work across overlapping keywords and `expandCatalog`?

Every `productId` is tracked in an in-memory `Set` (`seenIds`) and reserved synchronously prior to `Actor.pushData()`, guaranteeing **0 duplicate products** across multi-keyword and full-catalog runs.

#### How much does it cost to scrape 1,000 or 10,000 Costco products?

Under Pay-Per-Event billing, 1,000 unique Costco products cost **$2.20** on the Apify FREE tier, **$1.93** on BRONZE, **$1.67** on SILVER, and **$1.40** on GOLD, PLATINUM, and DIAMOND tiers.

#### What happens when my run hits "Maximum cost per run"?

Our built-in charging guard checks remaining affordable events before each push, slices the final batch to fit your dollar ceiling, writes a `STOPPED_AT_BUDGET` record to `SUMMARY`, and finishes cleanly with `SUCCEEDED` status (verified live in run `lmgmXpBzA0JKgUBY1` at `$0.05`).

#### Can I scrape *Kirkland Signature* products specifically?

Yes. Pass `"searchQueries": ["kirkland signature"]` (or filter the dataset on `brand === "Kirkland Signature"`) to extract hundreds of Costco private-label SKUs across every department.

#### Can I export Costco data directly to Excel or CSV without coding?

Yes. Open the **Storage -> Dataset** tab of any finished run in Apify Console and click **Export** to download **Excel (`.xlsx`)**, **CSV**, **JSON**, **JSONL**, or **XML**.

#### Is this Actor compatible with the Apify MCP Server for AI agents?

Yes. Configure your MCP client with `https://mcp.apify.com?tools=logiover/costco-scraper` to give Claude, Cursor, or custom AI agents live access to Costco wholesale products, Instant Savings, and specifications.

# Changelog

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

# Actor input Schema

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

Keywords, brands, or product types to search on Costco.com (e.g. 'coffee', 'kirkland signature', 'laptop', 'air fryer', 'television').

## `departments` (type: `array`):

Optional Costco department terms or category URLs (e.g. 'appliances', 'electronics', 'furniture', 'grocery', 'https://www.costco.com/laptops.html').

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

Optional direct Costco product URLs ('https://www.costco.com/...product.4000295946.html') or numeric Costco Product IDs ('4000295946', '100535468').

## `warehouseNumber` (type: `string`):

Costco warehouse code used for localized pricing and Instant Savings ('847' for Costco.com National Fulfillment, or any physical warehouse ID such as '1', '144', '1001').

## `priceMin` (type: `integer`):

Optional minimum current selling price filter in USD.

## `priceMax` (type: `integer`):

Optional maximum current selling price filter in USD.

## `ratingMin` (type: `integer`):

Optional minimum average customer star rating filter (1 to 5).

## `instantSavingsOnly` (type: `boolean`):

Return only products currently carrying active Costco Instant Savings or manufacturer markdown promotions.

## `buyableOnly` (type: `boolean`):

Return only currently published, buyable Costco SKUs (excludes discontinued legacy catalog records).

## `twoDayDeliveryOnly` (type: `boolean`):

Return only Costco Grocery / household items eligible for 2-Day Delivery.

## `expandCatalog` (type: `boolean`):

Sweep Costco's entire live online product catalog across all departments in 20-SKU GDX Product Summary batches to extract 10,000–25,000+ unique deduplicated products.

## `maxResults` (type: `integer`):

Maximum number of unique Costco products (deduplicated by productId) to extract.

## `concurrency` (type: `integer`):

Number of parallel Costco GDX API batch workers.

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

Proxy settings for requests.

## Actor input object example

```json
{
  "searchQueries": [
    "coffee",
    "air fryer"
  ],
  "warehouseNumber": "847",
  "instantSavingsOnly": false,
  "buyableOnly": true,
  "twoDayDeliveryOnly": false,
  "expandCatalog": false,
  "maxResults": 30,
  "concurrency": 12,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "searchQueries": [
        "coffee",
        "air fryer"
    ],
    "warehouseNumber": "847",
    "instantSavingsOnly": false,
    "buyableOnly": true,
    "twoDayDeliveryOnly": false,
    "expandCatalog": false,
    "maxResults": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/costco-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": [
        "coffee",
        "air fryer",
    ],
    "warehouseNumber": "847",
    "instantSavingsOnly": False,
    "buyableOnly": True,
    "twoDayDeliveryOnly": False,
    "expandCatalog": False,
    "maxResults": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("logiover/costco-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": [
    "coffee",
    "air fryer"
  ],
  "warehouseNumber": "847",
  "instantSavingsOnly": false,
  "buyableOnly": true,
  "twoDayDeliveryOnly": false,
  "expandCatalog": false,
  "maxResults": 30
}' |
apify call logiover/costco-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,logiover/costco-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/PAbhCzx7RbZQaIsbG/builds/hj6oOd0EcsCUQ0Pi5/openapi.json
