# Farfetch Scraper (`autofacts/farfetch`) Actor

Farfetch web scraper to crawl product information including price and sale price, color, and images.

- **URL**: https://apify.com/autofacts/farfetch.md
- **Developed by:** [Richard Feng](https://apify.com/autofacts) (community)
- **Categories:** Developer tools, E-commerce
- **Stats:** 273 total users, 1 monthly users, 100.0% runs succeeded, 10 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$30.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

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

## Farfetch Scraper

**Farfetch Scraper** provide a way to crawl product details of site Farfetch.

For changes, please check [CHANGELOG](CHANGELOG.md).

### Features

1. Support fetch products of category;
2. Support fetch product detail with prices,descriptions,images and sku info;

> The price values are multiplied by 100 to avoiding floating point calculations.

### Input Parameters

The input of this scraper shoule be JSON formated. Fields are:

| Field                | Type    | Default | Description                                                                                           |
| :------------------- | :------ | :------ | :-----------------------------------------------------------------------------------------------------|
| startUrls            | Array   |         | Start URLs of Farfetch site to start the scraper. Category page, product page urls are all supported. |
| maxRequestsPerCrawl  | Integer | 100     | Maximum number of requests that can be made by this crawler, 0 to ignore.                            |
| proxy                | Object  |         | Select proxies to be used by your crawler.                                                            |
| maxConcurrency       | Integer | 5       | Actor running max concurrency (1–100), which helps you to not getting blocked.                        |
| withSizeFit          | Boolean | false   | Whether to fetch variation size and fit info which will slow down the scraper.                        |
| withRecommends       | Boolean | false   | Whether to fetch recommended products. With 90 recommends at most.                                    |

### Supported URL types

* https://www.farfetch.com/shopping/women/dresses-1/items.aspx
* https://www.farfetch.com/shopping/women/isa-boulder-map-crochet-mesh-dress-item-17650965.aspx?storeid=12841

When fetch with default url (eg. `https://www.farfetch.com/shopping/women/clothing-1/items.aspx`), it will redirect to default currency according to the proxy location. To support fetch with different lang and currency, use urls as below:

| URL                                                                         | Description                                  |
|:----------------------------------------------------------------------------|:---------------------------------------------|
| https://www.farfetch.com/shopping/women/clothing-1/items.aspx               | fetch items with lang en-US and currency according to proxy locaion |
| https://www.farfetch.com/jp/shopping/women/clothing-1/items.aspx?lang=ja-JP | fetch items with currency JPY and lang ja-JP |
| https://www.farfetch.com/cn/shopping/women/clothing-1/items.aspx?lang=zh-CN | fetch items with currency CNY and lang zh-CN |

### Data storage

Farfetch scraper stores the product data to default data set in JSON format. Below is a example with all options enabled:

```json
{
	"source": {
		"id": "28543291",
		"crawlUrl": "https://www.farfetch.com/shopping/women/jacquemus-100mm-les-doubles-mules-item-28543291.aspx?storeid=9155",
		"canonicalUrl": "https://www.farfetch.com/shopping/women/jacquemus-100mm-les-doubles-mules-item-28543291.aspx",
		"retailer": "farfetch",
		"currency": "USD"
	},
	"brand": "Jacquemus",
	"title": "100mm Les Doubles mules",
	"description": "100mm Les Doubles mules",
	"details": {
		"highlights": [
			[
				[
					"camel brown",
					"single toe strap",
					"square open toe",
					"100mm sculpted heel"
				]
			]
		],
		"composition": [
			{
				"name": "Outer",
				"materials": [
					{
						"name": "Calf Suede",
						"value": "100%"
					}
				]
			},
			{
				"name": "Sole",
				"materials": [
					{
						"name": "Calf Leather",
						"value": "100%"
					}
				]
			},
			{
				"name": "Lining",
				"materials": [
					{
						"name": "Calf Leather",
						"value": "100%"
					}
				]
			}
		],
		"short_desc": "100mm Les Doubles mules",
		"full_desc": null,
		"farfetchID": "28543291",
		"brandStyleID": "243FO1604355",
		"madeIn": {
			"origin": "Made in Italy",
			"disclaimers": null
		}
	},
	"categories": [
		"Women",
		"Shoes",
		"Mules"
	],
	"options": [
		{
			"values": [
				{
					"id": "17",
					"name": "35"
				},
				{
					"id": "18",
					"name": "36"
				},
				{
					"id": "19",
					"name": "37"
				},
				{
					"id": "20",
					"name": "38"
				},
				{
					"id": "21",
					"name": "39"
				},
				{
					"id": "22",
					"name": "40"
				},
				{
					"id": "23",
					"name": "41"
				}
			],
			"type": "Size"
		}
	],
	"variants": [
		{
			"id": "e5701adf-85fd-4a68-ae2c-8136afe01e3b",
			"options": [
				"18"
			],
			"price": {
				"current": 115000,
				"currentFormatted": "$1,150",
				"original": 0,
				"stockCount": 3,
				"stockStatus": "InStock"
			},
			"label": "New Season",
			"medias": [
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846182_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 1
				},
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846188_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 2
				},
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846173_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 3
				}
			],
			"extraInfo": {
				"fit": null,
				"measurements": null
			}
		},
		{
			"id": "b22bead0-e92a-4225-9b8f-f7ec6b03e7cc",
			"options": [
				"19"
			],
			"price": {
				"current": 115000,
				"currentFormatted": "$1,150",
				"original": 0,
				"stockCount": 4,
				"stockStatus": "InStock"
			},
			"label": "New Season",
			"medias": [
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846182_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 1
				},
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846188_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 2
				},
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846173_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 3
				}
			],
			"extraInfo": {
				"fit": null,
				"measurements": [
					{
						"type": "WEIGHT",
						"name": "HEEL",
						"imperial": {
							"raw": 3.93,
							"formatted": "3.93 in",
							"__typename": "GenericValue"
						},
						"metric": {
							"raw": 10,
							"formatted": "10 cm",
							"__typename": "GenericValue"
						},
						"__typename": "Measurement"
					}
				]
			}
		},
		{
			"id": "5d9b338c-52b5-4304-a106-acef4d92c78f",
			"options": [
				"20"
			],
			"price": {
				"current": 115000,
				"currentFormatted": "$1,150",
				"original": 0,
				"stockCount": 3,
				"stockStatus": "InStock"
			},
			"label": "New Season",
			"medias": [
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846182_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 1
				},
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846188_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 2
				},
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846173_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 3
				}
			],
			"extraInfo": {
				"fit": null,
				"measurements": null
			}
		},
		{
			"id": "823e16a3-e665-4dc2-bcec-75a75463f7ec",
			"options": [
				"21"
			],
			"price": {
				"current": 115100,
				"currentFormatted": "$1,151",
				"original": 0,
				"stockCount": 2,
				"stockStatus": "InStock"
			},
			"label": "New Season",
			"medias": [
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846182_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 1
				},
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846188_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 2
				},
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846173_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 3
				}
			],
			"extraInfo": {
				"fit": null,
				"measurements": null
			}
		},
		{
			"id": "d7f31b8c-16c5-43a2-aa8d-0017ffd8bf99",
			"options": [
				"22"
			],
			"price": {
				"current": 115000,
				"currentFormatted": "$1,150",
				"original": 0,
				"stockCount": 4,
				"stockStatus": "InStock"
			},
			"label": "New Season",
			"medias": [
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846182_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 1
				},
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846188_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 2
				},
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846173_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 3
				}
			],
			"extraInfo": {
				"fit": null,
				"measurements": null
			}
		},
		{
			"id": "9823531b-f1fe-44d3-a91d-26b65cd0a4bc",
			"options": [
				"23"
			],
			"price": {
				"current": 115000,
				"currentFormatted": "$1,150",
				"original": 0,
				"stockCount": 1,
				"stockStatus": "InStock"
			},
			"label": "New Season",
			"medias": [
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846182_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 1
				},
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846188_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 2
				},
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846173_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 3
				}
			],
			"extraInfo": {
				"fit": null,
				"measurements": null
			}
		},
		{
			"id": "2386cc67-25c5-41c9-bccd-2a9d4e970a57",
			"options": [
				"17"
			],
			"price": {
				"current": 115000,
				"currentFormatted": "$1,150",
				"original": 0,
				"stockCount": 0,
				"stockStatus": "OutOfStock"
			},
			"label": "New Season",
			"medias": [
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846182_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 1
				},
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846188_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 2
				},
				{
					"type": "Image",
					"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846173_1000.jpg",
					"alt": "Jacquemus 100mm Les Doubles mules",
					"index": 3
				}
			],
			"extraInfo": {
				"fit": null,
				"measurements": null
			}
		}
	],
	"medias": [
		{
			"type": "Image",
			"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846182_1000.jpg",
			"alt": "Jacquemus 100mm Les Doubles mules",
			"index": 1
		},
		{
			"type": "Image",
			"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846188_1000.jpg",
			"alt": "Jacquemus 100mm Les Doubles mules",
			"index": 2
		},
		{
			"type": "Image",
			"url": "https://cdn-images.farfetch-contents.com/28/54/32/91/28543291_57846173_1000.jpg",
			"alt": "Jacquemus 100mm Les Doubles mules",
			"index": 3
		}
	],
	"price": {
		"current": 115000,
		"currentFormatted": "$1,150",
		"original": 0,
		"stockStatus": "InStock"
	},
	"extraInfo": {
		"label": "New Season",
		"color": "830|CAMEL",
		"mainColor": "Brown",
		"condition": "NEW"
	},
	"recommendedProducts": [
		{
			"id": "29411844",
			"url": "https://www.farfetch.com/shopping/women/jacquemus-suede-mules-item-29411844.aspx",
			"raw": {
				"id": "29411844",
				"resourceIdentifier": {
					"path": "/shopping/women/jacquemus-suede-mules-item-29411844.aspx",
					"__typename": "ResourceIdentifier"
				},
				"brand": {
					"id": "889006",
					"name": "Jacquemus",
					"__typename": "Brand"
				},
				"shortDescription": "suede mules",
				"label": "New Season",
				"merchantId": "12161",
				"promotion": {
					"label": "Extra 20% off",
					"__typename": "VariationPromotion"
				},
				"stockQuantity": 5,
				"rankingAlgorithm": null,
				"price": {
					"__typename": "ProductCatalogItemFullPrice",
					"value": {
						"raw": 750,
						"formatted": "$750",
						"__typename": "GenericValue"
					},
					"currency": {
						"isoCode": "USD",
						"symbol": "$",
						"__typename": "Currency"
					},
					"installments": null
				},
				"__typename": "ProductCatalogItem",
				"productPrice": {
					"full": {
						"value": {
							"raw": 750,
							"formatted": "$750",
							"__typename": "GenericValue"
						},
						"__typename": "ProductFullPrice"
					},
					"discounts": [
						{
							"value": {
								"raw": 600,
								"formatted": "$600",
								"__typename": "GenericValue"
							},
							"percentage": {
								"raw": 20,
								"formatted": "20%",
								"__typename": "GenericValue"
							},
							"type": "PROMOTION",
							"__typename": "ProductDiscountPrice"
						}
					],
					"final": {
						"value": {
							"raw": 600,
							"formatted": "$600",
							"__typename": "GenericValue"
						},
						"type": "PROMOTION",
						"__typename": "ProductFinalPrice"
					},
					"currency": {
						"isoCode": "USD",
						"symbol": "$",
						"__typename": "Currency"
					},
					"installments": null,
					"__typename": "ProductCatalogItemPrice"
				},
				"variationProperties": [
					{
						"__typename": "ProductCatalogItemScaledSizeVariationProperty",
						"order": 1,
						"totalItems": 5,
						"values": [
							{
								"id": "36",
								"order": 1,
								"description": "36",
								"__typename": "ProductCatalogItemScaledSizeVariationPropertyValue"
							},
							{
								"id": "37",
								"order": 2,
								"description": "37",
								"__typename": "ProductCatalogItemScaledSizeVariationPropertyValue"
							},
							{
								"id": "38",
								"order": 3,
								"description": "38",
								"__typename": "ProductCatalogItemScaledSizeVariationPropertyValue"
							},
							{
								"id": "39",
								"order": 4,
								"description": "39",
								"__typename": "ProductCatalogItemScaledSizeVariationPropertyValue"
							},
							{
								"id": "41",
								"order": 5,
								"description": "41",
								"__typename": "ProductCatalogItemScaledSizeVariationPropertyValue"
							}
						]
					}
				],
				"visualizationExperience": {
					"isForMembers": false,
					"__typename": "VisualizationExperience"
				},
				"tags": [
					{
						"id": "2303",
						"__typename": "ProductTag"
					}
				],
				"externalTriggers": null,
				"images": [
					{
						"order": 1,
						"size480": {
							"url": "https://cdn-images.farfetch-contents.com/29/41/18/44/29411844_58378323_480.jpg",
							"alt": "Jacquemus suede mules",
							"__typename": "Image"
						},
						"__typename": "ProductCatalogItemImage"
					},
					{
						"order": 2,
						"size480": {
							"url": "https://cdn-images.farfetch-contents.com/29/41/18/44/29411844_58378342_480.jpg",
							"alt": "Jacquemus suede mules",
							"__typename": "Image"
						},
						"__typename": "ProductCatalogItemImage"
					}
				],
				"categories": [
					{
						"id": "141258",
						"name": "Women",
						"__typename": "ProductCatalogItemCategory"
					},
					{
						"id": "136301",
						"name": "Shoes",
						"__typename": "ProductCatalogItemCategory"
					},
					{
						"id": "136467",
						"name": "Mules",
						"__typename": "ProductCatalogItemCategory"
					}
				]
			}
		}
		...
	]
}
````

# Actor input Schema

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

Start URLs of Farfetch to start the actor. Category page, product page urls are all supported.

## `maxRequestsPerCrawl` (type: `integer`):

Maximum number of requests that can be made by this crawler, 0 to ignore.

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

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

Actor running max concurrency, which helps you to not getting blocked.

## `withSizeFit` (type: `boolean`):

Whether to fetch variantion size and fit info which will slow down the scraper.

## `withRecommends` (type: `boolean`):

Whether to fetch recommended products. With 90 recommends at most.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.farfetch.com/shopping/women/mules-1/items.aspx?page=1&view=90&sort=3&scale=274&attributes:11006=19500036&colour=13"
    }
  ],
  "maxRequestsPerCrawl": 100,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  },
  "maxConcurrency": 5,
  "withSizeFit": false,
  "withRecommends": false
}
```

# 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.farfetch.com/shopping/women/mules-1/items.aspx?page=1&view=90&sort=3&scale=274&attributes:11006=19500036&colour=13"
        }
    ],
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyCountry": "US"
    },
    "maxConcurrency": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("autofacts/farfetch").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.farfetch.com/shopping/women/mules-1/items.aspx?page=1&view=90&sort=3&scale=274&attributes:11006=19500036&colour=13" }],
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyCountry": "US",
    },
    "maxConcurrency": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("autofacts/farfetch").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 '{
  "startUrls": [
    {
      "url": "https://www.farfetch.com/shopping/women/mules-1/items.aspx?page=1&view=90&sort=3&scale=274&attributes:11006=19500036&colour=13"
    }
  ],
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  },
  "maxConcurrency": 5
}' |
apify call autofacts/farfetch --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Farfetch Scraper",
        "description": "Farfetch web scraper to crawl product information including price and sale price, color, and images.",
        "version": "1.0",
        "x-build-id": "cIyl0wb0Fquk7hkbu"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/autofacts~farfetch/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-autofacts-farfetch",
                "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/autofacts~farfetch/runs": {
            "post": {
                "operationId": "runs-sync-autofacts-farfetch",
                "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/autofacts~farfetch/run-sync": {
            "post": {
                "operationId": "run-sync-autofacts-farfetch",
                "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",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Farfetch start urls",
                        "type": "array",
                        "description": "Start URLs of Farfetch to start the actor. Category page, product page urls are all supported.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "maxRequestsPerCrawl": {
                        "title": "Max Requests per Crawl",
                        "type": "integer",
                        "description": "Maximum number of requests that can be made by this crawler, 0 to ignore.",
                        "default": 100
                    },
                    "proxy": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Select proxies to be used by your crawler."
                    },
                    "maxConcurrency": {
                        "title": "Actor max concurrency",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Actor running max concurrency, which helps you to not getting blocked.",
                        "default": 5
                    },
                    "withSizeFit": {
                        "title": "Fetch size and fit for product",
                        "type": "boolean",
                        "description": "Whether to fetch variantion size and fit info which will slow down the scraper.",
                        "default": false
                    },
                    "withRecommends": {
                        "title": "Fetch recommended products for each product",
                        "type": "boolean",
                        "description": "Whether to fetch recommended products. With 90 recommends at most.",
                        "default": 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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
