# Costco Scraper: Prices, Savings, Stock & Product Details (`memo23/costco-scraper`) Actor

Scrape Costco products by search term, category, item number or link: price after instant savings, regular price, savings dates, member-only items, ratings, stock, delivery and full specs with variants. US and Canada, plus search in the UK, Japan, Australia, Korea and Taiwan.

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

## Pricing

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

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: Prices, Savings, Stock & Product Details

<p align="center"><img src="https://api.apify.com/v2/key-value-stores/lpUzDyhdPUeXJ23qe/records/logo" alt="Costco Scraper" width="140"></p>

**Costco's catalogue as clean rows, with the price members actually pay.** Search terms, category pages, item numbers or links from costco.com and costco.ca, plus search and product pages from Costco in the UK, Japan, Australia, South Korea and Taiwan.

Every product comes with the price after instant savings and, kept apart, the regular price, the saving and the date it ends, member-only and price-in-cart flags, rating and review count, stock, delivery options, badges and categories. Turn on full details for the description, feature bullets, specifications, every image and every variant (size, colour) with its own price.

### Why Use This Scraper?

- **The real price, explained.** Price after instant savings, regular price, the saving, Costco's savings text and its end date, in separate fields.
- **Seven countries.** United States and Canada in full; search and product pages in the UK, Japan, Australia, South Korea and Taiwan.
- **Every way in.** Search terms, category pages, item numbers, or links copied from the site.
- **Costco's own sorting and filters.** Price, rating, newest; one brand; hide unavailable items (US and Canada).
- **Clean results.** Sponsored rows, duplicates and the unrelated filler Costco shows for a search with no match are left out.
- **Specs and variants when you need them.** Full details add specifications as name/value pairs and every variant with its own price and stock, as a separate option.
- **Fast pages.** Up to 96 products per page in the US and Canada.

### Overview

This actor is for retailers and brands watching Costco's prices and assortment, deal sites and price trackers, resellers and arbitrage sellers, analysts following Kirkland Signature and private-label pricing, and market researchers comparing Costco across countries.

You give it searches, categories, item numbers or links. It returns one flat row per product, in Costco's order, with your input and the product's position on it. Several inputs run in one go; a product found twice is delivered once.

The dataset exports as JSON, CSV, Excel or through the API. A `RUN_SUMMARY` record in the run's key-value store lists what each input delivered and how many products Costco counted for it.

### Supported Inputs

| What you give | What you get |
|---|---|
| Search terms, e.g. `olive oil`, `kirkland coffee`, `65 inch tv` | Matching products, Costco's order or your sort |
| Category names, e.g. `mattresses`, `televisions`, `kirkland-signature-groceries` (US, Canada) | Every product on that category page |
| Item or product numbers, e.g. `1789247` | That product with full details |
| A product link, e.g. `https://www.costco.com/p/-/samsung-65-class-tv/4201040398` | That product with full details |
| A category link, e.g. `https://www.costco.com/mattresses.html` | That category |
| A search link, e.g. `https://www.costco.com/s?keyword=olive%20oil` | That search |
| Links from costco.co.uk, .co.jp, .com.au, .co.kr, .com.tw | Product and search pages in that store |

**Not supported:** warehouse-only stock levels by location, reviews text, and category pages outside the US and Canada (use a search term there).

### Use Cases

- **Price monitoring:** schedule daily runs of a category and follow price changes, savings and when they end.
- **Deal tracking:** collect every product with an instant saving, with the saving amount and end date.
- **Assortment research:** map a category's brands, price ranges, ratings and member-only items.
- **Kirkland Signature analysis:** compare private-label prices against brand-name products.
- **Cross-country comparison:** search the same products in the US, Canada, UK, Japan, Australia, Korea and Taiwan.
- **Product data:** pull specifications, features and variants for catalogue enrichment.

### How It Works

