↑ ↓ to move ↵ to open

ToYou API reference

Read ToYou's To Mart grocery store for any Saudi city it serves: the categories, then every product in a category with its price and stock. Send an area and coordinates, get JSON back.

At a glance

Platform ID
toyou
Endpoints
4
Price
By request
Pin in MCP
https://data.upscrape.com/mcp?platforms=toyou
Pin tools
OpenAPI
openapi.json
Download

The ToYou API has 4 endpoints, called the same way: POST /execute with the endpoint ID as capability and its fields as input, or pin ToYou in the MCP server and call each one as a tool. The data comes back as JSON in results[0].data, with what the call cost in billing.credits_charged.

The inputs you send most are lat, lng and operation_area. Access to ToYou is by request: contact us and we set it up for your account.

Endpoints

Open an endpoint for its input, the fields it returns and the request in cURL, Python and Node.js.

EndpointWhat it returnsPrice
toyou.products.list Every product in a To Mart category: name, pack size in the name, listed price, currency and whether it is in stock. By request
toyou.categories.list The categories of the To Mart store that serves an address, including brand shelves and special offers. By request
toyou.operation_areas.list The Saudi cities ToYou operates in, with each one's centre point, currency and time zone. By request
toyou.merchant.get The To Mart store that serves a latitude and longitude in an operation area, with its ID for the other endpoints. By request

What to know

  • From a city to a store Pick an operation area, send coordinates in it, and the merchant endpoint gives you the To Mart store that serves them.
  • Listed prices Prices are those To Mart lists on each product, in riyals.
  • Pack size in the name Sizes come as To Mart writes them in the product name, ranges included, such as 250-300g.
  • Stock at the moment of the call In stock is what To Mart shows when you call, for the store that serves your address.

Something missing or unclear? Ask the team that builds the ToYou endpoints.