ToYou Operation Areas API
The Saudi cities ToYou operates in, with each one's centre point, currency and time zone.
- By request Access by contact
- Updated
- toyou.operation_areas.list
{ "areas": { "defaultArea": "SA_Riyadh", "areas": [ { "name": "Kharj", "title": "Kharj", "currency": "SAR", "lang": "ar", "timeZone": "Asia/Riyadh", "centerPoint": { "lat": 24.1532914597417, "lon": 47.3053899858044 } }, { "name": "Najran", "title": "Najran", "currency": "SAR", "lang": "ar", "timeZone": "Asia/Riyadh", "centerPoint": { "lat": 17.5451792159594, "lon": 44.2330839757567 } } ] }}
| # | City | Currency | Time zone | Latitude | Longitude | Name | Lang |
|---|---|---|---|---|---|---|---|
| 1 | Kharj | SAR | Asia/Riyadh | 24.15 | 47.31 | Kharj | ar |
| 2 | Najran | SAR | Asia/Riyadh | 17.55 | 44.23 | Najran | ar |
| 3 | Abha | SAR | Asia/Riyadh | 18.25 | 42.51 | sa_abha | ar |
| 4 | Afif | SAR | Asia/Riyadh | 23.9 | 42.91 | sa_afif | ar |
| 5 | Al Aflaj | SAR | Asia/Riyadh | 22.3 | 46.72 | sa_aflaj | ar |
| 6 | Al Ula | SAR | Asia/Riyadh | 26.59 | 37.94 | sa_alula | ar |
| 7 | Aramco Dhahran | SAR | Asia/Riyadh | 26.3 | 50.12 | SA_Aramco | ar |
| 8 | Arar | SAR | Asia/Riyadh | 30.98 | 41.02 | sa_arar | ar |
| 9 | Abu Arish | SAR | Asia/Riyadh | 16.98 | 42.83 | sa_arish | ar |
| 10 | Al Badayea | SAR | Asia/Riyadh | 25.98 | 43.74 | sa_badayea | ar |
Fields it returns
What each record in the response holds, with the values from the sample above.
| Field | Type | What it is | Example |
|---|---|---|---|
| areas.areas[].title | string | The area's name as ToYou shows it. | Kharj |
| areas.areas[].currency | string | The currency used in the area, such as SAR. | SAR |
| areas.areas[].timeZone | string | The area's time zone. | Asia/Riyadh |
| areas.areas[].name | string | ToYou's own name for the area, such as sa_abha. | Kharj |
| areas.areas[].centerPoint | object | The area's centre point, as latitude and longitude. | 2 fields |
| areas.areas[].lang | string | The area's language code, such as ar. | ar |
| areas | object | The delivery areas. | 2 fields |
| areas.areas | array | The delivery areas. | 58 records |
| areas.defaultArea | string | ToYou's default area. | SA_Riyadh |
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.operation_areas.list", "input": {}}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "toyou.operation_areas.list", "input": {}}''')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.operation_areas.list", "input": {}}),});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
Use Upscrape to list the Saudi cities ToYou operates in, with their centre coordinates.
More from the ToYou API
ToYou Operation Areas API FAQ
The short answers. The docs have the long ones.
How much does the ToYou Operation Areas API cost?
Access is arranged with us directly. Contact us and we set it up for your account.
What do I send?
Every input is optional; the input fields below list what each one does.
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.operation_areas.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.