Iceland Products Search
iceland.products.search
Search Iceland by keyword, such as semi skimmed milk. Each product has its price, pack size, unit price, availability and any multibuy.
At a glance
- Endpoint ID
iceland.products.search- 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.products.search", "input": { "page": 1, "query": "semi skimmed milk" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "iceland.products.search", "input": { "page": 1, "query": "semi skimmed milk" }}''')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.products.search", "input": { "page": 1, "query": "semi skimmed milk" }}),});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 |
|---|---|---|---|---|
query |
string | yes | What to search for, such as semi skimmed milk. | semi skimmed milk |
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": false, "total": 18, "items": [ { "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" } ] }, { "name": "Iceland British Semi-Skimmed Milk 1 Litre", "price": 1.2, "available": true, "brand": "Iceland", "currency": "GBP", "gtin": null, "image": "https://assets.iceland.co.uk/i/iceland/iceland_british_semi-skimmed_milk_1_litre_1l_19491.jpg", "pack_size": "1l", "retailer_product_id": "19491", "url": "https://www.iceland.co.uk/p/iceland-british-semi-skimmed-milk-1-litre-1l/19491.html", "unit_price": { "amount": 1.2, "unit": "per_litre" }, "member_prices": [], "promotions": [] } ]}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
items[].name |
string | The name as Iceland shows it. | Iceland British Semi-Skimmed Milk 2 Litres |
items[].brand |
string | The product's brand. | Iceland |
items[].pack_size |
string | The pack size, such as 2l. | 2l |
items[].price |
number | The price of one pack, in pounds. | 1.65 |
items[].unit_price.amount |
number | The amount in pounds. | 0.83 |
items[].unit_price.unit |
string | What the unit price is per, such as per_litre. | per_litre |
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. | 19492 |
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_british_semi-ski… |
items[].member_prices |
array | Member-only prices, when Iceland shows them. | empty in this sample |
items[].promotions |
array | Every offer on the product. | 2 records |
items[].promotions[].buy_quantity |
integer | 2 | |
items[].promotions[].description |
string | 2 for £3.00 | |
items[].promotions[].end |
null | null | |
items[].promotions[].for_price |
integer | 3 | |
items[].promotions[].id |
string | 12660 | |
items[].promotions[].start |
null | null | |
items[].promotions[].type |
string | multibuy | |
items[].unit_price |
object | The price per kilo, litre or item; empty when Iceland shows none. | 2 fields |
items[].url |
string | The page on iceland.co.uk. | https://www.iceland.co.uk/p/iceland-british-semi-skimmed-milk-2… |
has_next |
boolean | Whether another page follows. | false |
items |
array | The products, reviews or stores on this page. | 18 records |
total |
integer | How many match in total. | 18 |
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.