+H&M API
H&M products, prices, sale flags, colors and size availability as JSON, for any H&M market.
The API.SH H&M API returns public hm.com product data as JSON for the market you choose, such as en_us or en_gb. Search by keyword, browse a category, or open one article by number or link. Products include name, price, regular price and sale flag, color, category, availability, sizes with stock levels, other colors and images.
- 3 endpoints
- from $1 / 1,000 calls
- 1,000 free credits / month
- failed calls free
GET https://api.api.sh/hm/v1/ search
{ "success": true } What you can build with the H&M API
Price and sale tracking
Compare price against regular price and the sale flag to follow markdowns by product and market.
Size and stock monitoring
Read sizes with stock levels to see when a size sells out or returns.
Assortment and trend research
Browse categories sorted by newest, and filter by department or facet, to see what H&M launches.
Cross-market price comparison
Request the same article in several locales, such as en_us and en_gb, to compare pricing.
H&M data you get
Field names from real responses. Numbers come parsed, URLs absolute, dates in ISO 8601.
H&M API endpoints and prices
Every H&M endpoint costs 1 credit per call: credits are $1 per 1,000 on a monthly plan, $2 pay-as-you-go. Pricing
| H&M product search /hm/ | $1 · $2 PAYG 1 credit |
| H&M category listing /hm/ | $1 · $2 PAYG 1 credit |
| H&M product /hm/ | $1 · $2 PAYG 1 credit |
Call the H&M API
H&M product search: GET https://api.api.sh/hm/
curl "https://api.api.sh/hm/v1/search?q=shirt" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/hm/v1/search",
params={"q": "shirt"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/hm/v1/search");
url.searchParams.set("q", "shirt");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); # Google Sheets (API.SH add-on)
=APISH("/hm/v1/search", "q", "shirt")
# Zapier, Make, n8n (verified node): pick the API.SH app,
# choose "H&M" and "H&M product search".
# AI agents (Claude, ChatGPT, Cursor): add the
# API.SH MCP server https://api.sh/mcp - Create a free accountConfirm your email and get 1,000 free credits every month. No card needed.
- Create an API keyOne key works for all 482 platforms.
- Send the requestJSON back in one call. Add
output=csvoroutput=ndjsonfor files.
Why API.SH for H&M data
- Public data only: no H&M login, cookies or account needed
- One key and one response shape for H&M and 481 other platforms
- Built and maintained by API.SH, not third-party publishers
- Pay per call; errors on our side cost nothing
- Live status for every endpoint
API.SH vs the official H&M API
H&M does not offer a public open API for product data, according to Google's AI overview. H&M Group runs an Integration Tech Hub for authorized partners and suppliers, and sellers connect through its marketplace. API.SH reads public product pages with no partner approval.
Instead of running an Apify H&M actor or maintaining your own scraper against hm.com, you get one key, a fixed price per call and the same JSON shape as every other store.
H&M API questions
What H&M data can I get?+
Keyword search with sort, department and facet filters (/hm/v1/search), category listings (/hm/v1/category) and one article by number or link (/hm/v1/product), each for a market locale. Fields include price, regular price, sale flag, color, availability and sizes with stock.
How much does the H&M API cost?+
Every H&M endpoint costs 1 credit per call. On a monthly plan 1,000 credits cost $1 (Starter is $50/month for 50,000 credits). Pay-as-you-go is $2 per 1,000 credits, with top-ups from $15 that never expire.
Is there a free trial?+
Yes. Every account gets 1,000 free credits every month. That is 1,000 calls to /hm/v1/category at 1 credit each.
Is there an official H&M API?+
Not a public one. H&M Group has an Integration Tech Hub for approved partners and suppliers and a marketplace connection through providers such as ChannelEngine, but no open product API. API.SH is unofficial and reads public product pages.
Do I need a H&M account or login?+
No. API.SH reads public hm.com product pages only. No endpoint uses a login, cookies or anyone's account, and nothing places orders.
How do I get started?+
1. Sign up at api.sh. 2. Copy your API key. 3. Call /hm/v1/search with a q such as jeans and a locale such as en_us. Request examples and every parameter are in the docs at https://api.sh/docs. You can also use the JS or Python SDK, Google Sheets, Zapier, Make, n8n or the MCP server at https://api.sh/mcp.
Can I get H&M data for different countries?+
Yes. Pass a locale such as en_us, en_gb, de_de, fr_fr or sv_se to search, category and product to get that market's prices and availability.
Is scraping H&M legal?+
API.SH reads only data that H&M shows publicly, with no login. Whether your use is allowed also depends on the site's terms and the laws where you are, including privacy rules for any personal data, so check both before you build on it. This is general information, not legal advice.