# Digimap API

> Returns products, variants, prices, collections and search results from the public catalog of the Digimap Shopify store.

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

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

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `handle` | string | yes | Product handle, the slug of its page, such as erigo-progressive-tee-the-flag-white-kaos-unisex. (e.g. iphone-15-mtpd3id-a) |
| `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/digimap/product?handle=iphone-15-mtpd3id-a" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/digimap/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 |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 250. (default 30; 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: `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/digimap/products?limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/digimap/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 |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 250. (default 30; 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: `description` (string), `handle` (string), `id` (string), `imageUrl` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/digimap/collections?limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/digimap/collection

One collection of a Shopify store by its handle.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `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/digimap/collection?handle=accessories" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/digimap/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 |
|---|---|---|---|
| `handle` | string | yes | Collection handle, such as accessories. (e.g. accessories) |
| `limit` | integer | no | Items per page, 1 to 250. (default 30; 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: `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/digimap/collectionProducts?handle=accessories&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/digimap/search

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

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search the store for, such as tee. (e.g. iphone) |
| `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/digimap/search?query=iphone&resultsPerKind=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/digimap/related

Products a Shopify store recommends with one product.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `productId` | string | yes | Numeric product id, the id field of a product. (e.g. 8433960910999) |
| `limit` | integer | no | Items per page, 1 to 10. (default 10) |
| `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/digimap/related?productId=8433960910999" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/digimap/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 |
|---|---|---|---|
| `variantId` | string | yes | Numeric variant id, the id field of a product's variants. (e.g. 44327322845335) |
| `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/digimap/variant?variantId=44327322845335" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/digimap/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 |
|---|---|---|---|
| `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/digimap/shop" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
