# Uniqlo Store Stock API Documentation

<p><strong>Uniqlo Store Stock API</strong> returns the stores near a place and whether each store has one size of a product: store id, name, distance, opening status, stock status, click and collect and departments. Pick the variant with <code>l2_id</code> or with <code>color</code> and <code>size</code> from the product route. Pick the place with <code>keyword</code> (postal code or city of the region) or with <code>lat</code> and <code>lon</code>.</p><p>The stock status shows if a store has the size, not how many pieces. A keyword search can come without distances: then <code>distance</code> and <code>distance_unit</code> are null. Otherwise stores are nearest first. Send <code>price_group</code> when the variant belongs to a price group other than 00. Distances are in miles in the US and UK and in kilometres elsewhere. A place without stores returns 422. A successful request costs 1 credit.</p>

- **Documentation:** [https://scrappa.co/docs/uniqlo-api/uniqlo_store_stock](https://scrappa.co/docs/uniqlo-api/uniqlo_store_stock)
- **API group:** Uniqlo API
- **Endpoint:** `GET https://scrappa.co/api/uniqlo/store-stock`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | No | Product id like E479000-000. Send this or url. |
| `url` | string | No | Full Uniqlo product page url of a supported region. Send this or id. |
| `price_group` | string | No | Two digit price group of the search item, for example 00 (default) or 01. |
| `region` | string | No | Region: us (default) or jp. |
| `l2_id` | string | No | 8 digit variant id from the variants of the product route. Send this or color and size. |
| `color` | string | No | Colour code like 04 or COL04. Use with size. |
| `size` | string | No | Size code like INS025 or 025. Use with color. |
| `keyword` | string | No | Postal code or city of the region. Send this or lat and lon. |
| `lat` | number | No | Latitude of the place. Use with lon. |
| `lon` | number | No | Longitude of the place. Use with lat. |
| `limit` | integer | No | Number of stores, 1 to 25 (default 5). |

## Example response

```json
{
    "data": {
        "l2_id": "09463525",
        "total": 91,
        "region": "us",
        "stores": [
            {
                "name": "UNIQLO SOHO",
                "distance": 0.1,
                "in_stock": false,
                "store_id": "101539",
                "departments": [
                    "men",
                    "women",
                    "kids",
                    "baby"
                ],
                "open_status": "OPEN",
                "stock_status": "OUT_OF_STOCK",
                "distance_unit": "mi",
                "open_status_note": null,
                "click_and_collect": false
            },
            {
                "name": "UNIQLO Union Square",
                "distance": 0.9,
                "in_stock": false,
                "store_id": "131897",
                "departments": [
                    "men",
                    "women"
                ],
                "open_status": "OPEN",
                "stock_status": "OUT_OF_STOCK",
                "distance_unit": "mi",
                "open_status_note": null,
                "click_and_collect": false
            }
        ],
        "keyword": "10012",
        "product_id": "E479000-000"
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "store-stock"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The product does not exist in the chosen region. This response is not billable. |
| 422 | Validation Error | A parameter is missing or invalid, or the filter, page or place matches nothing. This response is not billable. |
| 503 | Upstream Unavailable | Uniqlo could not be reached, or it returned data that does not match the request. This response is not billable and is retryable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
