# Bjs Product Parser Spider (`getdataforme/bjs-product-parser-spider`) Actor

This Apify actor extracts comprehensive product data from BJ's Wholesale Club, including names, prices, descriptions, and images. With built-in proxy support to bypass restrictions, it's ideal for e-commerce analysis, price monitoring, and market research....

- **URL**: https://apify.com/getdataforme/bjs-product-parser-spider.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** E-commerce, Jobs, Real estate
- **Stats:** 8 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## 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

## Bjs Product Parser Spider

### Introduction

The Bjs Product Parser Spider is a powerful Apify Actor designed to extract detailed product information from BJ's Wholesale Club (BJS) websites. It efficiently scrapes product data such as names, prices, descriptions, and images, enabling users to gather valuable insights for various business needs. This tool ensures reliable data extraction with built-in proxy support to handle anti-scraping measures, making it ideal for e-commerce analysis and automation.

### Features

- **Comprehensive Data Extraction**: Scrapes key product details including title, price, description, images, and availability from BJS product pages.
- **Flexible URL Input**: Supports multiple URLs for batch processing, allowing users to target specific products or categories.
- **Proxy Integration**: Utilizes Apify's proxy services, including residential proxies, to bypass restrictions and ensure uninterrupted scraping.
- **High Performance**: Optimized for speed and efficiency, handling large volumes of data with minimal resource usage.
- **Error Handling**: Includes robust mechanisms to manage failed requests and retries for reliable operation.
- **Customizable Output**: Delivers data in structured JSON format, easily integrable with other tools or databases.
- **User-Friendly**: Simple configuration through the Apify platform, with no coding required for basic use.

### Input Parameters

| Parameter | Type | Required | Description | Example |
|-----------|------|----------|-------------|---------|
| Urls | array | Yes | An array of URLs pointing to BJS product pages to scrape. Each URL must be a valid HTTP or HTTPS link. | \["https://www.bjs.com/product/wellsley-farms-signature-cheese-sampler-32-oz/3000000000000162959/"] |
| proxyConfiguration | object | No | Configuration for proxy servers to hide the scraper's origin and avoid IP bans. Defaults to using Apify's residential proxies. | {"useApifyProxy": true, "apifyProxyGroups": \["RESIDENTIAL"]} |

### Example Usage

To run the Actor, provide the input parameters in JSON format. Here's an example:

```json
{
  "Urls": [
    "https://www.bjs.com/product/wellsley-farms-signature-cheese-sampler-32-oz/3000000000000162959/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

Example output in JSON format:

```json
{
  "url": "https://www.bjs.com/product/wellsley-farms-signature-cheese-sampler-32-oz/3000000000000162959/",
  "title": "Wellsley Farms Signature Cheese Sampler, 32 oz",
  "price": "$29.99",
  "description": "A delicious assortment of premium cheeses including cheddar, gouda, and brie.",
  "images": ["https://www.bjs.com/image1.jpg", "https://www.bjs.com/image2.jpg"],
  "availability": "In Stock",
  "sku": "3000000000000162959"
}
```

### Use Cases

- **Market Research**: Analyze product pricing and availability across BJS to identify trends and consumer preferences.
- **Competitive Intelligence**: Compare BJS offerings with competitors to inform pricing strategies and product development.
- **Price Monitoring**: Track price changes for specific items to optimize purchasing decisions or alert on discounts.
- **Content Aggregation**: Collect product data for building e-commerce databases or content feeds.
- **Academic Research**: Gather data on wholesale products for studies in economics or supply chain management.
- **Business Automation**: Integrate scraped data into inventory management systems for automated replenishment.

### Installation and Usage

1. Search for "Bjs Product Parser Spider" in the Apify Store.
2. Click "Try for free" or "Run".
3. Configure input parameters as described above.
4. Click "Start" to begin extraction.
5. Monitor progress in the log.
6. Export results in your preferred format (JSON, CSV, Excel).

### Output Format

The Actor outputs data in JSON format, with each item representing a scraped product. Key fields include:

- `url`: The source URL of the product.
- `title`: The product name.
- `price`: Current price as a string.
- `description`: Detailed product description.
- `images`: Array of image URLs.
- `availability`: Stock status (e.g., "In Stock").
- `sku`: Unique product identifier.

Data is structured for easy parsing and integration.

### Support

For custom/simplified outputs or bug reports, please contact:

- Email: support@getdataforme.com
- Subject line: "custom support"
- Contact form: https://getdataforme.com/contact/

We're here to help you get the most out of this Actor!

# Actor input Schema

## `Urls` (type: `array`):

The urls for the spider.

## `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.bjs.com/product/wellsley-farms-signature-cheese-sampler-32-oz/3000000000000162959/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/bjs-product-parser-spider").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 = { "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    } }

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/bjs-product-parser-spider").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 '{
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call getdataforme/bjs-product-parser-spider --silent --output-dataset

```

## MCP server setup

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

```

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/kr3ifnFvJV8doS0BW/builds/TLDihw6sZxdse0Jwm/openapi.json
