Fashion Beauty
H&M logo

H&M API

www2.hm.com

H&M fashion catalog - product details, stock, reviews, recommendations, and promotions.

Actions
4
Category
Fashion Beauty
Login
Not required
Output
JSON

Call the H&M API

Submit a task, then poll the job until it settles. This example runs act_hm_product_page_recommendations.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_hm_product_page_recommendations",
    "params": {
      "article_id": "1320618004"
    }
  }'

4 actions on www2.hm.com

Read

  • Product Page Recommendations

    act_hm_product_page_recommendationsread2 credits / call

    Returns style-with and related product recommendations for a given article ID.

    article_id
    string · required
  • Product Reviews Summary

    act_hm_product_reviews_summaryread3 credits / call

    Returns review count, average rating, and dimension scores for a product SKU.

    sku
    string · required
  • Size Navigation Hint

    act_hm_size_navigation_hintread1 credit / call

    Returns adjacent size up and down navigation and linked article IDs for a product.

    product_key
    string · required
  • SKU Availability

    act_hm_sku_availabilityread1 credit / call

    Returns per-SKU stock availability and low-stock flags for all sizes of a product.

    product_key
    string · required

H&M API questions

Is there an API for H&M?
H&M does not offer a public data API for this, but Anakin Wire provides 4 maintained endpoints for www2.hm.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape H&M data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when www2.hm.com changes its markup, Anakin updates the action.
Do I need a H&M account?
No. Every H&M action listed here runs anonymously — no account and no credentials required.
What does the H&M API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Fashion Beauty APIs

All Fashion Beauty sites