# Microsoft Store API

> Returns Microsoft Store app details, search results, multiple products by id, and rating summaries.

Category: Developer & Tech. Region: global. 4 endpoints at `https://api.hoshime.com/v1/microsoftstore/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/microsoftstore
## GET /v1/microsoftstore/app

One Microsoft Store app by its product id: publisher, description, rating, price, release and last update.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Store product id, 12 letters and digits, such as 9WZDNCRFHVJL. (e.g. 9WZDNCRFHVJL) |
| `market` | string | no | Two-letter market for prices and availability, such as US or GB. (default US) |
| `locale` | string | no | Language and region of the titles and texts, such as en-US or fr-FR. (default en-US) |
| `device` | string | no | Device family the listing is for: Windows.Desktop, Windows.Xbox, Windows.Mobile, Windows.Holographic or Windows.Team. (one of Windows.Desktop, Windows.Xbox, Windows.Mobile, Windows.Holographic, Windows.Team; default Windows.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: `category` (string), `description` (string), `displayPrice` (string), `id` (string), `images` (Image[]), `images[].height` (any), `images[].url` (string), `images[].width` (any), `platforms` (string[]), `price` (Money), `price.amount` (string), `price.currency` (string), `rating` (number (double)), `releasedAt` (string), `reviewCount` (integer (int64)), `seller` (string), `title` (string), `updatedAt` (string), `url` (string), `websiteUrl` (string)

```bash
curl "https://api.hoshime.com/v1/microsoftstore/app?id=9WZDNCRFHVJL" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/microsoftstore/search

Microsoft Store apps matching a search, in the order the store ranks them.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search for, such as whatsapp. (e.g. whatsapp) |
| `limit` | integer | no | Items per page, 1 to 50. (default 10) |
| `market` | string | no | Two-letter market for prices and availability, such as US or GB. (default US) |
| `locale` | string | no | Language and region of the titles and texts, such as en-US or fr-FR. (default en-US) |
| `device` | string | no | Device family the listing is for: Windows.Desktop, Windows.Xbox, Windows.Mobile, Windows.Holographic or Windows.Team. (one of Windows.Desktop, Windows.Xbox, Windows.Mobile, Windows.Holographic, Windows.Team; default Windows.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: `description` (string), `displayPrice` (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)), `releasedAt` (string), `reviewCount` (integer (int64)), `seller` (string), `title` (string), `type` (string), `url` (string)

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

## GET /v1/microsoftstore/products

Several Microsoft Store products by their ids in one catalog call: publisher, description, price, rating and release. Ids the store does not know are left out.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `ids` | string | yes | Up to 20 product ids, 12 letters and digits each, separated by commas. (e.g. 9WZDNCRFHVJL,9NKSQGP7F2NH) |
| `market` | string | no | Two-letter market for prices and availability, such as US or GB. (default US) |
| `locale` | string | no | Language and region of the titles and texts, such as en-US or fr-FR. (default en-US) |
| `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: `category` (string), `description` (string), `displayPrice` (string), `id` (string), `images` (Image[]), `images[].height` (any), `images[].url` (string), `images[].width` (any), `platforms` (string[]), `price` (Money), `price.amount` (string), `price.currency` (string), `rating` (number (double)), `releasedAt` (string), `reviewCount` (integer (int64)), `seller` (string), `title` (string), `updatedAt` (string), `url` (string), `websiteUrl` (string)

```bash
curl "https://api.hoshime.com/v1/microsoftstore/products?ids=9WZDNCRFHVJL%2C9NKSQGP7F2NH" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/microsoftstore/ratings

The rating summary of one Microsoft Store product: the average stars and the number of ratings over the last 7 days, 30 days and all time. The store does not publish the text of its reviews.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Store product id, 12 letters and digits, such as 9WZDNCRFHVJL. (e.g. 9WZDNCRFHVJL) |
| `market` | string | no | Two-letter market for prices and availability, such as US or GB. (default US) |
| `locale` | string | no | Language and region of the titles and texts, such as en-US or fr-FR. (default en-US) |
| `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), `periods` (RatingPeriod[]), `periods[].average` (number (double)), `periods[].count` (integer (int64)), `periods[].period` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/microsoftstore/ratings?id=9WZDNCRFHVJL" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
