# Costco Product Search Scraper 🛒 (`easyapi/costco-product-search-scraper`) Actor

Scrape product data from Costco.com search results. Extract detailed product information including prices, descriptions, ratings, and availability. Perfect for price monitoring, market research and competitive analysis.

- **URL**: https://apify.com/easyapi/costco-product-search-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** E-commerce, Integrations, Other
- **Stats:** 41 total users, 0 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 1.00 out of 5 stars

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

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

## How to integrate an Actor?

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

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

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

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

# README

## Costco Product Search Scraper 🛒

Powerful scraper for extracting product data from Costco.com search results. Get comprehensive product information for market research, price monitoring, and competitive analysis.

### Features ✨

- 🔍 Scrape products from any Costco.com search URL
- 📦 Extract detailed product information including:
  - Product name and description
  - Current price and unit price
  - Product ratings and review count
  - Availability status
  - Product images
  - Marketing features and statements
  - Brand information
  - Item specifications
  - Category information
- ⚡ Fast and efficient pagination handling
- 🛡️ Built-in proxy support
- 🤖 Anti-blocking measures implemented
- 💾 Structured JSON output

### Usage 💡

Simply provide one or more Costco.com search URLs and set your desired maximum number of items to scrape. The actor will automatically handle pagination and extract all matching products.

### Input Parameters 📝

- `searchUrls`: Array of Costco.com search URLs to scrape
- `maxItems`: Maximum number of items to scrape (optional, default: unlimited)
- `proxyConfiguration`: Proxy settings (optional, recommended for production use)

### Output 📊

The actor outputs detailed product data in JSON format, including:

- Search URL reference
- Complete product details
- Timestamp of when the data was scraped

### Use Cases 🎯

- Price monitoring and tracking
- Competitive analysis
- Market research
- Product availability tracking
- Inventory monitoring
- E-commerce analytics

### Limitations ⚠️

- Respect Costco.com's terms of service and robots.txt
- Use appropriate delays between requests
- Configure proxy for production use

#### Input Example

A full explanation of an input example in JSON.

