# Farfetch Scraper (Pay Per Result) (`123webdata/farfetch-scraper`) Actor

A scraper for Farfetch to extract product catalog data, prices, and details from both category and product pages. Ideal for AI training, pricing analytics, and e-commerce integrations. Pricing: $0.005/result. 10 results on free trial.

- **URL**: https://apify.com/123webdata/farfetch-scraper.md
- **Developed by:** [123 Webdata](https://apify.com/123webdata) (community)
- **Categories:** E-commerce, AI, Integrations
- **Features:** Limited permissions
- **Stats:** 56 total users, 1 monthly users, 97.4% runs succeeded, 0 bookmarks
- **User rating**: 4.02 out of 5 stars

## Pricing

$5.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?

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.com Scraper

This actor scrapes product data from [Farfetch.com](https://www.farfetch.com/), a global luxury fashion online marketplace.

### Issues and feature requests

If you encounter any issue, or you'd like us to change or add anything, please open an issue in the actor page or write to us directly at hello@123webdata.com

For custom requirements, you can also reach out to us by [filling this form](https://www.123webdata.com/scrape_farfetch_com/#contact).

### Output Example (simplified)

The actor provides a convenient overview mode that displays the most important product information in a tabular format. Here's an example of how the data looks in the overview mode:

| Image | Product URL | Product Name | Current Price | Regular Price | Currency | Description | Scraped At |
|-------|-------|-------|-------|-------|-------|-------|-------|
| <img src="https://cdn-images.farfetch-contents.com/31/12/32/04/31123204_60433956_1000.jpg" style="max-width: 100px; max-height: 100px; object-fit: contain;"> | https://www.farfetch.com/pk/shopping/women/mach-mach-embellished-leather-ballet-flats-item-31123204.aspx | embellished leather ballet ... | 748.00 | 0 | USD | New Season  MACH & MACH  em... | 2025-07-21 |
| <img src="https://cdn-images.farfetch-contents.com/31/08/24/01/31082401_60162231_1000.jpg" style="max-width: 100px; max-height: 100px; object-fit: contain;"> | https://www.farfetch.com/pk/shopping/women/miu-miu-suede-tassel-loafers-item-31082401.aspx?storeid=13852 | Miu Miu suede tassel loafers | 1210.00 | 0 | USD | New Season  Miu Miu  suede ... | 2025-07-21 |
| <img src="https://cdn-images.farfetch-contents.com/30/93/68/73/30936873_59871610_1000.jpg" style="max-width: 100px; max-height: 100px; object-fit: contain;"> | https://www.farfetch.com/pk/shopping/women/prada-65mm-buckle-strap-platform-sandals-item-30936873.aspx?storeid=12113 | 65mm buckle-strap platform ... | 1420.00 | 0 | USD | New Season  Prada  65mm buc... | 2025-07-21 |

### Features

- Scrapes detailed product information from Farfetch.com product pages
- Extracts data from both individual product URLs and category pages
- Follows pagination links on category pages (optional)
- Supports various product categories with specific fields like brand, price, and category

### Input

The actor accepts the following input parameters:

| Field | Type | Description |
|-------|------|-------------|
| `productUrls` | array | List of Farfetch.com product URLs to scrape |
| `categoryUrls` | array | List of Farfetch.com category URLs to scrape |
| `maxResultsPerScrape` | integer | Maximum number of results to extract (default: 1000) |
| `usePagination` | boolean | Whether to follow pagination links on category pages (default: true) |

### Output Example (full)

The actor outputs data in the following structure:

```json
{
	"url": "https://www.farfetch.com/pk/shopping/women/mach-mach-embellished-leather-ballet-flats-item-31123204.aspx",
	"name": "embellished leather ballet flats",
	"price": 748,
	"regular_price": 0,
	"currency": "USD",
	"in_stock": true,
	"sku": "31123204",
	"mpn": null,
	"gtin": null,
	"brand": "MACH & MACH",
	"breadcrumbs": [
		"Women Home",
		"MACH & MACH",
		"Shoes",
		"Ballet Flats"
	],
	"main_image": "https://cdn-images.farfetch-contents.com/31/12/32/04/31123204_60433956_1000.jpg",
	"images": [
		"https://cdn-images.farfetch-contents.com/31/12/32/04/31123204_60433960_1000.jpg",
		"https://cdn-images.farfetch-contents.com/31/12/32/04/31123204_60433956_1000.jpg"
	],
	"description": "New Season\n\nMACH & MACH\n\nembellished leather ballet flats\n\nMade in Italy\n\nHighlights\n\nblack\ncut-out design\nall-over embellishments\nalmond toe\nbuckle closure\n\nComposition\n\nLining: Kid Leather 100%\n\nSole: Calf Leather 100%\n\nOuter: Lamb Skin 100%\n\nFARFETCH ID: 31123204",
	"color": null,
	"size": "App-only: use code NC10FF at checkout",
	"material": "Kid Leather 100%",
	"style": null,
	"features": [],
	"attributes": {
		"farfetch id": "31123204",
		"lining": "Kid Leather 100%",
		"outer": "Lamb Skin 100%",
		"sole": "Calf Leather 100%"
	},
	"rating_value": null,
	"review_count": null,
	"canonical_url": "https://www.farfetch.com/pk/shopping/women/mach-mach-embellished-leather-ballet-flats-item-31123204.aspx",
	"scraped_at": "2025-07-21T12:11:01.969Z"
}
```

### Use Cases

- Monitoring luxury fashion product prices across global markets
- Analyzing product availability and trends
- Tracking price changes over time
- Market research and competitive analysis in the luxury fashion industry

### You might also like

- [Our other e-commerce scrapers](https://www.123webdata.com/categories/ecommerce/)
- [Our other fashion store and resale scrapers](https://www.123webdata.com/categories/fashion/)
- [Zalando Scraper](https://apify.com/123webdata/zalando-scraper)
- [Zara Scraper](https://apify.com/123webdata/zara-product-scraper)
- [Chrono24 Scraper](https://apify.com/123webdata/chrono24-scraper)

# Actor input Schema

## `productUrls` (type: `array`):

List of Farfetch.com product URLs to scrape.

## `categoryUrls` (type: `array`):

List of Farfetch.com category URLs to scrape. The scraper will extract all product URLs from these pages.

## `maxResultsPerScrape` (type: `integer`):

Maximum number of results to extract. Default is 20.

## `usePagination` (type: `boolean`):

Whether to follow pagination links on category pages.

## Actor input object example

```json
{
  "productUrls": [
    "https://www.farfetch.com/pk/shopping/women/mach-mach-crystal-embellished-lattice-ballet-flats-item-31076714.aspx?storeid=9026"
  ],
  "categoryUrls": [
    "https://www.farfetch.com/pk/shopping/women/shoes-1/items.aspx"
  ],
  "maxResultsPerScrape": 20,
  "usePagination": true
}
```

# 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 = {
    "productUrls": [
        "https://www.farfetch.com/pk/shopping/women/mach-mach-crystal-embellished-lattice-ballet-flats-item-31076714.aspx?storeid=9026"
    ],
    "categoryUrls": [
        "https://www.farfetch.com/pk/shopping/women/shoes-1/items.aspx"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("123webdata/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 = {
    "productUrls": ["https://www.farfetch.com/pk/shopping/women/mach-mach-crystal-embellished-lattice-ballet-flats-item-31076714.aspx?storeid=9026"],
    "categoryUrls": ["https://www.farfetch.com/pk/shopping/women/shoes-1/items.aspx"],
}

# Run the Actor and wait for it to finish
run = client.actor("123webdata/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 '{
  "productUrls": [
    "https://www.farfetch.com/pk/shopping/women/mach-mach-crystal-embellished-lattice-ballet-flats-item-31076714.aspx?storeid=9026"
  ],
  "categoryUrls": [
    "https://www.farfetch.com/pk/shopping/women/shoes-1/items.aspx"
  ]
}' |
apify call 123webdata/farfetch-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,123webdata/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/Hqhfsrb21YYIRf89c/builds/46nJbxV16BEdkufOq/openapi.json
