Keeta Keemart Products Search
keeta.products.search
Search the Keemart catalogue by keyword at a location: name, size, price, usual price, offers, stock and barcode.
At a glance
- Endpoint ID
keeta.products.search- Price
- By request
- Runs for up to
- 45 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": "keeta.products.search", "input": { "keyword": "milk", "location": { "latitude": 24.89377104655503, "longitude": 46.60596106427802 } }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "keeta.products.search", "input": { "keyword": "milk", "location": { "latitude": 24.89377104655503, "longitude": 46.60596106427802 } }}''')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": "keeta.products.search", "input": { "keyword": "milk", "location": { "latitude": 24.89377104655503, "longitude": 46.60596106427802 } }}),});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 |
|---|---|---|---|---|
keyword |
string | yes | The product text to search for, such as milk or Almarai. | milk |
location |
object | yes | The delivery address as latitude and longitude. | {…} |
cursor |
string | no | The cursor returned with a previous page. Leave it out on the first call. | |
lat |
number | no | Latitude, as an alternative to location. | |
lng |
number | no | Longitude, as an alternative to location. | |
offset |
integer | no | Results to skip. Send 20, 40 and so on with the cursor from the previous response. | |
store_id |
string | no | The store's ID. Found from the location when you leave it out. |
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:
{ "count": 20, "cursor": "06c59b819eff471b9ac69901e1638c6d", "has_more": true, "offset": 0, "store_id": "90015", "total": 625, "products": [ { "name": "Almarai Fresh Full Fat Milk 2.85L", "display_name": "Almarai Fresh Full Fat Milk", "price": 16.5, "barcode": "6281007034043", "currency": "SAR", "id": "10023138", "image_url": "https://img-ap-hongkong.mykeeta.net/osgeujiemo/47ec873df2f20eee969e5fd26f6153801049720.png", "in_stock": true, "limit_buy_text": "Only 50 left in stock", "original_price": 16.5, "original_price_minor": 1650, "sku_id": "10023138", "spec": "2.85L", "spu_id": "10008139", "stock_quantity": 50 }, { "name": "Almarai Fresh Full Fat Milk 2L", "display_name": "Almarai Fresh Full Fat Milk", "price": 12.5, "barcode": "6281007120401", "currency": "SAR", "id": "10017126", "image_url": "https://img-ap-hongkong.mykeeta.net/osgeujiemo/21d3b7bfdcb58cc17a4c433457bc1ff8848160.png", "in_stock": true, "limit_buy_text": "Only 55 left in stock", "original_price": 12.5, "original_price_minor": 1250, "sku_id": "10017126", "spec": "2L", "spu_id": "10016155", "stock_quantity": 55 } ]}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
products[].name |
string | The product's name. | Almarai Fresh Full Fat Milk 2.85L |
products[].display_name |
string | Almarai Fresh Full Fat Milk | |
products[].price |
number | The price. | 16.5 |
products[].barcode |
string | The product's barcode number. | 6281007034043 |
products[].currency |
string | The currency. | SAR |
products[].id |
string | 10023138 | |
products[].image_url |
string | https://img-ap-hongkong.mykeeta.net/osgeujiemo/47ec873df2f20eee… | |
products[].in_stock |
boolean | Whether the product is in stock. | true |
products[].limit_buy_text |
string | Only 50 left in stock | |
products[].original_price |
number | The price before the discount. | 16.5 |
products[].original_price_minor |
integer | 1650 | |
products[].sku_id |
string | Keeta's ID for this version of the product. | 10023138 |
products[].spec |
string | The size or version. | 2.85L |
products[].spu_id |
string | Keeta's ID for the product family. | 10008139 |
products[].stock_quantity |
integer | How many are left, as Keeta shows it. | 50 |
count |
integer | How many products this page returned. | 20 |
cursor |
string | The cursor to send with the next offset. | 06c59b819eff471b9ac69901e1638c6d |
has_more |
boolean | Whether another page is offered. | true |
offset |
integer | How many results this page skipped. | 0 |
products |
array | The products on this page. | 3 records |
store_id |
string | Keeta's ID for the store. | 90015 |
total |
integer | Keeta's approximate number of matches. | 625 |
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 Keeta Keemart endpoints
Something missing or unclear? Ask the team that builds the Keeta Keemart endpoints.