跳到主要内容
所有网站
Data API

Hm Data API

按需获取结构化 JSON 数据,内置反机器人绕过。

4 个端点已为你处理Akamai · akamai_seccpt
hm.comGET/hm/categoriesGET/hm/productGET/hm/search{ } JSON
示例(实时抓取) 打开演练场
JSON 响应结构化数据 · 无页面视图
{
"market": "us",
"locale": "en_us",
"department": "men",
"count": 14,
"departments": [
{
"id": "men",
"name": "Men",
"url": "https://www2.hm.com/en_us/men.html",
"depth": 0,
"children": [
{
"id": "men/new-arrivals",
"name": "New in",
"url": "https://www2.hm.com/en_us/men/new-arrivals.html",
"depth": 1
},
{
"id": "men/global-node-1",
"name": "Holiday occasionwear",
"url": "https://www2.hm.com/en_us/men/global-node-1.html",
"depth": 1
},
{
"id": "men/global-node-2",
"name": "Quarter-Zip Styles",
"url": "https://www2.hm.com/en_us/men/global-node-2.html",
"depth": 1,
"marker": "New"
},
{
"id": "men/local-occasion",
"name": "The Holiday Gift Guide",
"url": "https://www2.hm.com/en_us/men/local-occasion.html",
"depth": 1
},
{
"id": "men/local-occasion-2",
"name": "UP TO 50% OFF SELECT STYLES",
"url": "https://www2.hm.com/en_us/men/local-occasion-2.html",
"depth": 1,
"marker": "New"
}
]
}
]
}
GET/v1/hm/categories1 额度 / 次 已验证

Category Tree

The H&M shop menu for a market: departments (Women, Men, Kids, Home, Beauty) with their nested categories, each with an id, name, URL and depth.

已为你处理:Akamaiakamai_seccpt
参数
名称类型必填描述
高级筛选
departmentstring否Only this department, by id or name, e.g. women, men, kids.
max_depthinteger否Deepest level to include (0 = departments only). Default: full tree.
marketstring否Store market. (默认值:us)