# Forever21 Product Scraper 🛍️ (`shahidirfan/forever21-product-scraper`) Actor

Scrape fashion & apparel products from Forever21 in real-time. Extract prices, images, descriptions, sizes, stock status & product URLs. Ideal for price monitoring, competitor intelligence, trend analysis & fashion datasets. Clean JSON output, ready for analytics.

- **URL**: https://apify.com/shahidirfan/forever21-product-scraper.md
- **Developed by:** [Shahid Irfan](https://apify.com/shahidirfan) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 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/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Forever21 Product Scraper

Extract Forever21 product data from collection pages, product pages, search URLs, or keywords. Collect product titles, prices, variants, availability, images, tags, descriptions, and source URLs for catalog monitoring, ecommerce research, and price analysis.

### Features

- **Collection scraping** - Collect products from Forever21 collection URLs such as `/collections/all`.
- **Product URL support** - Extract a single product with full variant and image data.
- **Keyword search** - Gather products from a keyword when you do not have a URL, using the same full product data shape for every saved record.
- **Pagination control** - Set result and page limits for quick tests or larger catalog runs.
- **Clean dataset output** - Empty and always-null values are removed from saved records.

---

### Use Cases

#### Price Monitoring
Track Forever21 prices, compare-at prices, and availability across product variants. Use repeated runs to spot markdowns, new promotions, and sold-out items.

#### Product Research
Build a structured product catalog for analysis. Review titles, categories, tags, images, descriptions, colors, sizes, and variant counts.

#### Ecommerce Benchmarking
Compare product assortments, price ranges, and category coverage against other fashion retailers. Export the dataset for dashboards or internal reporting.

#### Inventory Checks
Monitor whether products have available variants. This helps identify fast-moving items and out-of-stock patterns.

---

### Input Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `startUrl` | String | No | `https://www.forever21.com/collections/all` | Forever21 collection, product, search, or products JSON URL. |
| `keyword` | String | No | `dress` | Search keyword used when URL is empty. Keyword mode scans paginated product data until the result or page limit is reached. |
| `results_wanted` | Integer | No | `20` | Maximum number of products to save. |
| `max_pages` | Integer | No | `3` | Maximum number of collection pages to request. |
| `proxyConfiguration` | Object | No | Apify Proxy disabled | Optional proxy settings for larger runs. |

---

### Output Data

Each product can include:

| Field | Type | Description |
|-------|------|-------------|
| `product_id` | Integer | Forever21 product identifier. |
| `title` | String | Product title. |
| `handle` | String | Product handle. |
| `url` | String | Product page URL. |
| `vendor` | String | Product vendor. |
| `product_type` | String | Product category or type. |
| `tags` | Array | Product tags. |
| `available` | Boolean | Whether at least one variant is available. |
| `price` | Number | Current product price or lowest variant price. |
| `price_min` | Number | Lowest variant price. |
| `price_max` | Number | Highest variant price. |
| `compare_at_price_min` | Number | Lowest original price when available. |
| `compare_at_price_max` | Number | Highest original price when available. |
| `primary_image` | String | Main product image URL. |
| `images` | Array | Product image URLs. |
| `options` | Array | Product option names and values. |
| `variants` | Array | Variant IDs, SKUs, sizes, colors, prices, and availability. |
| `description_text` | String | Clean product description. |
| `source_url` | String | URL or keyword source used for extraction. |

---

### Usage Examples

#### Collection URL

```json
{
  "startUrl": "https://www.forever21.com/collections/all",
  "results_wanted": 50,
  "max_pages": 2
}
````

#### Single Product URL

```json
{
  "startUrl": "https://www.forever21.com/products/01287808",
  "results_wanted": 1
}
```

#### Keyword Search

```json
{
  "keyword": "dress",
  "results_wanted": 200,
  "max_pages": 10
}
```

***

### Sample Output

```json
{
  "product_id": 8001079083042,
  "title": "Poplin Babydoll Mini Dress",
  "handle": "01287808",
  "url": "https://www.forever21.com/products/01287808",
  "vendor": "Forever 21",
  "product_type": "Dresses",
  "tags": ["apparel", "dress", "f21", "mini", "women"],
  "available": true,
  "price": 21.99,
  "price_min": 21.99,
  "price_max": 21.99,
  "primary_image": "https://cdn.shopify.com/s/files/1/0702/7847/9906/files/Large-01287808-01-2_side.jpg",
  "variants_count": 5,
  "description_text": "Details A poplin mini dress featuring a square-cut neckline and back...",
  "source_url": "keyword:dress"
}
```

***

### Tips for Best Results

#### Start Small

- Use `results_wanted` around `20` for test runs.
- Increase limits after checking the dataset shape.

#### Use Specific URLs

- Collection URLs are best for larger product exports.
- Product URLs are best for detail checks on one item.
- Keyword mode is best for quick product discovery.

#### Proxy Configuration

- Use residential proxies for large recurring runs.
- Keep page limits reasonable to avoid unnecessary requests.

***

### Integrations

Connect your data with:

- **Google Sheets** - Review product lists and prices.
- **Airtable** - Build a searchable product catalog.
- **Webhooks** - Send fresh product records to your systems.
- **Make** - Automate reporting and alerts.
- **Zapier** - Trigger workflows from completed runs.

#### Export Formats

- **JSON** - For applications and APIs.
- **CSV** - For spreadsheet analysis.
- **Excel** - For business reporting.
- **XML** - For system imports.

***

### Frequently Asked Questions

#### Can I scrape a Forever21 collection URL?

Yes. Provide a collection URL such as `https://www.forever21.com/collections/all` and set your result limit.

#### Can I scrape one product only?

Yes. Provide a Forever21 product URL and set `results_wanted` to `1`.

#### Can I search by keyword?

Yes. Leave `startUrl` empty and provide a keyword such as `dress`, `jeans`, or `jacket`. Keyword mode can collect beyond the first 10 suggestions by scanning product pages up to your `max_pages` value.

#### Why do some fields not appear in every item?

Fields are included only when Forever21 provides a value. Empty and null values are removed from the dataset.

#### How many products can I collect?

Collection URLs support pagination. The final count depends on your `results_wanted`, `max_pages`, and the number of products available in the source collection.

***

### Support

For issues or feature requests, contact support through the Apify Console.

#### Resources

- [Apify Documentation](https://docs.apify.com/)
- [API Reference](https://docs.apify.com/api/v2)
- [Scheduling Runs](https://docs.apify.com/schedules)

***

### Legal Notice

This actor is designed for legitimate data collection purposes. Users are responsible for ensuring compliance with website terms of service and applicable laws. Use data responsibly and respect rate limits.

# Actor input Schema

## `startUrl` (type: `string`):

Forever21 collection, product, search, or products JSON URL. Leave empty to use Keyword.

## `keyword` (type: `string`):

Search keyword used when URL is empty or when you want quick product search results.

## `results_wanted` (type: `integer`):

Maximum number of products to save.

## `max_pages` (type: `integer`):

Maximum number of collection pages to request.

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

Optional proxy settings. Residential proxies are recommended for larger runs.

## Actor input object example

```json
{
  "startUrl": "https://www.forever21.com/collections/all",
  "keyword": "dress",
  "results_wanted": 20,
  "max_pages": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrl": "https://www.forever21.com/collections/all",
    "keyword": "dress",
    "results_wanted": 20,
    "max_pages": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("shahidirfan/forever21-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 = {
    "startUrl": "https://www.forever21.com/collections/all",
    "keyword": "dress",
    "results_wanted": 20,
    "max_pages": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("shahidirfan/forever21-product-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrl": "https://www.forever21.com/collections/all",
  "keyword": "dress",
  "results_wanted": 20,
  "max_pages": 3
}' |
apify call shahidirfan/forever21-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=shahidirfan/forever21-product-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Forever21 Product Scraper 🛍️",
        "description": "Scrape fashion & apparel products from Forever21 in real-time. Extract prices, images, descriptions, sizes, stock status & product URLs. Ideal for price monitoring, competitor intelligence, trend analysis & fashion datasets. Clean JSON output, ready for analytics.",
        "version": "0.0",
        "x-build-id": "Ay4qQ1spXmSpqLAD6"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/shahidirfan~forever21-product-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-shahidirfan-forever21-product-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/shahidirfan~forever21-product-scraper/runs": {
            "post": {
                "operationId": "runs-sync-shahidirfan-forever21-product-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/shahidirfan~forever21-product-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-shahidirfan-forever21-product-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "startUrl": {
                        "title": "URL",
                        "type": "string",
                        "description": "Forever21 collection, product, search, or products JSON URL. Leave empty to use Keyword."
                    },
                    "keyword": {
                        "title": "Keyword",
                        "type": "string",
                        "description": "Search keyword used when URL is empty or when you want quick product search results."
                    },
                    "results_wanted": {
                        "title": "Results wanted",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of products to save.",
                        "default": 20
                    },
                    "max_pages": {
                        "title": "Max pages",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of collection pages to request.",
                        "default": 3
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Optional proxy settings. Residential proxies are recommended for larger runs.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
