# Eraspace API

> Returns Eraspace.com product details, homepage promotional banners and top-level homepage shelves.

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

One product of eraspace.com: 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 eraspace.com, such as https://eraspace.com/eraspace/produk/oppo-a6s. (e.g. https://eraspace.com/eraspace/produk/oppo-a6s) |
| `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), `thumbnailUrl` (string), `title` (string), `type` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/eraspace/product?url=https%3A%2F%2Feraspace.com%2Feraspace%2Fproduk%2Foppo-a6s" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/eraspace/banners

The promotional banners of the eraspace.com 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), `height` (integer (int64)), `id` (string), `imageUrl` (string), `startsAt` (string), `title` (string), `url` (string), `width` (integer (int64))

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

## GET /v1/eraspace/topCategories

The top-level shelves of the eraspace.com homepage (store, brand and gaming shelves), with their page paths.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `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: `id` (string), `name` (string), `position` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/eraspace/topCategories" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
