# iBox Indonesia API

> Returns ibox.co.id product details with price, stock and images, and the homepage promotional banners.

Category: Commerce & Marketplaces. Region: ID. 2 endpoints at `https://api.hoshime.com/v1/ibox/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/ibox
## GET /v1/ibox/product

One product of ibox.co.id: name, price, special price, stock, brand, images and description.

Scope: `social:read` · Units: 1 · Cached: 5 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Product page URL on ibox.co.id, such as https://ibox.co.id/product/iphone-15-plus-ibox. (e.g. https://ibox.co.id/product/iphone-15-plus-ibox) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `brand` (string), `category` (string), `description` (string), `id` (string), `images` (Image[]), `images[].height` (any), `images[].url` (string), `images[].width` (any), `inStock` (boolean), `price` (Money), `price.amount` (string), `price.currency` (string), `quantity` (integer (int64)), `rating` (number (double)), `reviewCount` (integer (int64)), `seller` (string), `sku` (string), `specialPrice` (Money), `specialPrice.amount` (string), `specialPrice.currency` (string), `thumbnail` (string), `title` (string), `type` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/ibox/product?url=https%3A%2F%2Fibox.co.id%2Fproduct%2Fiphone-15-plus-ibox" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ibox/banners

The promotional banners of the ibox.co.id homepage, desktop or mobile set.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `device` | string | no | Which banner set: desktop or mobile. Default desktop. (one of desktop, mobile; default desktop; e.g. desktop) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `endsAt` (string), `id` (string), `image` (Image), `image.height` (any), `image.url` (string), `image.width` (any), `startsAt` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/ibox/banners?device=desktop" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
