# WooCommerce API

> Returns a WooCommerce store's products, categories, tags, attributes and reviews.

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

One page of a WooCommerce store's products, optionally searched by name.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as woocommerce.com. A hostname only: no scheme, path, port or IP address. (e.g. woocommerce.com) |
| `query` | string | no | Words to search the product names and descriptions for. (e.g. subscriptions) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; 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: `categories` (Category[]), `categories[].id` (string), `categories[].name` (string), `categories[].slug` (string), `description` (string), `id` (string), `images` (Image[]), `images[].height` (any), `images[].url` (string), `images[].width` (any), `inStock` (boolean), `onSale` (boolean), `price` (Money), `price.amount` (string), `price.currency` (string), `rating` (number (double)), `regularPrice` (Money), `regularPrice.amount` (string), `regularPrice.currency` (string), `reviewCount` (integer (int64)), `seller` (string), `sku` (string), `slug` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/woocommerce/products?domain=woocommerce.com&query=subscriptions&limit=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/woocommerce/product

One product of a WooCommerce store by its id, with its full description.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as woocommerce.com. A hostname only: no scheme, path, port or IP address. (e.g. woocommerce.com) |
| `id` | string | yes | Product id, the number the Store API gives the product. (e.g. 18734006989720) |
| `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: `categories` (Category[]), `categories[].id` (string), `categories[].name` (string), `categories[].slug` (string), `description` (string), `id` (string), `images` (Image[]), `images[].height` (any), `images[].url` (string), `images[].width` (any), `inStock` (boolean), `onSale` (boolean), `price` (Money), `price.amount` (string), `price.currency` (string), `rating` (number (double)), `regularPrice` (Money), `regularPrice.amount` (string), `regularPrice.currency` (string), `reviewCount` (integer (int64)), `seller` (string), `sku` (string), `slug` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/woocommerce/product?domain=woocommerce.com&id=18734006989720" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/woocommerce/categories

One page of a WooCommerce store's product categories.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as woocommerce.com. A hostname only: no scheme, path, port or IP address. (e.g. woocommerce.com) |
| `limit` | integer | no | Items per page, 1 to 100. (default 50; e.g. 3) |
| `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: `count` (integer (int64)), `description` (string), `id` (string), `name` (string), `parent` (string), `slug` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/woocommerce/categories?domain=woocommerce.com&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/woocommerce/tags

One page of the product tags of a WooCommerce store, with the number of products in each.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as woocommerce.com. A hostname only: no scheme, path, port or IP address. (e.g. woocommerce.com) |
| `limit` | integer | no | Items per page, 1 to 100. (default 50; 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: `count` (integer (int64)), `id` (string), `name` (string), `slug` (string)

```bash
curl "https://api.hoshime.com/v1/woocommerce/tags?domain=woocommerce.com&limit=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/woocommerce/attributes

The product attributes of a WooCommerce store, such as compatibility or size, with the number of products that use each.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as woocommerce.com. A hostname only: no scheme, path, port or IP address. (e.g. woocommerce.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: `count` (integer (int64)), `id` (string), `name` (string), `taxonomy` (string)

```bash
curl "https://api.hoshime.com/v1/woocommerce/attributes?domain=woocommerce.com" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/woocommerce/reviews

One page of the product reviews of a WooCommerce store, newest first, optionally for one product.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as woocommerce.com. A hostname only: no scheme, path, port or IP address. (e.g. woocommerce.com) |
| `productId` | integer | no | Product id to limit the reviews to, as listed by products. Omit it for all products. |
| `limit` | integer | no | Items per page, 1 to 100. (default 10; 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: `createdAt` (string), `id` (string), `productId` (string), `productName` (string), `rating` (integer (int64)), `reviewer` (string), `text` (string), `url` (string), `verified` (boolean)

```bash
curl "https://api.hoshime.com/v1/woocommerce/reviews?domain=woocommerce.com&limit=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/woocommerce/categoryProducts

One page of the products in one category of a WooCommerce store.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as woocommerce.com. A hostname only: no scheme, path, port or IP address. (e.g. woocommerce.com) |
| `category` | integer | yes | Category id as listed by categories. (e.g. 1028) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; 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: `categories` (Category[]), `categories[].id` (string), `categories[].name` (string), `categories[].slug` (string), `description` (string), `id` (string), `images` (Image[]), `images[].height` (any), `images[].url` (string), `images[].width` (any), `inStock` (boolean), `onSale` (boolean), `price` (Money), `price.amount` (string), `price.currency` (string), `rating` (number (double)), `regularPrice` (Money), `regularPrice.amount` (string), `regularPrice.currency` (string), `reviewCount` (integer (int64)), `seller` (string), `sku` (string), `slug` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/woocommerce/categoryProducts?domain=woocommerce.com&category=1028&limit=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/woocommerce/tagProducts

One page of the products that carry one product tag of a WooCommerce store.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as woocommerce.com. A hostname only: no scheme, path, port or IP address. (e.g. woocommerce.com) |
| `tag` | integer | yes | Tag id as listed by tags. (e.g. 32684) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; 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: `categories` (Category[]), `categories[].id` (string), `categories[].name` (string), `categories[].slug` (string), `description` (string), `id` (string), `images` (Image[]), `images[].height` (any), `images[].url` (string), `images[].width` (any), `inStock` (boolean), `onSale` (boolean), `price` (Money), `price.amount` (string), `price.currency` (string), `rating` (number (double)), `regularPrice` (Money), `regularPrice.amount` (string), `regularPrice.currency` (string), `reviewCount` (integer (int64)), `seller` (string), `sku` (string), `slug` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/woocommerce/tagProducts?domain=woocommerce.com&tag=32684&limit=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/woocommerce/attributeTerms

The values of one product attribute of a WooCommerce store, such as the colours or sizes, with the number of products that use each.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as woocommerce.com. A hostname only: no scheme, path, port or IP address. (e.g. woocommerce.com) |
| `attribute` | integer | yes | Attribute id as listed by attributes. (e.g. 10) |
| `limit` | integer | no | Items per page, 1 to 100. (default 50; e.g. 5) |
| `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: `count` (integer (int64)), `id` (string), `name` (string), `slug` (string)

```bash
curl "https://api.hoshime.com/v1/woocommerce/attributeTerms?domain=woocommerce.com&attribute=10&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/woocommerce/attributeProducts

One page of the products that have one value of a product attribute of a WooCommerce store, such as the products for size M.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `domain` | string | yes | Store domain, such as woocommerce.com. A hostname only: no scheme, path, port or IP address. (e.g. woocommerce.com) |
| `taxonomy` | string | yes | Attribute taxonomy as listed by attributes, such as pa_compatibility. (e.g. pa_compatibility) |
| `termId` | integer | yes | Value id of the attribute as listed by attributeTerms. (e.g. 33417) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; 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: `categories` (Category[]), `categories[].id` (string), `categories[].name` (string), `categories[].slug` (string), `description` (string), `id` (string), `images` (Image[]), `images[].height` (any), `images[].url` (string), `images[].width` (any), `inStock` (boolean), `onSale` (boolean), `price` (Money), `price.amount` (string), `price.currency` (string), `rating` (number (double)), `regularPrice` (Money), `regularPrice.amount` (string), `regularPrice.currency` (string), `reviewCount` (integer (int64)), `seller` (string), `sku` (string), `slug` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/woocommerce/attributeProducts?domain=woocommerce.com&taxonomy=pa_compatibility&termId=33417&limit=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
