{
  "openapi": "3.0.1",
  "info": {
    "title": "Farfetch Luxury Fashion Price & Discount Extractor",
    "description": "Search Farfetch.com by keyword, brand, gender, new arrivals or sale items to get price, original price, discount percent, color, category and designer for each luxury fashion product.",
    "version": "1.2",
    "x-build-id": "iCRcK5JGIZAx78Tsn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nimbryxo-studio~farfetch-luxury-fashion-price-and-discount/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nimbryxo-studio-farfetch-luxury-fashion-price-and-discount",
        "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/nimbryxo-studio~farfetch-luxury-fashion-price-and-discount/runs": {
      "post": {
        "operationId": "runs-sync-nimbryxo-studio-farfetch-luxury-fashion-price-and-discount",
        "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/nimbryxo-studio~farfetch-luxury-fashion-price-and-discount/run-sync": {
      "post": {
        "operationId": "run-sync-nimbryxo-studio-farfetch-luxury-fashion-price-and-discount",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "searchByBrand",
              "category",
              "newIn",
              "saleItems",
              "listingUrls",
              "productDetails"
            ],
            "type": "string",
            "description": "What to browse on Farfetch.",
            "default": "search"
          },
          "locale": {
            "title": "Storefront / currency",
            "enum": [
              "nz",
              "uk",
              "fr",
              "de",
              "it",
              "es",
              "ie",
              "hk",
              "mo",
              "cn",
              "sg",
              "jp",
              "kr",
              "au",
              "ca",
              "ae",
              "tw"
            ],
            "type": "string",
            "description": "Regional Farfetch storefront. Prices and availability are local to the selected market.",
            "default": "nz"
          },
          "keyword": {
            "title": "Search keyword",
            "type": "string",
            "description": "Product keyword to search for (mode=search), e.g. 'Gucci bag', 'Prada shoes'.",
            "default": "Gucci bag"
          },
          "brand": {
            "title": "Brand (mode=searchByBrand)",
            "type": "string",
            "description": "Brand name or slug to browse (e.g. 'gucci', 'prada', 'balenciaga')."
          },
          "gender": {
            "title": "Gender",
            "enum": [
              "",
              "women",
              "men",
              "kids"
            ],
            "type": "string",
            "description": "Filter by gender for search, brand, new-arrivals and sale modes. Category mode follows the department in the selected category. When omitted, listings use the women's storefront.",
            "default": ""
          },
          "category": {
            "title": "Category (mode=category)",
            "enum": [
              "women/clothing-1",
              "women/shoes-1",
              "women/bags-purses-1",
              "women/accessories-all-1",
              "women/jewellery-1",
              "women/watches-1",
              "women/pre-owned-1",
              "women/activewear-1",
              "women/lingerie-hosiery-1",
              "women/lifestyle-1",
              "women/fine-jewellery-6",
              "women/demi-fine-jewellery-1",
              "men/clothing-2",
              "men/shoes-2",
              "men/bags-purses-2",
              "men/accessories-all-2",
              "men/jewellery-2",
              "men/watches-4",
              "men/pre-owned-2",
              "men/activewear-2",
              "men/underwear-socks-2",
              "men/lifestyle-2",
              "kids/boys-clothing-3",
              "kids/boys-shoes-3",
              "kids/boys-accessories-3",
              "kids/girls-clothing-4",
              "kids/girls-shoes-4",
              "kids/girls-accessories-1",
              "kids/baby-boy-clothing-5",
              "kids/baby-boy-shoes-5",
              "kids/baby-boy-accessories-5",
              "kids/baby-girl-clothing-6",
              "kids/baby-girl-shoes-6",
              "kids/baby-girl-accessories-6",
              "kids/teen-boy-clothing-8",
              "kids/teen-boy-accessories-8",
              "kids/teen-boy-shoes-1",
              "kids/teen-girl-clothing-7",
              "kids/teen-girl-accessories-7",
              "kids/teen-girl-shoes-1",
              "kids/baby-nursery-5"
            ],
            "type": "string",
            "description": "Farfetch department and category to browse. Each option is a live catalog path, e.g. 'Women - Bags' or 'Men - Shoes'.",
            "default": "women/bags-purses-1"
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "recommended",
              "newest",
              "priceHighToLow",
              "priceLowToHigh",
              "saleHighToLow"
            ],
            "type": "string",
            "description": "Order of listing results. Applies to search, brand, category, new-arrivals and sale modes.",
            "default": "recommended"
          },
          "colors": {
            "title": "Colors",
            "uniqueItems": true,
            "type": "array",
            "description": "Only include products in these colors. Leave empty for every color.",
            "items": {
              "type": "string",
              "enum": [
                "Black",
                "White",
                "Grey",
                "Neutrals",
                "Brown",
                "Green",
                "Blue",
                "Red",
                "Pink",
                "Yellow",
                "Metallic",
                "Multicolour",
                "Gold",
                "Silver",
                "Purple",
                "Orange"
              ]
            },
            "default": []
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Lowest price to include, in the selected storefront's currency. Leave empty for no minimum."
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Highest price to include, in the selected storefront's currency. Leave empty for no maximum."
          },
          "discountRange": {
            "title": "Discount",
            "enum": [
              "",
              "none",
              "upTo30",
              "30to50",
              "50to60",
              "60plus"
            ],
            "type": "string",
            "description": "Only include products in this Farfetch sale-discount band. The matching value per product is saleDiscountPercent. Applies to search, brand, category, new-arrivals and sale modes.",
            "default": ""
          },
          "listingUrls": {
            "title": "Listing URLs (mode=listingUrls)",
            "type": "array",
            "description": "Farfetch category, brand, sale, set or search listing URLs. Both farfetch.com and farfetch.cn URLs are accepted; every listing starts at page 1 with 180 products per page.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product URLs (mode=productDetails)",
            "type": "array",
            "description": "Farfetch product page URLs to scrape. Both farfetch.com and farfetch.cn URLs are accepted and converted to the selected storefront.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2500,
            "type": "integer",
            "description": "Maximum number of products to return (1-2500).",
            "default": 20
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}