Iceland Category Products
iceland.category.products.list
List the products in an Iceland category, such as Milk, Butter & Eggs, 30 to a page.
At a glance
- Endpoint ID
iceland.category.products.list- Price
- 5 credits per call; failed calls are free
- Runs for up to
- 30 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "iceland.category.products.list", "input": { "category_id": "CHLMLK", "page": 1 }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "iceland.category.products.list", "input": { "category_id": "CHLMLK", "page": 1 }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "iceland.category.products.list", "input": { "category_id": "CHLMLK", "page": 1 }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
category_id |
string | yes | A category ID from the categories endpoint, such as CHLMLK for Milk, Butter & Eggs. | CHLMLK |
page |
integer | no | Which page to return, starting at 1. | 1 |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "has_next": true, "total": 183, "items": [ { "name": "Iceland 10 Large Class A British Eggs", "price": 2.3, "available": true, "brand": "Iceland", "currency": "GBP", "gtin": null, "image": "https://assets.iceland.co.uk/i/iceland/iceland_10_large_eggs_55841", "pack_size": "10", "retailer_product_id": "55841", "unit_price": null, "url": "https://www.iceland.co.uk/p/iceland-10-large-eggs/55841.html", "member_prices": [], "promotions": [] }, { "name": "Iceland British Semi-Skimmed Milk 2 Litres", "price": 1.65, "available": true, "brand": "Iceland", "currency": "GBP", "gtin": null, "image": "https://assets.iceland.co.uk/i/iceland/iceland_british_semi-skimmed_milk_2_litres_2l_19492.jpg", "pack_size": "2l", "retailer_product_id": "19492", "url": "https://www.iceland.co.uk/p/iceland-british-semi-skimmed-milk-2-litres-2l/19492.html", "unit_price": { "amount": 0.83, "unit": "per_litre" }, "member_prices": [], "promotions": [ { "buy_quantity": 2, "description": "2 for £3.00", "end": null, "for_price": 3, "id": "12660", "start": null, "type": "multibuy" }, { "buy_quantity": 2, "description": "2 for £3.50", "end": null, "for_price": 3.5, "id": "12711", "start": null, "type": "multibuy" } ] } ]}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
items[].name |
string | The name as Iceland shows it. | Iceland 10 Large Class A British Eggs |
items[].brand |
string | The product's brand. | Iceland |
items[].pack_size |
string | The pack size, such as 2l. | 10 |
items[].price |
number | The price of one pack, in pounds. | 2.3 |
items[].available |
boolean | Iceland's catalogue flag for whether the product can be ordered online; not one store's stock. | true |
items[].retailer_product_id |
string | Iceland's product number; the product and review endpoints take it. | 55841 |
items[].currency |
string | GBP, pounds sterling. | GBP |
items[].gtin |
null | The barcode, when Iceland gives one; usually empty. | null |
items[].image |
string | The product picture. | https://assets.iceland.co.uk/i/iceland/iceland_10_large_eggs_55… |
items[].member_prices |
array | Member-only prices, when Iceland shows them. | empty in this sample |
items[].promotions |
array | Every offer on the product. | empty in this sample |
items[].unit_price |
null | The price per kilo, litre or item; empty when Iceland shows none. | null |
items[].url |
string | The page on iceland.co.uk. | https://www.iceland.co.uk/p/iceland-10-large-eggs/55841.html |
has_next |
boolean | Whether another page follows. | true |
items |
array | The products, reviews or stores on this page. | 30 records |
total |
integer | How many match in total. | 183 |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other Iceland endpoints
Something missing or unclear? Ask the team that builds the Iceland endpoints.