# CostCo Fast Product Scraper (`codingfrontend/costco-fast-product-scraper`) Actor

Scrape public product data from Costco.com and Costco.ca search, category, and product pages, including name, prices, currency, ratings, reviews, and availability.

- **URL**: https://apify.com/codingfrontend/costco-fast-product-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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?

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

### What does Costco Fast Product Scraper do?

This Actor collects product details that Costco exposes on public [Costco.com](https://www.costco.com/) and [Costco.ca](https://www.costco.ca/) product pages. Enter direct product URLs in the **Input** tab to save product records in a dataset. It does not search Costco, open category pages, or use member credentials.

### Why use it?

Use the results to compare public product descriptions, prices, ratings, availability, images, and product identifiers for catalogue research or price monitoring. You can run the Actor manually, schedule it, connect through the Apify API and integrations, and monitor run status and logs in Apify Console.

The Actor requests each submitted product page directly over HTTPS. Costco may limit access or return a verification page. The Actor does not switch to a proxy, browser, private endpoint, or CAPTCHA service when that happens.

### How to start a run

1. Open the Actor and select **Input**.
2. Add one or more direct Costco product-detail URLs. Use a product URL, not a keyword, category, or search page.
3. Adjust optional settings if needed, then select **Start**.
4. Open **Results** to inspect or download the product dataset. Open **Output summary** to see the saved-record count and run status.

No account credentials or API keys are needed as Actor input.

### Input

`startUrls` is required. It must contain 1–20 public HTTPS product-detail URLs from Costco.com or Costco.ca. Duplicate normalized URLs are removed. Search and category URLs are rejected; Costco's [Costco.com robots.txt](https://www.costco.com/robots.txt) disallows its `CatalogSearch` route, so this Actor accepts direct product pages only.

#### Product URLs

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `startUrls` | Array of objects with a `url` text field | Required | None | Product-detail pages to request. Provide 1–20 URLs. Each entry must be `{ "url": "https://..." }`. |
| `startUrls[].url` | Text URL | Required within each entry | None | Absolute HTTPS URL for one public Costco product-detail page. |

#### Result limit and information to include

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `maxProductsPerUrl` | Integer | Optional | `30` | Maximum rows to keep from each submitted URL; valid range is 1–200. Direct product pages normally yield one product row. |
| `includeMedia` | Boolean | Optional | `true` | Include public product images from the product data and gallery, up to 20 distinct assets. Thumbnail and zoom versions of an asset are counted once. Set to `false` to omit `images` and variant `image` links. |

#### Advanced settings (Developer Options)

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `timeoutMs` | Integer | Optional | `30000` | Maximum duration in milliseconds for each HTTP attempt; valid range is 5,000–120,000. Retries can extend the total time for one URL. |
| `maxRequestRetries` | Integer | Optional | `2` | Retries ordinary temporary request or server errors; valid range is 0–5. Rate limits, access denials, redirects, and challenges stop without retry. |
| `requestDelayMs` | Integer | Optional | `0` | Pause after each product URL and between retries in milliseconds; valid range is 0–10,000. Retry pauses increase with each attempt. |
| `maxResponseBytes` | Integer | Optional | `8388608` | Maximum response-body size in bytes; valid range is 100,000–20,971,520. |

There are no keyword, search, category, filter, sorting, or pagination fields. The Actor does not accept compatibility aliases; use the names in these tables.

#### Copyable input examples

These examples use public product URLs checked during development. Pages and availability can change; replace them with the direct product-detail URLs you want to collect.

One product page with a small per-URL result cap:

```json
{
  "startUrls": [
    { "url": "https://www.costco.com/p/-/kirkland-signature-decaffeinated-coffee-dark-roast-3-lbs/100334883" }
  ],
  "maxProductsPerUrl": 1
}
```

Several product pages with a pause between requests:

```json
{
  "startUrls": [
    { "url": "https://www.costco.com/p/-/kirkland-signature-decaffeinated-coffee-dark-roast-3-lbs/100334883" },
    { "url": "https://www.costco.ca/p/-/oxo-brew-9-cup-coffee-maker/4000147018" }
  ],
  "requestDelayMs": 1000
}
```

Product details without image URLs, with a longer timeout and no retries:

```json
{
  "startUrls": [
    { "url": "https://www.costco.com/p/-/calvin-klein-mens-wrinkle-free-dress-shirt/4000233280" }
  ],
  "includeMedia": false,
  "timeoutMs": 60000,
  "maxRequestRetries": 0
}
```

### Output

Each dataset row is a product record. The Actor includes only values it can extract from the public product page; unavailable optional fields are omitted. Product URLs and image URLs are useful links back to the source. The output values below are **illustrative**, not verified live Costco results.

The Actor combines the page's product data with its public specifications, product details, category breadcrumbs, and image gallery. Specifications can fill missing model, manufacturer, color, size, and weight values; other characteristics appear in `features` with their source labels. These details come from the same product page and do not create extra rows. If submitted URLs resolve to the same canonical product URL, that product is saved once.

Prices, ratings, availability, and membership indicators are included only when present in the product data. Currency comes from that data rather than being guessed from the website's country. Member prices, location-dependent stock, and other information absent from the public response may be unavailable. The Actor also reads the product's own public catalogue data to keep each SKU, UPC, option and image associated with its variant. `sku`, `upc`, `color`, `size`, and the listed price describe the selected item; other variants do not inherit that item's price or stock. `isBuyable` is not treated as proof of stock. All variants included in that product response remain inside one row, even when `maxProductsPerUrl` is 1.

Full product details are saved as readable `description` and semantic `descriptionHtml`, without a character cutoff. `specifications` preserves displayed labels and values, including those also mapped to existing fields. Shipping and returns terms retain source text, lists, tables and links; HTML excludes scripts, interactive controls and application attributes. Category IDs and full category paths come from the same product's catalogue associations. `brandLinks` are Costco's product-associated brand shopping links, not manufacturer websites. Order promotions remain separate from the listed item price.

Shipping rates and delivery-time ranges are included only when published in the product's structured offer. They are not a location-specific shipping quote. Public ratings and counts are supported; individual review text, location-specific warehouse stock, member-only prices, unit-price tiers, and data requiring an account are not verified by this Actor. A missing value is omitted, not replaced with zero, false, or an empty array. An optional detail-extraction failure keeps the valid base product and marks the run as partial.

```json
{
  "productUrl": "https://www.costco.com/p/-/example-coffee-maker/1234567",
  "id": "CM-12-900",
  "name": "Example 12-Cup Coffee Maker",
  "description": "Programmable coffee maker with a reusable filter and glass carafe.",
  "sku": "CM-12-900",
  "mpn": "EX-12900",
  "model": "CM-12",
  "manufacturer": "Example Appliance Co.",
  "color": "Brushed stainless steel",
  "size": "12-cup",
  "weight": "8 lb",
  "features": {
    "Capacity": "12 cups",
    "Carafe Material": "Glass",
    "Power": "900 W"
  },
  "images": [
    "https://bfasset.costco-static.com/example/coffee-maker-main.jpg",
    "https://bfasset.costco-static.com/example/coffee-maker-side.jpg"
  ],
  "listPrice": 49.99,
  "minPrice": 39.99,
  "maxPrice": 59.99,
  "currencyCode": "USD",
  "rating": 4.6,
  "reviewsCount": 218,
  "isInStock": true,
  "availabilityStatus": "in stock",
  "brands": [
    "Example"
  ],
  "categoryPaths": [
    "Home & Kitchen",
    "Kitchen Appliances",
    "Coffee Makers"
  ],
  "isMemberOnly": false,
  "catalogId": "1234567",
  "upc": "012345678905",
  "descriptionHtml": "<p>Programmable coffee maker with a reusable filter and glass carafe.</p>",
  "specifications": [
    {
      "name": "Brand",
      "values": [
        "Example"
      ]
    },
    {
      "name": "Model",
      "values": [
        "CM-12"
      ]
    },
    {
      "name": "Capacity",
      "values": [
        "12 cups"
      ]
    },
    {
      "name": "Carafe Material",
      "values": [
        "Glass"
      ]
    },
    {
      "name": "Power",
      "values": [
        "900 W"
      ]
    },
    {
      "name": "Color",
      "values": [
        "Brushed stainless steel"
      ]
    },
    {
      "name": "Size",
      "values": [
        "12-cup"
      ]
    },
    {
      "name": "Weight",
      "values": [
        "8 lb"
      ]
    }
  ],
  "variants": [
    {
      "sku": "CM-12-900",
      "upc": "012345678905",
      "name": "Example 12-Cup Coffee Maker, Brushed stainless steel",
      "mpn": "EX-12900",
      "attributes": [
        {
          "name": "Color",
          "values": [
            "Brushed stainless steel"
          ]
        },
        {
          "name": "Size",
          "values": [
            "12-cup"
          ]
        }
      ],
      "image": "https://bfasset.costco-static.com/example/coffee-maker-main.jpg",
      "isMemberOnly": false
    }
  ],
  "categories": [
    {
      "id": "98765",
      "path": [
        "Home & Kitchen",
        "Kitchen Appliances",
        "Coffee Makers"
      ],
      "isPrimary": true
    }
  ],
  "brandLinks": [
    {
      "name": "Example",
      "url": "https://www.costco.com/s?keyword=Example"
    }
  ],
  "shipping": {
    "termsText": "Standard shipping included. Returns accepted at Costco warehouses.",
    "termsHtml": "<p>Standard shipping included.</p><p>Returns accepted at Costco warehouses.</p>",
    "methods": [
      {
        "code": "UPG",
        "name": "Ground",
        "carrier": "United Parcel Service"
      }
    ],
    "shippingDetails": [
      {
        "shippingDestination": {
          "addressCountry": "US"
        },
        "shippingRate": {
          "value": 0,
          "currency": "USD"
        },
        "deliveryTime": {
          "handlingTime": {
            "minValue": 2,
            "maxValue": 2,
            "unitCode": "DAY"
          }
        }
      }
    ]
  },
  "promotions": [
    "Buy 5 qualifying items, save $20 on the order"
  ],
  "supportContacts": [
    {
      "name": "Example Appliance Co.",
      "phone": "1 (800) 555-0100",
      "purpose": "product and warranty related questions"
    }
  ],
  "warrantyTerms": [
    "2 years against manufacturer defects"
  ]
}
```

#### Output fields

| Field | Type | Required? | Meaning |
| --- | --- | --- | --- |
| `productUrl` | Text URL | Required | Canonical Costco product-detail page. |
| `name` | Text | Required | Product name shown on the page. |
| `id` | Text | Optional | Product identifier when it differs from the identifier already present in the URL. |
| `description` | Text | Optional | Public product description, supplemented by longer product details when available. |
| `sku` | Text | Optional | Stock keeping unit. |
| `mpn` | Text | Optional | Manufacturer part number. |
| `model` | Text | Optional | Product model identifier. |
| `manufacturer` | Text | Optional | Manufacturer name. |
| `color` | Text | Optional | Product color. |
| `size` | Text | Optional | Product size. |
| `weight` | Text | Optional | Product weight or package net weight with its source unit. |
| `features` | Object of text values | Optional | Product characteristics from product data and the specifications table; source labels are keys. Values with their own output fields are kept in those fields. |
| `images` | Array of text URLs | Optional | Up to 20 distinct public Costco product image assets from product data and the gallery; omitted when unavailable or disabled. |
| `listPrice` | Number | Optional | Current listed price. |
| `minPrice` | Number | Optional | Lowest value in a real public price range. |
| `maxPrice` | Number | Optional | Highest value in a real public price range. |
| `currencyCode` | Text | Optional | Source currency code associated with the price; omitted when not supplied. |
| `rating` | Number | Optional | Public rating from 0 to 5. |
| `reviewsCount` | Integer | Optional | Public review or rating count. |
| `isInStock` | Boolean | Optional | Whether the page indicates current stock. |
| `availabilityStatus` | Text | Optional | Availability derived from public page text. |
| `brands` | Array of text | Optional | Public brand values. |
| `categoryPaths` | Array of text | Optional | Public category values, or category breadcrumbs in page order, excluding the homepage and product itself. |
| `isMemberOnly` | Boolean | Optional | Whether the public product data explicitly requires membership; omitted when no product-specific flag is supplied. |
| `catalogId` | Text | Optional | Native parent catalogue ID, distinct from an item SKU. |
| `upc` | Text | Optional | Selected SKU's 12-digit Universal Product Code, preserving leading zeros. Placeholder codes are omitted. |
| `descriptionHtml` | HTML text | Optional | Full product details as semantic HTML, without scripts or application attributes. |
| `specifications` | Array of objects | Optional | Complete displayed specifications as `name` and `values` arrays. |
| `variants` | Array of objects | Optional | All matching child items present in this product response, each with its own identifiers and options. |
| `categories` | Array of objects | Optional | Native category IDs, full name paths, and published primary flags. |
| `brandLinks` | Array of objects | Optional | Brand name and product-associated Costco shopping URL. |
| `shipping` | Object | Optional | Published shipping and return terms, selected-item shipping methods and structured offer delivery details. |
| `promotions` | Array of text | Optional | Product-associated promotional terms; order savings are not subtracted from the listed price. |
| `supportContacts` | Array of objects | Optional | Product-specific business contacts explicitly named in the product details; not general store customer service. |
| `warrantyTerms` | Array of text | Optional | Full terms listed under the product-specific Warranty heading. |

#### Nested output fields

Manufacturer names, part numbers, product-specific warranty terms and named support contacts are included when explicitly published. Support contacts are taken from the product details, not the store navigation or general customer service.

Every nested field is optional unless marked required below. Missing objects and arrays are omitted. The illustrative record above shows the complete supported structure; real products may have fewer fields or many more variants and specifications.

| Field | Type | Required? | Meaning |
| --- | --- | --- | --- |
| `specifications[].name`, `variants[].attributes[].name` | Text | Required within each attribute | Source specification or option label. |
| `specifications[].values`, `variants[].attributes[].values` | Array of text | Required within each attribute | Published values belonging to that label. |
| `variants[].sku`, `variants[].name` | Text | Required within each variant | This variant's native item ID and name. |
| `variants[].upc` | Text | Optional | This variant's 12-digit UPC. |
| `variants[].mpn` | Text | Optional | This variant's manufacturer part number. |
| `variants[].attributes` | Array of objects | Optional | Displayed options or specifications belonging to this SKU, excluding hidden controls. |
| `variants[].image` | Text URL | Optional | This variant's published image, omitted when `includeMedia` is false. |
| `variants[].isMemberOnly` | Boolean | Optional | This variant's explicit membership requirement. |
| `categories[].id`, `categories[].path` | Text; array of text | Required within each category | Source category ID and ordered category-name hierarchy. |
| `categories[].isPrimary` | Boolean | Optional | Source flag identifying a primary category association. |
| `brandLinks[].name`, `brandLinks[].url` | Text; text URL | Required within each brand link | Associated brand and its Costco shopping link. |
| `shipping.termsText`, `shipping.termsHtml` | Text; HTML text | Optional | Full public shipping and returns section, with semantic formatting retained in HTML. |
| `shipping.methods` | Array of objects | Optional | Shipping methods published for the selected item. |
| `shipping.methods[].name` | Text | Required within each method | Source shipping-method description. |
| `shipping.methods[].code`, `shipping.methods[].carrier` | Text | Optional | Source method code and carrier name. |
| `shipping.shippingDetails` | Array of objects | Optional | Structured shipping offers published with this product. |
| `shipping.shippingDetails[].shippingDestination.addressCountry` | Text | Optional | Source destination country code. |
| `shipping.shippingDetails[].shippingRate.value`, `shipping.shippingDetails[].shippingRate.currency` | Number; text | Optional | Published nonnegative shipping amount and currency, including zero only when explicitly supplied. |
| `shipping.shippingDetails[].deliveryTime.handlingTime` | Object | Optional | Published handling-time ranges. |
| `shipping.shippingDetails[].deliveryTime.handlingTime.minValue`, `shipping.shippingDetails[].deliveryTime.handlingTime.maxValue` | Numbers | Optional | Source nonnegative lower and upper time limits. |
| `shipping.shippingDetails[].deliveryTime.handlingTime.unitCode` | Text | Optional | Source time unit, for example `DAY`. |
| `supportContacts[].name`, `supportContacts[].phone`, `supportContacts[].purpose` | Text | Required within each contact | Published business name, original phone formatting and stated reason to contact it. |

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Run status and output summary

The separate **Output summary** link opens the `OUTPUT_SUMMARY` record in the run's default **Key-value store**. It contains exactly the run status, the number of product records whose dataset writes completed, and whether the run returned limited results. Request and parsing details remain in the run log.

| Field | Type | Required? | Meaning |
| --- | --- | --- | --- |
| `status` | String | Required | `SUCCEEDED` when at least one real product record was saved; otherwise `FAILED`. |
| `itemsStored` | Nonnegative integer | Required | Number of validated product records whose dataset writes completed during the run. |
| `isPartial` | Boolean | Required | `true` when the Actor saved records and a source, parsing, optional detail extraction, or dataset write failed. |

Completed run:

```json
{
  "status": "SUCCEEDED",
  "itemsStored": 2,
  "isPartial": false
}
```

Limited results:

```json
{
  "status": "SUCCEEDED",
  "itemsStored": 1,
  "isPartial": true
}
```

No real product records saved:

```json
{
  "status": "FAILED",
  "itemsStored": 0,
  "isPartial": false
}
```

A run with saved records succeeds even if a later URL, optional detail extraction, or write fails; `isPartial` shows that results are limited. A run that saves no real product records fails, including blocked, empty, invalid-input, and diagnostic-only outcomes. The Actor never adds dummy rows to change the status. Reaching the configured per-URL row cap is normal completion.

### Tips, access, and cost

- Use direct product URLs copied from Costco product-detail pages. Search, keyword, category, and sorting inputs are not supported.
- Use `requestDelayMs` to space out requests. Duplicate URLs are de-duplicated before collection.
- Costco can deny or challenge public requests. The Actor stops at access boundaries and does not use credentials, proxies, browser automation, private APIs, or CAPTCHA solving.
- Runs use your Apify account's current compute and storage plan. Check the pricing shown in your account; this Actor's code does not declare a fixed per-result price.
- For help, use the Actor's **Issues** tab. The **API** tab shows how to call the Actor programmatically.

# Actor input Schema

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

One to 20 HTTPS product-detail page URLs on Costco.com or Costco.ca. Search and category pages are rejected.

## `maxProductsPerUrl` (type: `integer`):

Maximum product rows to keep from each submitted URL. A direct detail page normally yields one product row.

## `timeoutMs` (type: `integer`):

Maximum time for each direct public HTTP attempt. Retries can extend the total time for one URL.

## `maxRequestRetries` (type: `integer`):

Retry count for temporary request or server errors. Rate limits, access denials, redirects, and challenges stop without retry.

## `requestDelayMs` (type: `integer`):

Pause after each product URL and between retries. Retry pauses grow with each attempt.

## `maxResponseBytes` (type: `integer`):

Largest response body to read for a product page.

## `includeMedia` (type: `boolean`):

Include distinct public product image URLs when they are available.

## Actor input object example

```json
{
  "maxProductsPerUrl": 30,
  "timeoutMs": 30000,
  "maxRequestRetries": 2,
  "requestDelayMs": 0,
  "maxResponseBytes": 8388608,
  "includeMedia": true
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("codingfrontend/costco-fast-product-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("codingfrontend/costco-fast-product-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 '{}' |
apify call codingfrontend/costco-fast-product-scraper --silent --output-dataset

```

## MCP server setup

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