Iceland Product Detail
iceland.product.detail.get
Read one product by its Iceland product number or page link, with every offer currently on it.
At a glance
- Endpoint ID
iceland.product.detail.get- Price
- 2 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.product.detail.get", "input": { "retailer_product_id": "19492" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "iceland.product.detail.get", "input": { "retailer_product_id": "19492" }}''')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.product.detail.get", "input": { "retailer_product_id": "19492" }}),});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 |
|---|---|---|---|---|
retailer_product_id |
string | no | Iceland's product number, such as 19492. It also ends the product's page link. | 19492 |
url |
string | no | The product's iceland.co.uk page, instead of the number. |
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:
{ "product": { "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 |
|---|---|---|---|
product.promotions[].buy_quantity |
integer | 2 | |
product.promotions[].description |
string | 2 for £3.00 | |
product.promotions[].end |
null | null | |
product.promotions[].for_price |
integer | 3 | |
product.promotions[].id |
string | 12660 | |
product.promotions[].start |
null | null | |
product.promotions[].type |
string | multibuy | |
product |
object | The product. | 13 fields |
product.name |
string | The name as Iceland shows it. | Iceland British Semi-Skimmed Milk 2 Litres |
product.brand |
string | The product's brand. | Iceland |
product.pack_size |
string | The pack size, such as 2l. | 2l |
product.price |
number | The price of one pack, in pounds. | 1.65 |
product.unit_price.amount |
number | The price per kilo, litre or item; empty when Iceland shows none. | 0.83 |
product.unit_price.unit |
string | What the unit price is per, such as per_litre. | per_litre |
product.available |
boolean | Iceland's catalogue flag for whether the product can be ordered online; not one store's stock. | true |
product.retailer_product_id |
string | Iceland's product number; the product and review endpoints take it. | 19492 |
product.url |
string | The page on iceland.co.uk. | https://www.iceland.co.uk/p/iceland-british-semi-skimmed-milk-2… |
product.currency |
string | GBP, pounds sterling. | GBP |
product.gtin |
null | The barcode, when Iceland gives one; usually empty. | null |
product.image |
string | The product picture. | https://assets.iceland.co.uk/i/iceland/iceland_british_semi-ski… |
product.member_prices |
array | Member-only prices, when Iceland shows them. | empty in this sample |
product.promotions |
array | Every offer on the product. | 2 records |
product.unit_price |
object | The price per kilo, litre or item; empty when Iceland shows none. | 2 fields |
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.