# Farfetch Product Scraper — Prices, Sizes & Stock (`crawloop/farfetch-scraper`) Actor

Farfetch product scraper for search keywords, listing URLs, and product URLs. Designer, price, sale price, currency, stock, and sizes on one row. HTTP — no browser.

- **URL**: https://apify.com/crawloop/farfetch-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (community)
- **Categories:** E-commerce, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Farfetch Product Scraper — Prices, Sizes & Stock

> **Disclaimer:** Unofficial tool — not affiliated with, sponsored by, or endorsed by Farfetch UK Limited or its affiliates. Data is read from publicly accessible catalog listings only. No login. You are responsible for complying with applicable law (including GDPR where personal data appears) and the site’s terms. No warranty on accuracy or availability. Provided for informational and research use.

Search by **keyword**, **listing URL**, or **product URL** and save one row per product: **designer**, **name**, **price**, **sale price**, **currency**, **stock**, and **sizes**. This **Farfetch scraper** is an **API alternative** for luxury **price monitoring**. Run it from **Python**, **Node.js**, or **MCP**; export JSON / CSV / dataset. **HTTP** only — no headless browser.

> **Crawloop Marketplace & E-commerce Suite** — Farfetch retail cards, then StockX or Depop when you want a resale price for the same designer piece.

| **Farfetch Product Scraper** ◄── *you are here* | [StockX Listings Scraper](https://apify.com/crawloop/stockx-listings-scraper) | [Depop Monitor](https://apify.com/crawloop/depop-monitor) | [Vinted Monitor](https://apify.com/crawloop/vinted-monitor) | [Poshmark Sold Listings Scraper](https://apify.com/crawloop/poshmark-sold-listings-scraper) |
| :---: | :---: | :---: | :---: | :---: |
| Designer, price, sale price, stock, sizes | StockX search cards | Depop new listings | Vinted new listings | Poshmark sold comps |

***

### When to use this Actor

- **Price checks** — current price and sale price for a designer keyword or a listing
- **Stock and sizes** — how many units the card shows, and which sizes are listed
- **Storefront currency** — `uk`, `us`, `de`, or any two-letter prefix already in the URL
- **Scheduled refresh** — same keyword, compare `price` and `stockQuantity` over time

### When not to use this Actor

- **Size-and-fit essays, composition, or recommended products** — those are not on the catalog card this Actor reads
- **Per-size unit counts** — the card exposes available size names and one stock quantity for the product
- **Resale sold prices** — use StockX, Depop, Vinted, or Poshmark Sold after this pull

***

### Key Features

- **Keyword search** — `query` or batch `queries`, scoped to women, men, or kids
- **Listing URLs** — department and category `items.aspx` paths, matched to the category tree
- **Product URLs** — `item-{id}` returns that product when the catalog still lists it
- **Sizes on the product row** — nested in `sizes`. One saved product is one row
- **Pagination + caps** — up to **20 pages** per query, or stop at `maxItems`
- **HTTP** — Chrome TLS impersonation, 256 MB. Direct connection; proxy is optional

***

### Input

| Field | Required | Default | Description |
| :--- | :--- | :--- | :--- |
| `query` | No | `gucci` | Keyword |
| `queries` | No | — | Extra keywords |
| `startUrls` | No | — | Listing or product URLs |
| `department` | No | `women` | Department for keywords |
| `country` | No | `uk` | Storefront for keywords. A URL prefix wins |
| `maxPages` | No | `1` | Pages per keyword or listing (1–20) |
| `maxItems` | No | `40` | Cap per keyword or URL |
| `deduplicateIds` | No | `true` | Keep each `productId` once |
| `maxConcurrency` | No | `1` | Parallel keywords or URLs (1–2) |
| `proxyConfiguration` | No | off | Leave off unless a run is blocked |

```json
{
  "query": "gucci",
  "department": "women",
  "country": "uk",
  "maxItems": 40,
  "maxPages": 1
}
```

Listing example:

```json
{
  "startUrls": [
    { "url": "https://www.farfetch.com/uk/shopping/women/clothing-1/items.aspx" }
  ],
  "maxItems": 20
}
```

***

### Output

One dataset row per product.

| Field | Description |
| :--- | :--- |
| `productId` | Farfetch product id |
| `designer` | Designer name |
| `name` | Product name |
| `price` | Current price |
| `listPrice` | Price before the sale, when shown |
| `salePrice` | Current price when the card is on sale |
| `currency` | ISO code for the storefront |
| `inStock` | True when `stockQuantity` is above zero |
| `stockQuantity` | Units on the listing card |
| `sizes` | `{ id, name }` for each listed size |
| `sizeCount` | Number of sizes |
| `imageUrl` | First image |
| `url` | Product URL on the same storefront |
| `storefront` | Two-letter storefront |
| `searchQuery` | Keyword or URL that produced the row |
| `scrapedAt` | UTC timestamp |

```json
{
  "source": "farfetch",
  "searchQuery": "gucci",
  "page": 1,
  "position": 1,
  "productId": "15359979",
  "designer": "Gucci",
  "name": "medium Dionysus GG shoulder bag",
  "price": 2400,
  "listPrice": 2400,
  "salePrice": null,
  "currency": "GBP",
  "inStock": true,
  "stockQuantity": 7,
  "imageUrl": "https://cdn-images.farfetch-contents.com/15/35/99/79/15359979_480.jpg",
  "url": "https://www.farfetch.com/uk/shopping/women/gucci-medium-dionysus-gg-shoulder-bag-item-15359979.aspx",
  "sizes": [{ "id": "OS", "name": "OS" }],
  "sizeCount": 1,
  "storefront": "uk",
  "scrapedAt": "2026-09-29T14:00:00Z"
}
```

***

### Use cases

- **Assortment pull** — a designer keyword, with price and stock, capped by `maxItems`
- **Category watch** — a clothing or shoes listing URL, refreshed on a schedule
- **One SKU** — paste a product URL and keep the row that matches that id
- **Multi-market** — the same keyword on `uk` and `us` in two runs

### Suite next step

After a Farfetch retail price, check a resale card with [StockX Listings Scraper](https://apify.com/crawloop/stockx-listings-scraper) or new listings on [Depop Monitor](https://apify.com/crawloop/depop-monitor).

***

### Integration examples

Replace `YOUR_TOKEN` and the actor id after you open the run.

#### Node.js

```javascript
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: "YOUR_TOKEN" });
const run = await client.actor("crawloop/farfetch-scraper").call({
  query: "gucci",
  department: "women",
  country: "uk",
  maxItems: 40,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("crawloop/farfetch-scraper").call(run_input={
    "query": "gucci",
    "department": "women",
    "country": "uk",
    "maxItems": 40,
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)
```

#### cURL

```bash
curl "https://api.apify.com/v2/acts/crawloop~farfetch-scraper/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d "{\"query\":\"gucci\",\"department\":\"women\",\"country\":\"uk\",\"maxItems\":40}"
```

***

### MCP and AI assistants

Use this Actor from AI tools via [Apify MCP](https://docs.apify.com/platform/integrations/mcp).
Connect your Apify account, then call this Actor by its Store name `crawloop/farfetch-scraper`.

Example prompts:

- "Run Farfetch Product Scraper for gucci in the UK womenswear department and return the top 20 rows as JSON"
- "Scrape the Farfetch clothing listing I paste and summarize designer, price, and stock"
- "Chain Farfetch Product Scraper then StockX Listings Scraper for the same designer name"

***

### FAQ

**Does a product URL return every size as its own row?**
No. Sizes stay on the product row. One saved product is one row.

**Which currency do I get?**
The storefront in the URL, or `country` for a keyword. `uk` is GBP. `us` is USD.

**What if the listing path is not in the category tree?**
That URL saves nothing. Department roots and the categories the catalog facet lists are supported.

**Do I need a proxy?**
No. Leave `proxyConfiguration` off unless a run comes back empty because the session was blocked.

# Actor input Schema

## `query` (type: `string`):

Keyword, for example gucci bag.

## `queries` (type: `array`):

Optional extra keywords. Each query uses the same page cap and department.

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

Listing URLs (items.aspx) or product URLs (item-ID). The storefront prefix in the URL sets the currency.

## `department` (type: `string`):

Department for keywords. Listing and product URLs use the department in the path.

## `country` (type: `string`):

Two-letter Farfetch storefront for keywords, for example uk, us, or de. A URL prefix overrides this.

## `maxPages` (type: `integer`):

Catalog pages per keyword or listing (1–20). Stops earlier when maxItems is reached.

## `maxItems` (type: `integer`):

Cap on products saved per keyword or URL. A product URL saves at most one row.

## `deduplicateIds` (type: `boolean`):

Save each productId once across the whole run.

## `maxConcurrency` (type: `integer`):

How many keywords or URLs to fetch in parallel (1–2).

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

Leave proxy off. The catalog gateway works over direct HTTP. Turn on Apify Proxy only if a run is blocked.

## Actor input object example

```json
{
  "query": "gucci",
  "department": "women",
  "country": "uk",
  "maxPages": 1,
  "maxItems": 40,
  "deduplicateIds": true,
  "maxConcurrency": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Default dataset items.

# 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 = {
    "query": "gucci",
    "maxItems": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/farfetch-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 = {
    "query": "gucci",
    "maxItems": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("crawloop/farfetch-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 '{
  "query": "gucci",
  "maxItems": 40
}' |
apify call crawloop/farfetch-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawloop/farfetch-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/ZjMrszzgKXxGidO2v/builds/egnEaz4ZU6Wi6xX3I/openapi.json