![How it works](https://api.apify.com/v2/key-value-stores/lpUzDyhdPUeXJ23qe/records/how-it-works)

1. **Give it inputs:** search terms, categories, item numbers or links, and pick the store.
2. **Each search or category is read page by page,** up to 96 products at a time, up to your limit.
3. **Rows are cleaned:** sponsored rows, filler and duplicates are left out.
4. **With full details on,** each product's own page is added to its row.
5. **Export** the dataset as JSON, CSV or Excel, or read it through the API.

### Input Configuration

| Field | Type | Default | Description |
|---|---|---|---|
| `searchTerms` | array | none | Words a shopper would type, one search each. |
| `startUrls` | array | none | Product, category or search links from any Costco store. |
| `categories` | array | none | Category names as in the link (US, Canada). |
| `itemNumbers` | array | none | Item or product numbers; each comes with full details. |
| `country` | string | `us` | `us`, `ca`, `uk`, `jp`, `au`, `kr`, `tw`. A link's own store wins. |
| `language` | string | `en` | Canada: `en` or `fr`. |
| `sortBy` | string | `relevance` | US, Canada: `price_asc`, `price_desc`, `rating`, `newest`. |
| `brand` | string | none | US, Canada: one brand, as Costco spells it. |
| `inStockOnly` | boolean | `false` | US, Canada: hide unavailable items. |
| `maxProductsPerSearch` | integer | `100` | Upper limit per search or category, up to 5,000. |
| `includeDetails` | boolean | `false` | Adds description, features, specifications, images, promotions, shipping note and variants; charged per product. |

#### Two searches, cheapest first, in stock

```json
{
  "searchTerms": ["olive oil", "kirkland coffee"],
  "sortBy": "price_asc",
  "inStockOnly": true,
  "maxProductsPerSearch": 200
}
```

#### A whole category with full details

```json
{
  "categories": ["mattresses"],
  "includeDetails": true,
  "maxProductsPerSearch": 500
}
```

#### Search in Costco Japan

```json
{ "searchTerms": ["coffee"], "country": "jp" }
```

### Output Overview

One row per product. Every row has `itemNumber`, `productId`, `title`, `brand`, `url`, `imageUrl`, `price`, `currency`, `rating`, `reviewCount`, `availability`, `country`, `searchInput`, `position` and `scrapedAt`. US and Canada rows add the savings fields, member-only and price-in-cart flags, delivery options, badges and categories. Full details add the fields listed under Key Output Fields.

### Output Samples

Search row:

```json
{
  "itemNumber": "9665888",
  "productId": "4201040398",
  "title": "Samsung 65\" Class - U8000H Crystal UHD Series - 4K Smart TV",
  "brand": "Samsung",
  "model": "UN65U8000HDXZA",
  "gtin": "198957270222",
  "url": "https://www.costco.com/p/-/samsung-65-class---u8000h-crystal-uhd-series---4k-smart-tv/4201040398",
  "price": 299.99,
  "regularPrice": null,
  "instantSavings": null,
  "priceValidThrough": "2026-11-30",
  "priceMessage": "Price valid through 11/30/26",
  "currency": "USD",
  "priceHidden": false,
  "membersOnly": false,
  "rating": 3.15,
  "reviewCount": 75,
  "availability": "in_stock",
  "deliveryStatus": "in_stock",
  "badges": ["Black Friday Deal"],
  "categories": ["Electronics", "Electronics > TVs", "Electronics > TVs > 65 inch TVs"],
  "country": "us",
  "searchInput": "tv",
  "position": 1
}
```

Fields added by full details:

```json
{
  "features": ["UHD Dimming - Enriches Vivid Colors and Deep Darks", "4K Upscaling - Upgrade Content You Love in Crisp 4K Clarity"],
  "specifications": { "Screen Resolution": "3840 x 2160", "Native Refresh Rate": "60Hz", "Warranty Coverage": "3 Years" },
  "promotions": "While supplies last.",
  "shippingNote": "Delivery Only* (set up and installation NOT included)",
  "maxOrderQuantity": 10,
  "listedSince": "2026-08-25",
  "variantCount": 1,
  "variants": [],
  "detailsIncluded": true
}
```

### Key Output Fields

#### Price

- `price`: what a member pays now, after instant savings.
- `regularPrice`, `instantSavings`, `savingsText`, `priceValidThrough`, `priceMessage`: the saving and when it ends.
- `priceMin`, `priceMax`: for products whose variants differ in price.
- `priceHidden`, `priceInCartOnly`, `membersOnly`: when Costco hides the price or sells to members only.

#### Product

- `itemNumber`, `productId`, `title`, `brand`, `model`, `gtin`, `url`, `imageUrl`, `categories`, `badges`.
- `rating`, `reviewCount`.

#### Stock and delivery

- `availability`, `deliveryStatus`, `onlineOnly`, `warehouseOnly`, `costcoDirect`, `fulfilment`, `maxOrderQuantity`, `fsaEligible`.

#### Full details

- `description`, `features`, `specifications`, `images`, `manufacturer`, `promotions`, `savingsValidFrom`, `savingsValidThrough`, `shippingNote`, `buyable`, `listedSince`, `variantCount`, `variants` (each with its own price, saving and stock flags).

### FAQ

**Which price is `price`?**
The price a member pays today, after any instant saving. The price before the saving is `regularPrice`, the saving is `instantSavings`, and its end date is `priceValidThrough`.

**Why is a price empty?**
Costco hides some prices until the item is in the cart, or shows them to members only. `priceHidden`, `priceInCartOnly` and `membersOnly` say which.

**Which countries work?**
The US and Canada in full. In the UK, Japan, Australia, South Korea and Taiwan, search and product pages work; categories, sorting and filters do not.

**How many products can I get?**
Up to 5,000 per search or category. Search for narrower terms or several categories for more.

**What does the free Apify plan get?**
Up to 20 products from the first input per run. Any paid Apify plan removes the limit.

**How much does it cost?**
$0.01 per run start, $0.0015 per product ($1.50 per 1,000), and $0.0025 more per product with full details ($2.50 per 1,000). Item numbers and product links always include details. A 500-product category with full details costs $2.01. Duplicates, left-out rows and the run summary are never charged. Set "Max cost per run" in the run options and the run stops by itself at that amount.

### Support

Found a bug or missing a field? Open an issue on the actor's [Issues tab](https://apify.com/memo23/costco-scraper/issues) with your run link and input.

### Additional Services

Need a daily price feed, a store not covered here or a custom export? Ask on the Issues tab; tailored work is available.

### Explore More Scrapers

- [**Walmart Scraper**](https://apify.com/memo23/walmart-scraper): Walmart products and prices.
- [**Best Buy Scraper**](https://apify.com/memo23/bestbuy-scraper): prices, stock and reviews from Best Buy.
- [**Home Depot Scraper**](https://apify.com/memo23/homedepot-scraper): prices, store stock and specs.
- [**Google Shopping Scraper**](https://apify.com/memo23/google-shopping-scraper): offers and sellers across shops.

Full list at [apify.com/memo23](https://apify.com/memo23).

### 🤖 For AI Agents & LLM Apps

Compact reference for agents calling this actor through the [Apify MCP server](https://mcp.apify.com) or the Apify API (actor: `memo23/costco-scraper`).

**Purpose:** Costco products by search term, category, item number or link, with prices after instant savings, stock and optional full details.

**Minimal input:**

```json
{ "searchTerms": ["olive oil"], "country": "us", "maxProductsPerSearch": 20 }
```

**Output:** one row per product: itemNumber, productId, title, brand, model, gtin, url, imageUrl, price, regularPrice, instantSavings, savingsText, priceValidThrough, priceMin, priceMax, currency, priceHidden, priceInCartOnly, membersOnly, rating, reviewCount, availability, deliveryStatus, onlineOnly, warehouseOnly, fulfilment, badges, maxOrderQuantity, categories, country, searchInput, position, scrapedAt. With `includeDetails`: description, features, specifications, images, promotions, shippingNote, listedSince, variants.

**Behaviors an agent should know:**

- `country` applies to search terms, categories and item numbers; a link's own store wins.
- Outside the US and Canada only search and product pages work.
- `maxProductsPerSearch` bounds each search or category (default 100) and so the cost.
- Billing: $0.01 per run start, one `product` charge per row ($0.0015), one `product-details` charge per row with details ($0.0025).
- Inputs that returned nothing are listed in the `RUN_SUMMARY` key-value record.

### ⚠️ Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Costco Wholesale Corporation. All trademarks mentioned are the property of their respective owners.

It returns publicly listed product information. It does not access member accounts or content behind a login. Users are responsible for making sure their use complies with Costco's terms, applicable law and their own contractual obligations.

### SEO Keywords

costco scraper, costco api, costco price tracker, costco product data, costco.com scraper, costco.ca scraper, costco prices, kirkland signature prices, costco instant savings, costco deals scraper, costco stock checker, costco uk scraper, costco japan, costco australia, costco product details, costco export to excel

# Actor input Schema

## `searchTerms` (type: `array`):

Words a shopper would type on Costco, one search per line.

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

Product pages, category pages (e.g. https://www.costco.com/mattresses.html) or search pages (…/s?keyword=…) from costco.com or costco.ca. Product and search pages from costco.co.uk, .co.jp, .com.au, .co.kr and .com.tw work too. The link's own store wins over the country below.

## `categories` (type: `array`):

Category page names as in the link, e.g. mattresses, televisions, kirkland-signature-groceries.

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

Costco item or product numbers, e.g. 1789247. Each comes back with full details.

## `country` (type: `string`):

For search terms, categories and item numbers. Outside the US and Canada: search and product pages only, no categories, sorting or filters.

## `language` (type: `string`):

costco.ca only.

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

Costco's own sort orders.

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

Only this brand, spelled as Costco lists it, e.g. Kirkland Signature.

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

The site's own "Hide Unavailable Items".

## `maxProductsPerSearch` (type: `integer`):

Each search term or category stops here.

## `includeDetails` (type: `boolean`):

Adds the description, feature bullets, specifications, every image, promotions, shipping note and every variant (size, colour) with its own price. Charged as a separate event per product. Item numbers and product links always come with details.

## Actor input object example

```json
{
  "searchTerms": [
    "olive oil"
  ],
  "country": "us",
  "language": "en",
  "sortBy": "relevance",
  "inStockOnly": false,
  "maxProductsPerSearch": 100,
  "includeDetails": false
}
```

# Actor output Schema

## `products` (type: `string`):

All rows in the default dataset.

## `summary` (type: `string`):

What each input delivered or could not read.

# 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 = {
    "searchTerms": [
        "olive oil"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/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 = { "searchTerms": ["olive oil"] }

# Run the Actor and wait for it to finish
run = client.actor("memo23/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 '{
  "searchTerms": [
    "olive oil"
  ]
}' |
apify call memo23/costco-scraper --silent --output-dataset

```

## MCP server setup

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