# Costco Reviews (`getdataforme/costco-reviews`) Actor

Costco Reviews extracts customer reviews from Costco product pages. Provide product URLs; the Actor returns structured JSON with product and review IDs, timestamps, titles, text, ratings, feedback counts, author info, verification status, locale, product name, and media URLs—ideal for analysis.

- **URL**: https://apify.com/getdataforme/costco-reviews.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** Automation, E-commerce, Lead generation
- **Stats:** 8 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

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

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 Reviews Scraper

### Introduction

The **Costco Reviews Scraper** is an Apify Actor that extracts customer reviews from Costco product pages. Provide one or more product URLs and proxy settings, and receive a structured JSON array of detailed review data.

***

### Input Parameters

| Parameter             | Type      | Required | Description                                                              |
|-----------------------|-----------|:--------:|--------------------------------------------------------------------------|
| `proxyConfiguration`  | object    |   Yes    | Proxy settings to avoid IP blocks and ensure reliable scraping.          |
| └─ `useApifyProxy`    | boolean   |   Yes    | Whether to route requests through Apify Proxy.                           |
| └─ `apifyProxyGroups` | string\[]  |   No     | List of Apify Proxy groups to use (e.g., `["RESIDENTIAL"]`).             |
| `urls`                | string\[]  |   Yes    | Array of Costco product page URLs to scrape reviews from.                |

**Example Input**

```json
{
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "urls": [
    "https://www.costco.com/collin-street-bakery-mini-pecan-cake-bundle-9-oz-per-cake.product.4000275908.html"
  ]
}
```

***

### Features

- **Proxy Integration** – Built‑in Apify Proxy support to bypass rate limits and geo‑restrictions.
- **Batch URL Processing** – Scrape reviews from multiple Costco products in a single run.
- **Comprehensive Review Data** – Retrieves IDs, timestamps, titles, text, ratings, feedback counts, author info, and media URLs.
- **Structured JSON Output** – Clean, consistent schema for easy downstream consumption.
- **Robust Error Handling** – Automatic retries on transient network or parsing errors.

***

### Output

The Actor returns a JSON array where each element represents one review:

```json
[
  {
    "product_id": "4000275908",
    "review_id": "234625841",
    "submission_time": "2024-07-02T04:45:52.000+00:00",
    "last_modification_time": "2024-11-19T01:15:10.000+00:00",
    "moderation_status": "APPROVED",
    "is_featured": false,
    "is_syndicated": false,
    "title": "The regular fruit cake was really good.",
    "review_text": "The regular fruit cake in the cowboy tin was very good, however the one with whole pecans on top had some stale pecans on top. ...",
    "rating": 3,
    "rating_range": 5,
    "is_recommended": false,
    "helpfulness": 1,
    "total_feedback_count": 4,
    "positive_feedback_count": 4,
    "negative_feedback_count": 0,
    "author_id": "97915859-150c-4196-bace-75584b878985",
    "user_nickname": "Victoria W",
    "user_location": "Battle Ground, WA",
    "verified_purchaser": true,
    "content_locale": "en_US",
    "product_name": "Collin Street Bakery Mini Pecan Cake Bundle, 9 oz. per Cake",
    "total_comment_count": 0,
    "photo_urls": [],
    "video_urls": []
  },
  {
    "product_id": "4000275908",
    "review_id": "234618633",
    "submission_time": "2024-07-01T20:32:01.000+00:00",
    "last_modification_time": "2024-12-13T18:42:43.000+00:00",
    "moderation_status": "APPROVED",
    "is_featured": false,
    "is_syndicated": false,
    "title": "If you like sweet this is for you",
    "review_text": "It’s so sweet, not what I expect!",
    "rating": 2,
    "rating_range": 5,
    "is_recommended": false,
    "helpfulness": 0.83,
    "total_feedback_count": 6,
    "positive_feedback_count": 5,
    "negative_feedback_count": 1,
    "author_id": "322ab5de-41ac-471a-975e-5ad0806dea0e",
    "user_nickname": "Renan",
    "user_location": null,
    "verified_purchaser": true,
    "content_locale": "en_US",
    "product_name": "Collin Street Bakery Mini Pecan Cake Bundle, 9 oz. per Cake",
    "total_comment_count": 0,
    "photo_urls": [],
    "video_urls": []
  }
]
```

***

### Possible Use Cases

- **Sentiment Analysis** on customer feedback for product insights.
- **Quality Assurance** to detect common issues or praises.
- **Market Research** for competitive benchmarking and trend analysis.
- **Customer Support Automation** by flagging low‑rated reviews for follow‑up.
- **Data Aggregation** for dashboards, reports, or machine‑learning pipelines.

***

### Support

For bug reports or custom needs, contact:
📧 **<support@getdataforme.com>**
Or use our contact form: <https://getdataforme.com/contact/>

# Actor input Schema

## `urls` (type: `array`):

A list of URLs of the web pages you want to scrape data from.

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

Specifies proxy servers that will be used by the scraper in order to hide its origin.

## Actor input object example

```json
{
  "urls": [
    "https://www.costco.com/collin-street-bakery-mini-pecan-cake-bundle-9-oz-per-cake.product.4000275908.html"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "urls": [
        "https://www.costco.com/collin-street-bakery-mini-pecan-cake-bundle-9-oz-per-cake.product.4000275908.html"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/costco-reviews").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 = {
    "urls": ["https://www.costco.com/collin-street-bakery-mini-pecan-cake-bundle-9-oz-per-cake.product.4000275908.html"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/costco-reviews").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 '{
  "urls": [
    "https://www.costco.com/collin-street-bakery-mini-pecan-cake-bundle-9-oz-per-cake.product.4000275908.html"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call getdataforme/costco-reviews --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getdataforme/costco-reviews"
        }
    }
}

```

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/SyGf8tztxBCDIMzvv/builds/0ZF7QOs7cepR9e9Rc/openapi.json
