# Costco Product Reviews Scraper (`scraped/costco-product-reviews-scraper`) Actor

Scrape product reviews from Costco.com

- **URL**: https://apify.com/scraped/costco-product-reviews-scraper.md
- **Developed by:** [scraped](https://apify.com/scraped) (community)
- **Categories:** E-commerce, Lead generation, Social media
- **Stats:** 19 total users, 3 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

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

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 Product Review Scraper

This scraper collects product reviews from [Costco](https://costco.com/)

### Instructions

Enter `URL` of Costco product you want scraped.

### Sample Output

Here's an example of the data the scraper will output (sensitive data is removed for privacy):

```json
{
Review ID: "237318015",
Product ID: "4000267899",
Product Name: "Dell Inspiron 7000 Series 27" All-In-One Touchscreen Desktop - Intel Core 7 Processor 150U - GeForce MX570A - FHD (1920 X 1080) - Windows 11",
User Nickname: "BunnyAC",
User Location: "Clinton Twp, MI",
Content Locale: "en_US",
Rating: 4,
Is Recommended: false,
Review Title: "Update!! Initially arrived damaged :(",
Review Text: "Computer received damaged right out of the box! The screen is gaping at the bottom. I’m not sure if it was dropped during shipping! It’s going right back to the store. Im terribly disappointed. Returning the old computer was easy, thank you Costco returns!

I’m giving 4 stars because the first computer arrived damaged! We decided to order another computer because the sale price was very good! The new computer was perfect and fairly easy to set up!",
Submission Time: "2024-11-21T14:19:27.000+00:00",
Helpfulness: 0.6521739959716797,
Total Inappropriate Feedback Count: 0,
Number of Photos: 4,
Photo Links: "https://photos-us.bazaarvoice.com/photo/2/cGhvdG86Y29zdGNv/d20a4dd1-eb78-5fe0-82f5-869b4af5d496, https://photos-us.bazaarvoice.com/photo/2/cGhvdG86Y29zdGNv/69de93ff-f398-5cc7-b0f6-705f3bfcc8bf, https://photos-us.bazaarvoice.com/photo/2/cGhvdG86Y29zdGNv/a5728948-ea6e-5f0c-82a8-261b0676667c, https://photos-us.bazaarvoice.com/photo/2/cGhvdG86Y29zdGNv/8ad9aa07-4882-5692-9ab6-8d31fdce02bc"
}

```

### Support

Please email scraperhelp@gmail.com if you need any additional support.

# Actor input Schema

## `url` (type: `string`):

The URL of website you want to get the data from.

## Actor input object example

```json
{
  "url": "https://www.costco.com/dell-inspiron-7000-series-27%22-all-in-one-touchscreen-desktop---intel-core-7-processor-150u---geforce-mx570a---fhd-1920-x-1080---windows-11.product.4000267899.html"
}
```

# 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 = {
    "url": "https://www.costco.com/dell-inspiron-7000-series-27%22-all-in-one-touchscreen-desktop---intel-core-7-processor-150u---geforce-mx570a---fhd-1920-x-1080---windows-11.product.4000267899.html"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraped/costco-product-reviews-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 = { "url": "https://www.costco.com/dell-inspiron-7000-series-27%22-all-in-one-touchscreen-desktop---intel-core-7-processor-150u---geforce-mx570a---fhd-1920-x-1080---windows-11.product.4000267899.html" }

# Run the Actor and wait for it to finish
run = client.actor("scraped/costco-product-reviews-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 '{
  "url": "https://www.costco.com/dell-inspiron-7000-series-27%22-all-in-one-touchscreen-desktop---intel-core-7-processor-150u---geforce-mx570a---fhd-1920-x-1080---windows-11.product.4000267899.html"
}' |
apify call scraped/costco-product-reviews-scraper --silent --output-dataset

```

## MCP server setup

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