# IKEA Products API

Extract IKEA products from any country: article number, name and type, current and previous price, rating, colour, measurements, category, variants and national plus per-store stock

**Pricing:** $0.0045 per product

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

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `urls` | array | No | IKEA product, category or search links (https://www.ikea.com/us/en/p/billy-bookcase-white-20522046/). Each link uses its own country and language. One per line; room, offers and store pages are not supported. |
| `queries` | array | No | Words to search IKEA for, one per line (billy bookcase, desk lamp). For links, use URLs instead. |
| `country` | string | No | By Keyword only. The IKEA country to search; it sets prices, currency, product range and the language of the text. United States by default. Links always use their own country. |
| `sortBy` | string | No | The order products are listed in for a search or category before Max Results is applied. Most relevant first by default. Has no effect on single product links. |
| `maxResults` | integer | No | How many products to return in total. Defaults to 100; use 0 for all. |

## Example

`?wait=true` holds the request open until the run finishes (up to 60s) and returns the rows inline: one request, no polling.

```bash
curl -X POST "https://api.mindcase.co/v1/data/ikea/products/run?wait=true" \
  -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/ikea/products/run",
    params={"wait": "true"},
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {}},
)
rows = resp.json()["data"]
```

## Longer runs

If the run is still going at the 60s ceiling you get back `{ job_id, status: "running" }` instead of rows (same if the result is over 100 rows; those come back `truncated`). Poll with that `job_id`:

```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, SDKs, MCP): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `productUrl` | Product URL | url |
| `productId` | Product ID | text |
| `productName` | Product Name | text |
| `productType` | Product Type | text |
| `country` | Country | text |
| `price` | Price | number |
| `currency` | Currency | text |
| `listPrice` | List Price | number |
| `onSale` | On Sale | boolean |
| `priceTag` | Price Tag | text |
| `rating` | Rating | rating |
| `ratingCount` | Rating Count | number |
| `inStock` | In Stock | boolean |
| `onlineSellable` | Online Sellable | boolean |
| `color` | Color | text |
| `measurements` | Measurements | text |
| `categoryPath` | Category Path | text |
| `badge` | Badge | text |
| `isNewArrival` | Is New Arrival | boolean |
| `lastChance` | Last Chance | boolean |
| `variantCount` | Variant Count | integer |
| `mainImage` | Main Image | url |
| `images` | Images | array |
| `variants` | Variants | object_array |
| `availability` | Availability | object |
