H&M API endpoint
Returns H&M physical retail store locations near a point: name, phone, full address, and coordinates. Either search, or both lat and lng, is required. search is a free-text zip code or place name that is first resolved to coordinates; if it does not resolve to any location, a well-formed empty result is returned rather than an error. lat and lng, when given directly, skip that resolution step. radius_meters is optional (1000 to 50000, defaults to 10000). A location with no stores within the radius returns a well-formed empty result rather than an error.
/hm/storesSearches H&M's own physical retail store locator. Provide search (a free-text zip code or place name, resolved to coordinates first), or both lat and lng directly.
radius_meters is optional, in meters, 1000 to 50000, defaults to 10000.
Notable response behavior:
lat/lng in the response always reflect the coordinates actually searched -- the caller's own values when given directly, or the coordinates resolved from search otherwise.search value that does not resolve to any location returns a well-formed empty result (count: 0, stores: []), not an error.| Field | Filled in, of 2 checked | Values in the sample |
|---|---|---|
| store_code | 2 | |
| store_class | 2 | “Red” |
| name | 2 | “Roosevelt Collection” and 1 other value |
| phone | 1 | |
| address | 2 | |
| city | 2 | “Chicago” |
| state | 2 | “Illinois” |
| postal_code | 2 | |
| country | 2 | “USA” |
| latitude | 2 | |
| longitude | 2 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| search | string | No | Free-text zip code or place name to resolve to coordinates | 10001 | |
| lat | number | No | Latitude, requires lng | 40.7128 | |
| lng | number | No | Longitude, requires lat | -74.006 | |
| radius_meters | integer | No | 10000 | Search radius in meters, 1000 to 50000, defaults to 10000 | 10000 |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/hm/stores" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"lat": 41.8781,
"lng": -87.6298,
"radius_meters": 15000,
"count": 2,
"stores": [
{
"store_code": "US0181",
"store_class": "Red",
"name": "Roosevelt Collection",
"phone": "+1-855-466-7467",
"address": "150 W Roosevelt Rd",
"city": "Chicago",
"state": "Illinois",
"postal_code": "60605",
"country": "USA",
"latitude": 41.868378,
"longitude": -87.632216
}
]
}
}Request schema
No body schema
Response schema
#/definitions/hm.storesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | hm.StoreResponse | No | ||||
| data.count | integer | No | ||||
| data.fetched_at | string | No | ||||
| data.lat | number | No | ||||
| data.lng | number | No | ||||
| data.radius_meters | integer | No | ||||
| data.search | string | No | ||||
| data.source_url | string | No | ||||
| data.stores | array | No | ||||
| data.stores[].address | string | No | ||||
| data.stores[].city | string | No | ||||
| data.stores[].country | string | No | ||||
| data.stores[].latitude | number | No | ||||
| data.stores[].longitude | number | No | ||||
| data.stores[].name | string | No | ||||
| data.stores[].phone | string | No | ||||
| data.stores[].postal_code | string | No | ||||
| data.stores[].state | string | No | ||||
| data.stores[].store_class | string | No | ||||
| data.stores[].store_code | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/hm/stores" \
-H "x-api-key: $CRAWLORA_API_KEY"