ToYou Products API
Every product in a To Mart category: name, pack size in the name, listed price, currency and whether it is in stock.
- By request Access by contact
- Updated
- toyou.products.list
{ "products": [ { "name": "Leen Al Khair Apple Royal Gala Resealable 250-300g", "price": 5.5, "currency": "SAR", "id": "c09043d2-d417-413f-b67c-0b07a9959874", "in_stock": true }, { "name": "Avocado 2 Pcs", "price": 22.95, "currency": "SAR", "id": "5363a4ee-aa81-41f7-93dd-1a4bfda3d7c3", "in_stock": true } ]}
| # | Product | Price (SAR) | In stock | Currency | Id |
|---|---|---|---|---|---|
| 1 | Leen Al Khair Apple Royal Gala Resealable 250-300g | 5.5 | true | SAR | c09043d2-d417-413f-b67c-0b07a9959874 |
| 2 | Avocado 2 Pcs | 22.95 | true | SAR | 5363a4ee-aa81-41f7-93dd-1a4bfda3d7c3 |
| 3 | Driscoll's Blackberries 170g | 32.5 | true | SAR | 374ba1d9-4576-469f-a96c-4ce9891c57a4 |
| 4 | Mangosteen 250g | 20.95 | true | SAR | f64f5ccf-df2a-490f-b686-1c8681d51b5a |
| 5 | Avocado Holland 1 Piece Semi Ripe | 5.5 | true | SAR | e21cbfeb-dd14-4da5-b180-1d6945fdd608 |
| 6 | Leen Al Khair Orange Navel Resealable 450-500g | 9 | true | SAR | f04fbc79-b07c-4f8c-afcc-99647aef196a |
| 7 | Physalis Fruit 100g | 17.5 | true | SAR | 20666b56-1326-4f6e-a4cc-22b0e002c8d6 |
| 8 | Avocado Holland Haas 1 Piece Unripe | 5.5 | true | SAR | e372bc76-47a9-4121-9a3f-1fba074ab9de |
| 9 | Mexican Avocado 950-1000g | 50 | true | SAR | 8f1b1556-1c95-49f9-af45-3b5ac95b6801 |
| 10 | Driscoll's Raspberries 125g | 27.5 | true | SAR | 1f598e16-6ba7-440d-9d75-667d0bca0fec |
What you send
The input
object of the request, with every field the endpoint accepts.
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
| category_id | string | yes | The category's ID, from the categories endpoint. | eea49430-9492-4294-bd85-ed353e456067 |
| lat | number | yes | Latitude of the delivery address. | 24.713 |
| lng | number | yes | Longitude of the delivery address. | 46.675 |
| merchant_id | string | yes | The store's ID, from the merchant endpoint. | 96e2e119-90a6-412a-a506-0c31d733d893 |
| operation_area | string | yes | The ToYou operation area, such as SA_Riyadh. The operation areas endpoint lists them. | SA_Riyadh |
| category_name | string | no | The category's name, kept with the results so your rows say where they came from. |
Fields it returns
What each record in the response holds, with the values from the sample above.
| Field | Type | What it is | Example |
|---|---|---|---|
| products[].name | string | The name of the area or product. | Leen Al Khair Apple Royal Gala Resealable 250-300g |
| products[].price | number | The price. | 5.5 |
| products[].in_stock | boolean | Whether the product is in stock. | true |
| products[].currency | string | The currency. | SAR |
| products[].id | string | ToYou's ID for it. | c09043d2-d417-413f-b67c-0b07a9959874 |
| products | array | The products. | 81 records |
Call it from your code, or ask your agent
Set UPSCRAPE_API_KEY to your key and copy a working request.
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": "toyou.products.list", "input": { "category_id": "eea49430-9492-4294-bd85-ed353e456067", "lat": 24.713, "lng": 46.675, "merchant_id": "96e2e119-90a6-412a-a506-0c31d733d893", "operation_area": "SA_Riyadh" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "toyou.products.list", "input": { "category_id": "eea49430-9492-4294-bd85-ed353e456067", "lat": 24.713, "lng": 46.675, "merchant_id": "96e2e119-90a6-412a-a506-0c31d733d893", "operation_area": "SA_Riyadh" }}''')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": "toyou.products.list", "input": { "category_id": "eea49430-9492-4294-bd85-ed353e456067", "lat": 24.713, "lng": 46.675, "merchant_id": "96e2e119-90a6-412a-a506-0c31d733d893", "operation_area": "SA_Riyadh" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
https://data.upscrape.com/mcp
Using Upscrape, list the fruit in ToYou's To Mart store for central Riyadh (24.713, 46.675), with price and stock, cheapest first.
More from the ToYou API
The same data from other platforms
ToYou Products API FAQ
The short answers. The docs have the long ones.
How much does the ToYou Products API cost?
Access is arranged with us directly. Contact us and we set it up for your account.
What do I send?
Send merchant_id, category_id, lat, lng and operation_area. The input fields below list every option with its type and limits.
Do I need a ToYou login?
No. It reads public ToYou data; nothing runs on your account.
Can my AI agent call it?
Yes, over MCP: the agent finds toyou.products.list, checks its price and runs it with the same credits as the REST API.
ToYou data, set up for you.
Access to ToYou is arranged with us. Tell us what you need and we set it up.