```json
{
    "searchUrls": [
        "https://www.costco.com/s?keyword=ball"
    ],
    "maxItems": 30
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```json
[
    {
        "searchUrl": "https://www.costco.com/s?keyword=ball",
        "scrapedAt": "2026-05-29T04:50:35.633Z",
        "productId": "4000230259",
        "title": "Callaway Edge Regular Flex 10-piece Golf Club Set, Left Handed",
        "brands": [
            "Callaway"
        ],
        "categories": [
            "Sports & Fitness",
            "Sports & Fitness > Golf",
            "Sports & Fitness > Golf > Golf Clubs"
        ],
        "categoryNames": [
            "Sports & Fitness",
            "Golf",
            "Golf Clubs"
        ],
        "description": null,
        "url": "https://www.costco.com/p/-/callaway-edge-regular-flex-10-piece-golf-club-set-left-handed/4000230259",
        "image": "https://bfasset.costco-static.com/U447IH35/as/qfxkss799wxs8c7gkzwmxz/1753430-847__1?auto=webp&format=jpg",
        "price": 629.99,
        "originalPrice": 629.99,
        "priceInCartOnly": false,
        "rating": 4.6966,
        "ratingCount": 379,
        "variantId": "1753430",
        "matchingVariantCount": 1,
        "buyable": true,
        "memberOnly": false,
        "minOrderQty": "1",
        "maxOrderQty": "9999.0",
        "programTypes": [
            "Google",
            "SiteControlledInventory",
            "Standard",
            "ShipIt"
        ],
        "productClassType": "Standard",
        "marketingKeywords": [
            "beattheheat",
            "FunGifts",
            "OutdoorFun",
            "GearUpForGolf",
            "FathersDay",
            "Ends1225",
            "SportTile",
            "fathersday"
        ],
        "inventoryAvailability": [
            {
                "location": "758-wm",
                "availability": "IN_STOCK"
            },
            {
                "location": "725-wm",
                "availability": "IN_STOCK"
            },
            {
                "location": "731-wm",
                "availability": "IN_STOCK"
            }
        ],
        "variants": [
            {
                "id": "1753430",
                "title": "Callaway Edge 10-piece Golf Club Set, Left Handed - Regular Flex",
                "url": "https://www.costco.com/p/-/callaway-edge-10-piece-golf-club-set-left-handed---regular-flex/1753430",
                "image": null,
                "brands": [],
                "minOrderQty": "1",
                "maxOrderQty": "5.0",
                "buyable": true,
                "programTypes": [
                    "Google",
                    "SiteControlledInventory",
                    "Standard",
                    "ShipIt"
                ]
            }
        ],
        "personalLabels": []
    },
    ...
]
```

### Related Actors

- 🛍️ [Sam's Club Product Scraper](https://apify.com/easyapi/sam-s-club-product-scraper) - Extract detailed product data from Sam's Club search results, perfect for price monitoring and competitive analysis.
- 🛒 [Woolworths Product Scraper](https://apify.com/easyapi/woolworths-product-scraper) - Extract detailed product data from Woolworths Australia's online store with comprehensive pricing and product information.
- 🛍️ [Lidl Product Scraper](https://apify.com/easyapi/lidl-product-scraper) - Scrape product data from Lidl's online store including prices, images, descriptions and stock information.
- 🛍️ [Hobby Lobby Products Scraper](https://apify.com/easyapi/hobby-lobby-products-scraper) - Scrape product data from Hobby Lobby's website with detailed product information and inventory tracking.
- 🛍️ [Flipkart Product Scraper](https://apify.com/easyapi/flipkart-product-scraper) - Scrape product data from Flipkart search results for price monitoring and market research.
- 🛍️ [AJIO Product Scraper](https://apify.com/easyapi/ajio-product-scraper) - Extract detailed product information from AJIO's fashion marketplace with comprehensive pricing data.
- 🛍️ [Myntra Product Scraper](https://apify.com/easyapi/myntra-product-scraper) - Extract detailed product information from Myntra's fashion marketplace with pricing and inventory data.
- 🛍️ [Meesho Product Search Scraper](https://apify.com/easyapi/meesho-product-search-scraper) - Scrape product listings from Meesho search results with detailed pricing and product information.
- 🛍️ [Zara Product Scraper](https://apify.com/easyapi/zara-product-scraper) - Extract detailed product information from Zara's online store with comprehensive pricing and variant data.
- 🛍️ [Weekday Product Scraper](https://apify.com/easyapi/weekday-product-scraper) - Extract product data from Weekday's online store with detailed variant and pricing information.
- 🛍️ [Tokopedia Product Scraper](https://apify.com/easyapi/tokopedia-product-scraper) - Scrape product data from Tokopedia search results with detailed pricing and shop information.
- 👟 [Nike Product Scraper](https://apify.com/easyapi/nike-product-scraper) - Extract product data from Nike.com search results including prices, colors and detailed product information.
- 🛍️ [Jumia Product Scraper](https://apify.com/easyapi/jumia-product-scraper) - Scrape product listings from Jumia e-commerce platform with comprehensive product details.
- 🏥 [Netmeds Product Scraper](https://apify.com/easyapi/netmeds-product-scraper) - Extract detailed product information from Netmeds.com with pricing and inventory status.
- 🛍️ [AppSumo Product Scraper](https://apify.com/easyapi/appsumo-product-scraper) - Scrape products, deals and offers from AppSumo marketplace with detailed pricing information.

# Actor input Schema

## `searchUrls` (type: `array`):

List of Costco.com search URLs to scrape

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

Maximum number of items to scrape (default: unlimited)

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.costco.com/s?keyword=kirkland"
  ],
  "maxItems": 30
}
```

# 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 = {
    "searchUrls": [
        "https://www.costco.com/s?keyword=kirkland"
    ],
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/costco-product-search-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchUrls": ["https://www.costco.com/s?keyword=kirkland"],
    "maxItems": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/costco-product-search-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 '{
  "searchUrls": [
    "https://www.costco.com/s?keyword=kirkland"
  ],
  "maxItems": 30
}' |
apify call easyapi/costco-product-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,easyapi/costco-product-search-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/hKbuys95osujDuAoQ/builds/8uAYxIJ8zNHB0oNPO/openapi.json
