# Grailed Product Scraper 👕 (`shahidirfan/grailed-product-scraper`) Actor

Extract product listings, pricing, descriptions, and images from Grailed. Scrape streetwear inventory, brand details, and market data at scale. Perfect for competitive analysis, price monitoring, and trend research. Supports pagination and handles dynamic content seamlessly.

- **URL**: https://apify.com/shahidirfan/grailed-product-scraper.md
- **Developed by:** [Shahid Irfan](https://apify.com/shahidirfan) (community)
- **Categories:** E-commerce, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN 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

## Grailed Product Scraper

Extract rich Grailed listing data for fashion research, resale tracking, pricing analysis, and inventory monitoring. This actor collects structured product records from search, brand, and category pages with scalable pagination and clean dataset output.

---

### Features

- **Search, Brand, and Category Support** — Run with a Grailed URL or a keyword.
- **Keyword Priority Logic** — If both URL and keyword are provided, keyword always wins.
- **Paginated Collection** — Collect exactly the number of items you request.
- **Clean Output Records** — Null and empty values are removed from every dataset item.
- **Seller and Pricing Context** — Includes listing, pricing, seller, and shipping-related fields.

---

### Use Cases

#### Resale Market Intelligence
Track current listing prices, seller quality, and listing freshness to understand demand by brand or category.

#### Competitive Pricing Analysis
Build historical datasets for keyword-based products and compare price movement over time.

#### Sourcing and Curation
Find listings by category, size, condition, and designer to support sourcing decisions.

#### Catalog Monitoring
Monitor changes in newly bumped listings across specific search terms or URL paths.

---

### Input Parameters

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `url` | String | No | `"https://www.grailed.com/shop?query=shirt"` | Grailed page URL (search, brand, or category). |
| `keyword` | String | No | `"shirt"` | Search term. If present, it overrides URL-derived terms. |
| `results_wanted` | Integer | No | `20` | Maximum number of listings to save. |
| `max_pages` | Integer | No | `5` | Maximum number of result pages to process. |
| `proxyConfiguration` | Object | No | Apify Residential Proxy | Proxy settings for reliability. |

---

### Output Data

Each dataset item contains rich listing metadata. Common fields include:

| Field | Type | Description |
|---|---|---|
| `listing_id` | String | Grailed listing identifier. |
| `title` | String | Listing title. |
| `url` | String | Direct listing URL. |
| `designer_names` | String | Designer label(s) for the listing. |
| `price` | Number | Listing price value. |
| `size` | String | Item size. |
| `condition` | String | Condition tag. |
| `category_path` | String | Category path classification. |
| `location` | String | Seller location. |
| `photo_url` | String | Main listing image URL. |
| `seller_username` | String | Seller username. |
| `seller_rating_average` | Number | Seller average rating. |
| `seller_rating_count` | Number | Total seller ratings. |
| `sold` | Boolean | Sold state. |
| `created_at` | String | Listing creation timestamp. |
| `bumped_at` | String | Latest bump timestamp. |
| `input_keyword` | String | Effective keyword used in run. |
| `input_url` | String | URL used in run. |
| `page` | Number | Source result page number. |

---

### Usage Examples

#### Keyword Search

```json
{
	"keyword": "shirt",
	"results_wanted": 20,
	"max_pages": 5
}
````

#### URL Search Page

```json
{
	"url": "https://www.grailed.com/shop?query=hoodie",
	"results_wanted": 30,
	"max_pages": 6
}
```

#### Brand URL Pattern

```json
{
	"url": "https://www.grailed.com/designers/nike",
	"results_wanted": 25,
	"max_pages": 5
}
```

#### Category URL Pattern

```json
{
	"url": "https://www.grailed.com/categories/short-sleeve-shirts",
	"results_wanted": 25,
	"max_pages": 5
}
```

***

### Sample Output

```json
{
	"listing_id": 95470037,
	"title": "Vintage Oasis Box Logo Band T-shirt Black",
	"url": "https://www.grailed.com/listings/95470037",
	"designer_names": "Band Tees × Vintage",
	"price": 38,
	"size": "xl",
	"condition": "is_gently_used",
	"category_path": "tops.short_sleeve_shirts",
	"location": "Europe",
	"photo_url": "https://media-assets.grailed.com/prd/listing/temp/55e89d483c5045908063f29a1894f556",
	"seller_username": "soslangodmode",
	"seller_rating_average": 5,
	"seller_rating_count": 41,
	"sold": false,
	"created_at": "2026-04-16T08:17:59.046Z",
	"bumped_at": "2026-04-16T08:17:59.046Z",
	"input_keyword": "shirt",
	"input_url": "https://www.grailed.com/shop?query=shirt",
	"page": 1
}
```

***

### Tips for Best Results

#### Start Small

Use `results_wanted: 20` for quick validation, then scale up.

#### Set Page Caps

Keep `max_pages` aligned with your target volume to reduce unnecessary calls.

#### Use Proxies for Stability

Residential proxies are recommended for consistent large-volume collection.

***

### Integrations

- **Google Sheets** — Build sortable trend tables.
- **Airtable** — Create searchable listing dashboards.
- **Make** — Trigger automated workflows from fresh data.
- **Zapier** — Send new listings to downstream tools.
- **Webhooks** — Push results to custom services.

#### Export Formats

- **JSON** — Structured API-friendly output.
- **CSV** — Spreadsheet and BI workflows.
- **Excel** — Reporting-ready exports.
- **XML** — Legacy system integrations.

***

### Frequently Asked Questions

#### Does keyword override URL?

Yes. When both are provided, the actor uses the keyword value.

#### Can I scrape brand and category URLs?

Yes. Brand, category, and search URLs are supported.

#### Why are some fields missing?

The actor removes null and empty values to keep output clean.

#### Can I collect more than one page?

Yes. Increase `max_pages` and `results_wanted`.

#### Is proxy configuration required?

Not always, but it is recommended for reliable production runs.

***

### Support

Use Apify Console issue reporting for bug reports and feature requests.

***

### Legal Notice

This actor is intended for legitimate data collection and analysis workflows. Users are responsible for complying with applicable laws and platform terms.

# Actor input Schema

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

Grailed URL to scrape (search, brand, or category). Used when keyword is not provided.

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

Search keyword. If provided, this always takes priority over URL-derived search terms.

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

Maximum number of listings to save.

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

Safety cap for paginated API pages.

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

Proxy settings for reliability.

## Actor input object example

```json
{
  "url": "https://www.grailed.com/shop?query=shirt",
  "keyword": "shirt",
  "results_wanted": 20,
  "max_pages": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "url": "https://www.grailed.com/shop?query=shirt",
    "keyword": "shirt",
    "results_wanted": 20,
    "max_pages": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("shahidirfan/grailed-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 = {
    "url": "https://www.grailed.com/shop?query=shirt",
    "keyword": "shirt",
    "results_wanted": 20,
    "max_pages": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("shahidirfan/grailed-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 '{
  "url": "https://www.grailed.com/shop?query=shirt",
  "keyword": "shirt",
  "results_wanted": 20,
  "max_pages": 5
}' |
apify call shahidirfan/grailed-product-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Grailed Product Scraper 👕",
        "description": "Extract product listings, pricing, descriptions, and images from Grailed. Scrape streetwear inventory, brand details, and market data at scale. Perfect for competitive analysis, price monitoring, and trend research. Supports pagination and handles dynamic content seamlessly.",
        "version": "0.0",
        "x-build-id": "g1C0nsQ4OoyL8nVPt"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/shahidirfan~grailed-product-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-shahidirfan-grailed-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~grailed-product-scraper/runs": {
            "post": {
                "operationId": "runs-sync-shahidirfan-grailed-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~grailed-product-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-shahidirfan-grailed-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": {
                    "url": {
                        "title": "URL",
                        "type": "string",
                        "description": "Grailed URL to scrape (search, brand, or category). Used when keyword is not provided."
                    },
                    "keyword": {
                        "title": "Keyword",
                        "type": "string",
                        "description": "Search keyword. If provided, this always takes priority over URL-derived search terms."
                    },
                    "results_wanted": {
                        "title": "Results wanted",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of listings to save.",
                        "default": 20
                    },
                    "max_pages": {
                        "title": "Max pages",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Safety cap for paginated API pages.",
                        "default": 5
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy settings for reliability.",
                        "default": {
                            "useApifyProxy": false
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
