# Amazon API

> Returns Amazon search results, product details by ASIN and Best Sellers rankings per marketplace, with prices, ratings, sellers and images.

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

Amazon search results for a query in one marketplace: title, price, rating, rating count, image and sponsored flag of each product, one page at a time.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Search terms, such as laptop. (e.g. laptop) |
| `domain` | string | no | Amazon marketplace: the part after amazon., such as com, co.uk, de, co.jp or sg. (one of com, co.uk, de, fr, it, es, nl, se, pl, ca, com.au, co.jp, in, sg, com.br, com.mx, com.tr, ae, sa; default com) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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: `badge` (string), `description` (string), `id` (string), `images` (Image[]), `images[].height` (any), `images[].url` (string), `images[].width` (any), `price` (Money), `price.amount` (string), `price.currency` (string), `rating` (number (double)), `reviewCount` (integer (int64)), `seller` (string), `sponsored` (boolean), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/amazon/search?query=laptop" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/amazon/product

One Amazon product by ASIN or product URL: title, brand, price, rating, review count, availability, seller, feature bullets and images.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | ASIN, such as B0GR1JTFP8, or an amazon product URL (its marketplace then applies). (e.g. B0GR1JTFP8) |
| `domain` | string | no | Amazon marketplace: the part after amazon., such as com, co.uk, de, co.jp or sg. (one of com, co.uk, de, fr, it, es, nl, se, pl, ca, com.au, co.jp, in, sg, com.br, com.mx, com.tr, ae, sa; default com) |
| `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: `availability` (string), `brand` (string), `description` (string), `features` (string[]), `id` (string), `images` (Image[]), `images[].height` (any), `images[].url` (string), `images[].width` (any), `price` (Money), `price.amount` (string), `price.currency` (string), `rating` (number (double)), `reviewCount` (integer (int64)), `seller` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/amazon/product?id=B0GR1JTFP8" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/amazon/bestsellers

Amazon Best Sellers of one department or category in a marketplace, ranked: title, price, rating, rating count and image of each product, one page at a time.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `category` | string | no | Best Sellers department, such as electronics, or a department and a node id, such as electronics/565108. (default electronics; e.g. electronics) |
| `domain` | string | no | Amazon marketplace: the part after amazon., such as com, co.uk, de, co.jp or sg. (one of com, co.uk, de, fr, it, es, nl, se, pl, ca, com.au, co.jp, in, sg, com.br, com.mx, com.tr, ae, sa; default com) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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: `description` (string), `id` (string), `images` (Image[]), `images[].height` (any), `images[].url` (string), `images[].width` (any), `price` (Money), `price.amount` (string), `price.currency` (string), `rank` (integer (int64)), `rating` (number (double)), `reviewCount` (integer (int64)), `seller` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/amazon/bestsellers?category=electronics" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
