# Shopify API

> Returns a Shopify store's public products, variants, prices, collections and shop details.

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

One page of a Shopify store's products, from its public catalog.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as erigostore.co.id. A hostname only: no scheme, path, port or IP address. (e.g. erigostore.co.id) |
| `limit` | integer | no | Items per page, 1 to 250. (default 30; e.g. 2) |
| `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: `available` (boolean), `description` (string), `handle` (string), `id` (string), `images` (Image[]), `images[].height` (any), `images[].url` (string), `images[].width` (any), `price` (Money), `price.amount` (string), `price.currency` (string), `productType` (string), `publishedAt` (string), `rating` (number (double)), `reviewCount` (integer (int64)), `seller` (string), `tags` (Tag[]), `tags[].name` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/shopify/products?domain=erigostore.co.id&limit=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/shopify/product

One product of a Shopify store with its variants and prices.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as erigostore.co.id. A hostname only: no scheme, path, port or IP address. (e.g. erigostore.co.id) |
| `handle` | string | yes | Product handle, the slug of its page, such as erigo-progressive-tee-the-flag-white-kaos-unisex. (e.g. erigo-progressive-tee-the-flag-white-kaos-unisex) |
| `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: `available` (boolean), `comparePrice` (string), `description` (string), `handle` (string), `id` (string), `images` (Image[]), `images[].height` (any), `images[].url` (string), `images[].width` (any), `price` (Money), `price.amount` (string), `price.currency` (string), `productType` (string), `rating` (number (double)), `reviewCount` (integer (int64)), `seller` (string), `tags` (Tag[]), `tags[].name` (string), `title` (string), `url` (string), `variants` (Variant[]), `variants[].available` (boolean), `variants[].id` (string), `variants[].price` (string), `variants[].sku` (string), `variants[].title` (string)

```bash
curl "https://api.hoshime.com/v1/shopify/product?domain=erigostore.co.id&handle=erigo-progressive-tee-the-flag-white-kaos-unisex" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/shopify/collections

One page of a Shopify store's collections, its product groups.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as erigostore.co.id. A hostname only: no scheme, path, port or IP address. (e.g. erigostore.co.id) |
| `limit` | integer | no | Items per page, 1 to 250. (default 30; e.g. 2) |
| `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), `handle` (string), `id` (string), `imageUrl` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/shopify/collections?domain=erigostore.co.id&limit=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/shopify/shop

The public details of a Shopify store: name, location, currency and size.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as erigostore.co.id. A hostname only: no scheme, path, port or IP address. (e.g. erigostore.co.id) |
| `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: `city` (string), `country` (string), `currency` (string), `description` (string), `domain` (string), `id` (string), `myshopifyDomain` (string), `name` (string), `province` (string), `publishedCollectionsCount` (integer (int64)), `publishedProductsCount` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/shopify/shop?domain=erigostore.co.id" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/shopify/collection

One collection of a Shopify store by its handle.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as erigostore.co.id. A hostname only: no scheme, path, port or IP address. (e.g. erigostore.co.id) |
| `handle` | string | yes | Collection handle, the slug of its page, such as accessories. (e.g. accessories) |
| `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), `handle` (string), `id` (string), `imageUrl` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/shopify/collection?domain=erigostore.co.id&handle=accessories" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/shopify/collectionProducts

