List products
Products, as a sync list (deleted products never appear)
GET
https://s.zo.sa/api/public/v1 /products Scope
products.readRequest
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
per_page | integer | Rows per page, 1 to 100 (default 50; more is capped at 100). Default 50 At least 1 | |
cursor | string | The meta.next_cursor of the previous page. Opaque. Up to 200 characters | |
updated_since | string (date-time) | Only rows updated at or after this time (ISO 8601, inclusive to the second; no offset means UTC). | |
created_since | string (date-time) | Only rows created at or after this time (ISO 8601, inclusive to the second; no offset means UTC). | |
filter[status] | string | One of draft, active, hidden | |
filter[type] | string | One of physical, service, food, digital, card, group, booking | |
filter[category_id] | integer | ||
filter[sku] | string | Only the product that has a variant with exactly this SKU. Up to 64 characters |
cURL
curl -sS "https://s.zo.sa/api/public/v1/products" \
-H "Authorization: Bearer $ZO_API_KEY" \
-H "Accept: application/json"JavaScript
const response = await fetch('https://s.zo.sa/api/public/v1/products', {
headers: {
Authorization: `Bearer ${process.env.ZO_API_KEY}`,
Accept: 'application/json',
},
});
console.log(response.status, await response.json());PHP
<?php
$ch = curl_init('https://s.zo.sa/api/public/v1/products');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ZO_API_KEY'),
'Accept: application/json',
],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
echo $status, PHP_EOL, $body, PHP_EOL;Python
import os
import requests
response = requests.get(
"https://s.zo.sa/api/public/v1/products",
headers={
"Authorization": f"Bearer {os.environ['ZO_API_KEY']}",
"Accept": "application/json",
},
timeout=30,
)
print(response.status_code, response.json()){
"data": [
{
"id": 501,
"type": "physical",
"status": "active",
"name": {
"ar": "...",
"en": "Blue T-shirt"
},
"description": {
"ar": "...",
"en": "A cotton T-shirt in blue."
},
"slug": "blue-t-shirt",
"url": "https://s.zo.sa/my-store/p/blue-t-shirt",
"images": [],
"images_pending": [],
"categories": [
{
"id": 12,
"name": {
"ar": "...",
"en": "T-shirts"
},
"slug": "t-shirts"
}
],
"brand": null,
"variants": [
{
"id": 811,
"sku": "TSHIRT-BLUE-M",
"barcode": "6281234567895",
"price": 2500,
"sale_price": null,
"quantity": 37,
"unlimited": false,
"hidden": false,
"weight_grams": 250,
"options": []
}
],
"sale_starts_at": null,
"sale_ends_at": null,
"created_at": "2026-11-20T09:12:44Z",
"updated_at": "2026-11-23T06:01:53Z"
}
],
"meta": {
"per_page": 50,
"next_cursor": "MjAyNi0xMS0yM1QwNjowMTo1My4wMDAwMDArMDA6MDB8NTAx"
}
}Example. Shortened to one row of the page. next_cursor is opaque: pass it back as cursor, never build it.
Responses
200A page of products.
Response schema
dataarray of objectsrequired16 fields
idintegerrequiredtypestringrequiredstatusstringrequirednameobjectrequired2 fields
arstringrequirednullableenstringrequirednullable
descriptionobjectrequired2 fields
arstringrequirednullableenstringrequirednullable
slugstringrequiredurlstring (uri)requiredThe product page on the storefront.imagesarray of objectsrequired4 fields
idintegerrequiredurlstring (uri)requiredaltstringrequirednullableReserved; null until images carry alt text.sortintegerrequired
images_pendingarray of objectsrequiredPicture links sent in a write that are copied in the background, usually within seconds. A link stays here with status pending until its copy joins images (and product.updated is sent), or with status failed when it could not be copied; failed links stay until the next picture write. Empty when nothing waits.3 fields
source_urlstring (uri)requiredThe link as it was sent.statusstringrequirederrorstringrequirednullableWhy a failed link was not copied; null while pending. too_many_images when the product already had 10 pictures by the time the copy finished; copy_failed when the copy job itself stopped, or ran out of time before this link (a job downloads for 60 seconds at most, 10 per link), so send it again in a new write.
categoriesarray of objectsrequired3 fields
idintegerrequirednameobjectrequired2 fields
arstringrequirednullableenstringrequirednullable
slugstringrequired
brandobjectrequirednullable3 fields
idintegerrequirednameobjectrequired2 fields
arstringrequirednullableenstringrequirednullable
slugstringrequirednullableReserved; null until brands carry slugs.
variantsarray of objectsrequired10 fields
idintegerrequiredskustringrequirednullablebarcodestringrequirednullablepriceintegerrequiredHalalas.sale_priceintegerrequirednullableHalalas. Applies only between the product's sale_starts_at and sale_ends_at (a null end is open, so both null means always); outside that window the variant sells at price.quantityintegerrequiredStock across all branches.unlimitedbooleanrequiredTrue when stock is not tracked; quantity is then no limit.hiddenbooleanrequiredHidden from shoppers by the merchant; still part of the catalogue.weight_gramsintegerrequirednullableoptionsarray of objectsrequired2 fields
nameobjectrequired2 fields
arstringrequirednullableenstringrequirednullable
valueobjectrequired2 fields
arstringrequirednullableenstringrequirednullable
sale_starts_atstring (date-time)requirednullableWhen the variants' sale_price starts to apply; null means from any time.sale_ends_atstring (date-time)requirednullableWhen the variants' sale_price stops applying; null means no end.created_atstring (date-time)requiredupdated_atstring (date-time)required
metaobjectrequired2 fields
per_pageintegerrequirednext_cursorstringrequirednullablePass as cursor for the next page; null on the last page.
401Missing, unknown, revoked or expired key.
An error object: {"error": {"code", "message", "fields"}}.
402The store's plan does not include this feature (error code feature_locked, with the feature and the plan that has it). Every operation answers it with feature public_api when the key's store is not on the Pro plan.
An error object: {"error": {"code", "message", "fields"}}.
403The key lacks the scope (code insufficient_scope, naming it in scope), the caller's address is not allowed (ip_not_allowed), or the store is suspended (store_suspended: reads stay allowed, every write answers this).
An error object: {"error": {"code", "message", "fields"}}.
422A query parameter is invalid (code validation_failed, with fields).
An error object: {"error": {"code", "message", "fields"}}.
429Too many requests (code rate_limited); see Retry-After.
An error object: {"error": {"code", "message", "fields"}}.