# Farfetch Products API

Full Farfetch product detail — price, discount, per-size availability, seller boutique and category — one row per product, from a designer page, a listing URL or a product URL.

**Pricing:** $1 / 1k products

**Endpoint:** `POST /v1/data/farfetch/products/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `listing_url` | string | No | A Farfetch designer or listing page URL, e.g. https://www.farfetch.com/shopping/men/gucci/items.aspx. Designer pages return that brand's catalog. |
| `query` | string | No | A brand or keyword to look up, e.g. 'gucci'. We build the listing URL for you. |
| `urls` | array | No | One or more Farfetch product URLs, e.g. https://www.farfetch.com/shopping/men/gucci-jordaan-horsebit-loafers-item-19426833.aspx. One per line. |
| `maxResults` | integer | No | Number of products to return from a listing page. Use 0 for all. Ignored when you pass product URLs. |

## Example

```bash
curl -X POST https://api.mindcase.co/v1/data/farfetch/products/run \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/v1/data/farfetch/products/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {}},
)
data = resp.json()
```

## Get the results

`run` is async and returns a `job_id`. Poll until `status` is `completed`, then read the rows:

```bash
# 1) check status
curl https://api.mindcase.co/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, endpoints): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `productId` | Product ID | text |
| `productName` | Product Name | text |
| `brand` | Brand | text |
| `productUrl` | Product URL | url |
| `description` | Description | text |
| `color` | Color | text |
| `category` | Category | text |
| `categoryPath` | Category Path | text |
| `gender` | Gender | text |
| `season` | Season | text |
| `price` | Price | number |
| `fullPrice` | Full Price | number |
| `discountPercent` | Discount Percent | number |
| `currency` | Currency | text |
| `seller` | Seller | text |
| `sizes` | Sizes | array |
| `variants` | Variants | object_array |
| `measurements` | Measurements | object_array |
| `returns` | Returns | object |
| `stockQuantity` | Stock Quantity | number |
| `availability` | Availability | array |
| `label` | Label | text |
| `condition` | Condition | text |
| `images` | Images | array |
