# HM Product Description (`pintostudio/hm-product-description`) Actor

Get product description from h\&m

- **URL**: https://apify.com/pintostudio/hm-product-description.md
- **Developed by:** [Pinto Studio](https://apify.com/pintostudio) (community)
- **Categories:** E-commerce, Automation, Social media
- **Stats:** 21 total users, 2 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 1.00 out of 5 stars

## Pricing

$5.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## H\&M PRODUCT Description Actor Documentation

### Overview

This Apify actor gets products description from h\&m website, one of the world's largest retail digital platforms. It enables developers, and researchers to programmatically access to H\&M's extensive products database through a simple API interface.

### Features

- Get h\&m product description
- Easy integration with other applications and workflows
- Efficient data extraction with rate limiting and error handling

### Input Parameters

- `productUrl` (required): Product url

### Usage Examples

#### Basic Usage

```javascript
const input = {
    "productUrl": "https://www2.hm.com/en_us/productpage.1211408001.html"
   

   
};
```

### Output Format

The actor returns data in JSON format with the following structure:

```json
{
  "id": "1211408001",
  "name": "Loose Fit Parachute Cargo Pants",
  "brand": "H&M",
  "description": "Loose-fit parachute cargo pants in woven fabric. Elasticized waistband, drawstring with cord stopper, and mock fly. Diagonal side pockets, a mock welt back pocket, and leg pockets with flap. Wide legs with pleats at knees for added volume. Elasticized drawstring at hems with cord stopper.",
  "price": "49.99",
  "currency": "USD",
  "itemCondition": "NewCondition",
  "sku": "1211408001",
  "color": "Black",
  "category": "Trousers",
  "images": [
    "https://image.hm.com/assets/hm/f5/6c/f56c6f76beca20b6e6eac7092c00801a9fe37fbd.jpg?imwidth=768",
    "https://image.hm.com/assets/hm/23/07/2307ac86cfa23099a92c75265373b1bf5a00c86e.jpg?imwidth=768",
    "https://image.hm.com/assets/hm/09/12/091231b4b87d90fd4dab43374e0e0be30976c8ad.jpg?imwidth=768",
    "https://image.hm.com/assets/hm/58/67/58671ee32b81e00b9379f640dd3b3eb3a0e5d063.jpg?imwidth=768",
    "https://image.hm.com/assets/hm/c1/c2/c1c292a11b2b695e455d6936441c864102abceec.jpg?imwidth=768",
    "https://image.hm.com/assets/hm/3c/4d/3c4d6c29c26e82ebb0662ce276d52e739a9cd671.jpg?imwidth=768",
    "https://image.hm.com/assets/hm/dd/c4/ddc4e127bb8b40bf9d1cc1e57cbbb1e00660f7e9.jpg?imwidth=768",
    "https://image.hm.com/assets/hm/ab/9c/ab9cb6df40240648dd639b999a1fc695ee243898.jpg?imwidth=768",
    "https://image.hm.com/assets/hm/21/92/2192e0e095eb42ea4e97f93b8b9daea61442f695.jpg?imwidth=768"
  ],
  "rating": "",
  "reviewCount": "",
  "variants": [
    {
      "sku": "1211408001001",
      "price": "49.99",
      "currency": "USD"
    },
    {
      "sku": "1211408001002",
      "price": "49.99",
      "currency": "USD"
    },
    {
      "sku": "1211408001003",
      "price": "49.99",
      "currency": "USD"
    },
    {
      "sku": "1211408001004",
      "price": "49.99",
      "currency": "USD"
    },
    {
      "sku": "1211408001005",
      "price": "49.99",
      "currency": "USD"
    },
    {
      "sku": "1211408001006",
      "price": "49.99",
      "currency": "USD"
    },
    {
      "sku": "1211408001007",
      "price": "49.99",
      "currency": "USD"
    }
  ]
}
```

### Best Practices

- Use specific search terms for better results
- Implement pagination for large data sets
- Consider rate limiting for bulk requests
- Cache results when appropriate
- Handle error responses gracefully

### Error Handling

The actor implements robust error handling for common scenarios:

- Invalid input parameters
- Network connectivity issues
- Rate limiting responses
- Invalid or empty search results

### Limitations

- Maximum 100 results per page
- Rate limiting applies to prevent server overload
- Some premium recipes might not be accessible
- Search results depend on Tasty.co's content availability

### Support

For issues and feature requests, please:
Contact support at pintoflowpt@gmail.com

### Related Projects

- https://apify.com/pintostudio/hm-product-search

### About H\&M

#### Company Overview

Hennes & Mauritz AB (H\&M) is a multinational clothing retail company headquartered in Stockholm, Sweden. Founded in 1947 by Erling Persson, H\&M has grown from a single women's clothing store called "Hennes" in Västerås, Sweden, to one of the world's largest fashion retailers. The company operates in over 75 markets worldwide with more than 4,000 stores and robust online presence.

#### Business Model

H\&M's business model is based on offering fashion-forward clothing at competitive prices through:

- Fast-fashion production and distribution
- In-house design team creating collections
- Sustainable fashion initiatives
- Multi-brand portfolio strategy
- Integrated digital and physical retail experience

#### Brand Portfolio

- H\&M: Main brand offering fashion for men, women, teenagers, and children
- COS: Higher-end minimalist fashion
- Weekday: Street fashion with a social awareness focus
- Monki: Colorful and creative youth-oriented fashion
- & Other Stories: Premium accessories and ready-to-wear collections
- ARKET: Modern-day market offering essential products
- H\&M HOME: Interior design and decorations

#### Sustainability Initiatives

H\&M has committed to several sustainability goals:

- Circular fashion economy implementation
- Use of recycled materials
- Garment collecting program
- Conscious collection using sustainable materials
- Goal to use 100% recycled or sustainably sourced materials by 2030

# Actor input Schema

## `productUrl` (type: `string`):

The product url.

## Actor input object example

```json
{
  "productUrl": "https://www2.hm.com/en_us/productpage.1211408001.html"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "productUrl": "https://www2.hm.com/en_us/productpage.1211408001.html"
};

// Run the Actor and wait for it to finish
const run = await client.actor("pintostudio/hm-product-description").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "productUrl": "https://www2.hm.com/en_us/productpage.1211408001.html" }

# Run the Actor and wait for it to finish
run = client.actor("pintostudio/hm-product-description").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "productUrl": "https://www2.hm.com/en_us/productpage.1211408001.html"
}' |
apify call pintostudio/hm-product-description --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pintostudio/hm-product-description"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ulpaM7JYD6wkGnOiC/builds/TmAdOXTPmepI7b2Mv/openapi.json