One page of the products in one collection of a Shopify store.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as erigostore.co.id. A hostname only: no scheme, path, port or IP address. (e.g. erigostore.co.id) |
| `handle` | string | yes | Collection handle, such as accessories. (e.g. accessories) |
| `limit` | integer | no | Items per page, 1 to 250. (default 30; e.g. 2) |
| `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: `available` (boolean), `description` (string), `handle` (string), `id` (string), `images` (Image[]), `images[].height` (any), `images[].url` (string), `images[].width` (any), `price` (Money), `price.amount` (string), `price.currency` (string), `productType` (string), `publishedAt` (string), `rating` (number (double)), `reviewCount` (integer (int64)), `seller` (string), `tags` (Tag[]), `tags[].name` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/shopify/collectionProducts?domain=erigostore.co.id&handle=accessories&limit=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/shopify/search

Search a Shopify store's products, collections and popular search terms.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as erigostore.co.id. A hostname only: no scheme, path, port or IP address. (e.g. erigostore.co.id) |
| `query` | string | yes | Words to search the store for, such as tee. (e.g. tee) |
| `types` | string | no | Comma list of what to return: product, collection, query (search term suggestions). (default product) |
| `resultsPerKind` | integer | no | Results per kind, from 1 to 10. (default 10; e.g. 3) |
| `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: `collections` (Collection[]), `collections[].description` (string), `collections[].handle` (string), `collections[].id` (string), `collections[].imageUrl` (string), `collections[].title` (string), `collections[].updatedAt` (string), `collections[].url` (string), `products` (Product[]), `products[].available` (boolean), `products[].description` (string), `products[].handle` (string), `products[].id` (string), `products[].images` (Image[]), `products[].price` (Money), `products[].productType` (string), `products[].publishedAt` (string), `products[].rating` (number (double)), `products[].reviewCount` (integer (int64)), `products[].seller` (string), `products[].tags` (Tag[]), `products[].title` (string), `products[].url` (string), `queries` (SearchQuery[]), `queries[].text` (string)

```bash
curl "https://api.hoshime.com/v1/shopify/search?domain=erigostore.co.id&query=tee&resultsPerKind=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/shopify/related

Products a Shopify store recommends with one product.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as erigostore.co.id. A hostname only: no scheme, path, port or IP address. (e.g. erigostore.co.id) |
| `productId` | string | yes | Numeric product id, the id field of a product. (e.g. 10068493762873) |
| `limit` | integer | no | Items per page, 1 to 10. (default 10; e.g. 2) |
| `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: `available` (boolean), `description` (string), `handle` (string), `id` (string), `images` (Image[]), `images[].height` (any), `images[].url` (string), `images[].width` (any), `price` (Money), `price.amount` (string), `price.currency` (string), `productType` (string), `publishedAt` (string), `rating` (number (double)), `reviewCount` (integer (int64)), `seller` (string), `tags` (Tag[]), `tags[].name` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/shopify/related?domain=erigostore.co.id&productId=10068493762873&limit=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/shopify/variant

One variant of a Shopify store product, such as one size, with its price.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as erigostore.co.id. A hostname only: no scheme, path, port or IP address. (e.g. erigostore.co.id) |
| `variantId` | string | yes | Numeric variant id, the id field of a product's variants. (e.g. 51433424847161) |
| `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: `comparePrice` (string), `id` (string), `option1` (string), `option2` (string), `option3` (string), `price` (string), `productId` (string), `sku` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/shopify/variant?domain=erigostore.co.id&variantId=51433424847161" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/shopify/pages

One page of a Shopify store's own pages, such as About Us, FAQ or store policies, with their titles and dates.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as erigostore.co.id. A hostname only: no scheme, path, port or IP address. (e.g. erigostore.co.id) |
| `limit` | integer | no | Items per page, 1 to 250. (default 30; e.g. 2) |
| `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: `handle` (string), `id` (string), `publishedAt` (string), `text` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/shopify/pages?domain=erigostore.co.id&limit=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/shopify/page

One page of a Shopify store, such as About Us or FAQ, with its text.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as erigostore.co.id. A hostname only: no scheme, path, port or IP address. (e.g. erigostore.co.id) |
| `handle` | string | yes | Page handle, the slug of its page, such as about. (e.g. about) |
| `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: `handle` (string), `id` (string), `publishedAt` (string), `text` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/shopify/page?domain=erigostore.co.id&handle=about" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/shopify/blogPosts

Latest articles of one blog of a Shopify store, newest first, from the blog's Atom feed; the blog is named by its handle, such as news.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as erigostore.co.id. A hostname only: no scheme, path, port or IP address. (e.g. erigostore.co.id) |
| `blog` | string | no | Blog handle, the slug in its URL, such as news. (default news; e.g. news) |
| `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: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `id` (string), `publishedAt` (string), `text` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/shopify/blogPosts?domain=erigostore.co.id&blog=news" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
