# Nike Product Tracker (`runtime/nike-product-tracker`) Actor

Nike Pricing Scraper is an Apify Actor that scrapes product data from Nike, including prices, discounts, images, and links.

- **URL**: https://apify.com/runtime/nike-product-tracker.md
- **Developed by:** [scraping automation](https://apify.com/runtime) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 9 total users, 1 monthly users, 0.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

## 🏀 Nike Product Tracker

**Nike Product Tracker** is an advanced Apify Actor that scrapes comprehensive product data from Nike, including prices, discounts, images, links, and colorways. Optimized for Make.com integration with real-time webhooks.

### 🚀 Features

- ✅ **Comprehensive product data extraction**: titles, subtitles, current & original prices, discounts (%), images, product links, and available colorways
- ✅ **Advanced anti-detection system** using Puppeteer Stealth with residential proxies
- ✅ **Smart CAPTCHA & location handling** with automatic bypass strategies
- ✅ **Category navigation** support for New, Men, Women, and Kids products
- ✅ **Optimized infinite scrolling** that mimics human behavior
- ✅ **Pagination & max product limit** for efficient data collection
- ✅ **Make.com webhook integration** for real-time data delivery
- ✅ **Robust error handling** with retry mechanisms and fallback strategies
- ✅ **Stores data in Apify Dataset** for easy export and integration

### 📥 Input Parameters

The Actor accepts the following input parameters:

| Parameter       | Type      | Description                                                    | Default Value                      |
|---------------|---------|----------------------------------------------------------------|----------------------------------|
| `startUrls`   | `array` | Array of starting URLs for scraping Nike products.            | `[{"url": "https://www.nike.com"}]` |
| `category`    | `string` | Product category to scrape: "New", "Men", "Women", "Kids"     | `"New"`                           |
| `products_max` | `integer` | Maximum number of products to scrape before stopping.         | `50`                             |
| `pagination_max` | `integer` | Maximum number of pages to scrape.                            | `3`                              |
| `proxyConfiguration` | `object` | Proxy settings (recommended: Apify residential proxies)       | `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}` |
| `make_webhook_enabled` | `boolean` | Enable Make.com webhook integration                           | `false`                          |
| `make_webhook_url` | `string` | Make.com webhook URL for real-time data delivery              | `""`                             |

### 📤 Output

The Actor outputs a comprehensive array of product objects in JSON format:

```json
[
  {
    "title": "Nike Air Force 1 '07",
    "subtitle": "Men's Shoes",
    "current_price": "115.00",
    "old_price": "N/A",
    "discount": "0",
    "image": "https://static.nike.com/a/images/c_limit,w_592,f_auto/t_product_v1/...",
    "link": "https://www.nike.com/t/air-force-1-07-mens-shoes-jBrhbr/CW2288-111",
    "colorways": 4
  },
  {
    "title": "Nike Dunk Low Retro",
    "subtitle": "Men's Shoes",
    "current_price": "96.97",
    "old_price": "120.00",
    "discount": "19",
    "image": "https://static.nike.com/a/images/c_limit,w_592,f_auto/t_product_v1/...",
    "link": "https://www.nike.com/t/dunk-low-retro-mens-shoes-5FQWGR/DD1391-100",
    "colorways": 10
  }
]
```

### 🔧 Technical Features

- **Puppeteer Stealth**: Advanced bot detection prevention
- **Residential Proxies**: IP rotation to avoid blocking
- **Smart Navigation**: Automatic handling of location selection pages
- **Error Recovery**: Robust retry mechanisms for failed requests
- **Data Validation**: Ensures complete product information extraction
- **Performance Optimization**: Efficient memory and CPU usage

### 🌐 Make.com Integration

When enabled, the Actor sends real-time data to your Make.com scenario:

- **Instant data delivery** as products are scraped
- **Webhook notifications** for monitoring and automation
- **Structured JSON payloads** ready for workflow processing
- **Error handling** with detailed status reporting

### 📊 Usage Examples

#### Basic Scraping

```json
{
  "startUrls": [{"url": "https://www.nike.com"}],
  "category": "New",
  "products_max": 50,
  "pagination_max": 3
}
```

#### Category-Specific Scraping

```json
{
  "startUrls": [{"url": "https://www.nike.com/en/w/new-arrivals"}],
  "category": "Women",
  "products_max": 100,
  "pagination_max": 5
}
```

#### With Make.com Integration

```json
{
  "startUrls": [{"url": "https://www.nike.com"}],
  "category": "Men",
  "products_max": 75,
  "pagination_max": 4,
  "make_webhook_enabled": true,
  "make_webhook_url": "https://hook.eu1.make.com/your-webhook-url"
}
```

### 🚨 Legal Disclaimer

This project is intended for educational and research purposes only. The use of this Actor must comply with Nike's Terms of Service and robots.txt policies.

**You are responsible for ensuring your use case does not violate Nike's website terms.**

- Nike's content and trademarks are the property of Nike, Inc.
- Avoid aggressive scraping that could negatively impact Nike's infrastructure
- If you intend to use this Actor for commercial purposes, consider reaching out to Nike's API team for official data access
- Use residential proxies and reasonable delays to minimize impact on Nike's servers

### 🔄 Recent Updates

- ✅ **Fixed critical syntax errors** for stable operation
- ✅ **Enhanced product data extraction** with improved CSS selectors
- ✅ **Added comprehensive error handling** and retry mechanisms
- ✅ **Implemented smart CAPTCHA detection** and bypass strategies
- ✅ **Optimized for Make.com integration** with real-time webhooks
- ✅ **Added category navigation** support for targeted scraping

# Actor input Schema

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

URLs to start scraping from.

## `category` (type: `string`):

Choose the Nike category to scrape products from: New, Men, Women, Kids

## `products_max` (type: `integer`):

The maximum number of products to scrape before stopping infinite scrolling.

## `pagination_max` (type: `integer`):

The maximum number of pages to scrape before stopping.

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

Configure the proxy settings for scraping (Use Apify proxies to avoid blocking).

## `make_webhook_enabled` (type: `boolean`):

Enable sending data to Make.com webhook for automation workflows.

## `make_webhook_url` (type: `string`):

The webhook URL from your Make.com scenario to receive scraped data in real-time. Required when Make.com webhook is enabled.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.nike.com"
    }
  ],
  "category": "New",
  "products_max": 50,
  "pagination_max": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "make_webhook_enabled": false,
  "make_webhook_url": ""
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.nike.com"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("runtime/nike-product-tracker").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 = {
    "startUrls": [{ "url": "https://www.nike.com" }],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("runtime/nike-product-tracker").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 '{
  "startUrls": [
    {
      "url": "https://www.nike.com"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call runtime/nike-product-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,runtime/nike-product-tracker"
        }
    }
}
```

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/5vEq1HNOAzb5VstQS/builds/RCLeXHjCge371zCL5/openapi.json
