TalabatMart Featured Collections
talabatmart.collections.list
The featured collections on Talabat Mart's home page, such as Top savers or a brand's own shelf, with each product's price, offer and stock.
At a glance
- Endpoint ID
talabatmart.collections.list- Price
- By request
- 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": "talabatmart.collections.list", "input": { "area_id": 8900, "country": "kw", "lat": 29.34141379, "lng": 48.019974472, "page": 0, "vendor_id": "688550" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "talabatmart.collections.list", "input": { "area_id": 8900, "country": "kw", "lat": 29.34141379, "lng": 48.019974472, "page": 0, "vendor_id": "688550" }}''')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": "talabatmart.collections.list", "input": { "area_id": 8900, "country": "kw", "lat": 29.34141379, "lng": 48.019974472, "page": 0, "vendor_id": "688550" }}),});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 |
|---|---|---|---|---|
area_id |
integer | yes | The area's ID, from the user location endpoint. | 8900 |
lat |
number | yes | Latitude of the delivery address. | 29.34141379 |
lng |
number | yes | Longitude of the delivery address. | 48.019974472 |
vendor_id |
string | yes | The store's ID, from the vendor endpoint. | 688550 |
country |
string | no | ae (UAE), om (Oman), qa (Qatar) or kw (Kuwait); UAE when left out. Use the same country for every step. | kw |
page |
integer | no | Which page of collections, starting at 0. | 0 |
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:
{ "categories": [ { "category": { "title": "Top savers", "id": "6dc0f592-551e-4703-ba49-b4a792676620.ef0421c5-124a-415d-afbf-bfc40ae567f1.d6d8bea0-3960-4799-8cf7-e0dc06373dcc" }, "products": [ { "name": "Murouj White Toast Deliciously Soft with a Touch of Sweetness, 600g", "price": 0.475, "currency": "KWD", "id": "0068d9b6-b0e4-42c8-b954-b99b9cd921d5", "is_sponsored": false, "offer_text": "Save 30%", "original_price": 0.68, "sku": "925401", "stock_amount": 4, "characteristics": { "masterCode": "647c5bb690c94c660219d3cc" }, "pricing_details": { "price": 0.475, "highlight_style": "strikethrough", "original_price": 0.68 }, "tracking": { "nmr_ad_id": "", "query_id": "" }, "display_tags": [ { "text": "Save 30%", "campaign_id": "9adc692c-6a81-4df3-8f59-9e0d6a915921", "campaign_type": "Strikethrough", "style": "default", "type": "campaign" } ] }, { "name": "Eat Right ST Sebastien Cake, 120g", "price": 1.235, "currency": "KWD", "id": "006ea34a-7b5b-4278-91ff-dbe34922ada3", "is_sponsored": false, "offer_text": "Save 10%", "original_price": 1.375, "sku": "953006", "stock_amount": 1, "characteristics": { "masterCode": "6a9d2d807920451492cbb96a" }, "pricing_details": { "price": 1.235, "highlight_style": "strikethrough", "original_price": 1.375 }, "tracking": { "nmr_ad_id": "", "query_id": "" }, "display_tags": [ { "text": "Save 10%", "campaign_id": "d15134cd-f032-4945-ae08-accab62ac8e8", "campaign_type": "Strikethrough", "style": "default", "type": "campaign" } ] } ] }, { "category": { "title": "Fresh every day š", "id": "6dc0f592-551e-4703-ba49-b4a792676620.b4b6addd-1703-4b5c-b585-2c95bca6663e.d6d8bea0-3960-4799-8cf7-e0dc06373dcc" }, "products": [ { "name": "Formulas Watermelon Fruit Cuts, 200g", "price": 2.02, "currency": "KWD", "id": "0a597ba0-7f8d-49a2-830f-042c309ce477", "is_sponsored": false, "original_price": 2.02, "sku": "918116", "stock_amount": 2, "characteristics": { "masterCode": "6298a42d70a075ea352338af" }, "pricing_details": { "price": 2.02, "highlight_style": "default", "original_price": 2.02, "teaser": { "price": 1.615, "type": "tpro" } }, "tracking": { "nmr_ad_id": "", "query_id": "" }, "display_tags": [] }, { "name": "Formulas Mixed Fruits Cuts, 200g", "price": 2.475, "currency": "KWD", "id": "0b45e957-900e-47c7-9ada-1d10a97bcccf", "is_sponsored": false, "original_price": 2.475, "sku": "918119", "stock_amount": 3, "characteristics": { "masterCode": "6298a42e70a075ea35233981" }, "pricing_details": { "price": 2.475, "highlight_style": "default", "original_price": 2.475, "teaser": { "price": 1.98, "type": "tpro" } }, "tracking": { "nmr_ad_id": "", "query_id": "" }, "display_tags": [] } ] } ]}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
categories[].category.title |
string | The section's title. | Top savers |
categories[].products[].name |
string | The product's name. | Murouj White Toast Deliciously Soft with a Touch of Sweetness, ⦠|
categories[].products[].price |
number | The price now, in the currency shown. | 0.48 |
categories[].category |
object | The product's category. | 2 fields |
categories[].category.id |
string | Talabat's ID for it. | 6dc0f592-551e-4703-ba49-b4a792676620.ef0421c5-124a-415d-afbf-bf⦠|
categories[].products |
array | The products. | 20 records |
categories[].products[].characteristics |
object | Extra product details, such as Talabat's master code. | 1 fields |
categories[].products[].currency |
string | The currency of the prices, such as KWD. | KWD |
categories[].products[].display_tags |
array | Labels shown on the product, such as Save 30%. | 1 records |
categories[].products[].id |
string | Talabat's ID for the product. | 0068d9b6-b0e4-42c8-b954-b99b9cd921d5 |
categories[].products[].is_sponsored |
boolean | Whether the product is a paid placement. | false |
categories[].products[].offer_text |
string | The offer as Talabat shows it, such as Save 30%. | Save 30% |
categories[].products[].original_price |
number | The price before the discount. | 0.68 |
categories[].products[].pricing_details |
object | The price breakdown, including any Talabat Pro price. | 3 fields |
categories[].products[].sku |
string | The product's code at the store. | 925401 |
categories[].products[].stock_amount |
integer | How many are left in stock. | 4 |
categories[].products[].tracking |
object | Talabat's ad and search reference IDs, often empty. | 2 fields |
categories |
array | The categories. | 9 records |
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 TalabatMart endpoints
Something missing or unclear? Ask the team that builds the TalabatMart endpoints.