# Sayurbox



Public product data from Sayurbox's farm-to-door catalog — browse a category's shelf, then read any listing in full: price range, availability, rating, gallery, and description.



## Sayurbox Category Listing

One shelf of Sayurbox's farm-to-door catalog — the product list the category page publishes, with photo and title on every card.

- Method: `GET`
- Path: `/v1/marketplace/sayurbox/categories/{category}`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `category` | path segment | required | A category page slug — the `buah-segar-afghsmue` form of any category URL on the board. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/marketplace/sayurbox/categories/%7Bcategory%7D \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "category": "buah-segar-afghsmue",
    "items": [
      {
        "slug": "pisang-cavendish-obkzgunb",
        "name": "Pisang Cavendish",
        "image": "https://img.sayurbox.com/45ba11c963513366a6c86ed2483a1ff5?tr=f-auto,w-480",
        "url": "https://www.sayurbox.com/product/pisang-cavendish-obkzgunb"
      }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-20T14:45:00.000Z",
    "age_seconds": 120,
    "next_update_at": "2026-08-20T14:50:00.000Z"
  }
}
```

## Sayurbox Product Detail

One Sayurbox listing in full — the price range across its purchasable variants, availability, rating, gallery, and description.

- Method: `GET`
- Path: `/v1/marketplace/sayurbox/products/{product}`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `product` | path segment | required | The listing slug from a category card's `url` — the segment after `/product/`. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/marketplace/sayurbox/products/%7Bproduct%7D \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "slug": "pisang-cavendish-obkzgunb",
    "name": "Pisang Cavendish",
    "description": "Beli Pisang Cavendish online di Sayurbox.",
    "price_min": 10900,
    "price_max": 41900,
    "offer_count": 8,
    "in_stock": true,
    "rating": 5,
    "rating_count": 210,
    "images": [
      "https://img.sayurbox.com/45ba11c963513366a6c86ed2483a1ff5?tr=f-auto,w-360"
    ],
    "url": "https://www.sayurbox.com/product/pisang-cavendish-obkzgunb"
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-20T14:45:00.000Z",
    "age_seconds": 60,
    "next_update_at": "2026-08-20T14:50:00.000Z"
  }
}
```