# Kmart Product Spider (`getdataforme/kmart-product-spider`)

Kmart Reviews Spider is an Apify Actor that scrapes detailed product info from Kmart Australia pages. Input product URLs to extract name, description, brand, rating, review count, and variants (SKU, size, price, availability). Perfect for e-commerce analysis, price tracking, and catalog building.

- **URL**: https://beta-securitybyobscurity.apify.com/getdataforme/kmart-product-spider.md
- **Developed by:** [GetDataForMe](https://beta-securitybyobscurity.apify.com/getdataforme) (community)
- **Categories:** E-commerce, AI
- **Stats:** 3 total users, 3 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

$30.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.
You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

# README

## Kmart Product Spider

The **Kmart Product Spider** is an Apify Actor designed to scrape detailed product information and variants from Kmart Australia product pages. By providing a list of product URLs, users can extract key details such as product name, description, brand, rating, review count, and variant-specific information like size, price, and availability.

### Input Parameters

The Actor accepts a JSON input with the following parameters:

| Parameter | Type   | Description                                                                 |
|-----------|--------|-----------------------------------------------------------------------------|
| `Urls`    | Array  | A list of Kmart Australia product URLs to scrape. Example: `["https://www.kmart.com.au/product/core-hoodie-s168393/?selectedSwatch=Gry%20Marle"]` |

**Example Input:**

```json
{
  "Urls": [
    "https://www.kmart.com.au/product/core-hoodie-s168393/?selectedSwatch=Gry%20Marle"
  ]
}
```

### Features

- **Comprehensive Product Data**: Extracts detailed product information, including name, description, brand, rating, and review count.
- **Variant Scraping**: Captures all available product variants, including SKU, size, price, currency, availability, and images.
- **Reliable and Fast**: Efficiently processes multiple URLs with structured output for easy integration.
- **Customizable Output**: Returns data in a clean JSON format, suitable for further analysis or storage.
- **Error Handling**: Robust handling of invalid URLs or unavailable products to ensure consistent results.

### Output

The Actor returns a JSON array containing product details and their variants. Below is an example output:

```json
[
  {
    "name": "Core Hoodie",
    "description": "MaterialCotton and recycled polyesterFleece fabricFeaturesDrop shoulder designHooded neck with drawstringLong sleeves with ribbed cuffsKangaroo pocketsRibbed hemFit and Model SizeRegular fitThe model featured is wearing a Size MCare InstructionsWarm machine wash with similar coloursDo not bleachDo not tumble dryWarm iron on reverse side if requiredDo not dry-clean",
    "url": "https://www.kmart.com.au/product/core-hoodie-s168393/?selectedSwatch=Gry%20Marle",
    "brand": "Kmart",
    "rating": "4.7222223",
    "review_count": "18",
    "product_group_id": "P_S168393",
    "color": "Gry Marle",
    "variants": [
      {
        "sku": "73134282",
        "name": "Core Hoodie Size XS",
        "size": "XS",
        "price": 8,
        "currency": "AUD",
        "availability": "https://schema.org/InStock",
        "url": "https://www.kmart.com.au/product/core-hoodie-s168393/?sku=73134282",
        "image": "https://kmartau.mo.cloudinary.net/daf6a3db-d552-4c07-92ce-c89c9c9e9e16.jpg?tx=w_300,h_300,c_pad",
        "description": "MaterialCotton and recycled polyesterFleece fabricFeaturesDrop shoulder designHooded neck with drawstringLong sleeves with ribbed cuffsKangaroo pocketsRibbed hemFit and Model SizeRegular fitThe model featured is wearing a Size MCare InstructionsWarm machine wash with similar coloursDo not bleachDo not tumble dryWarm iron on reverse side if requiredDo not dry-clean"
      },
      {
        "sku": "73134305",
        "name": "Core Hoodie Size M",
        "size": "M",
        "price": 8,
        "currency": "AUD",
        "availability": "https://schema.org/InStock",
        "url": "https://www.kmart.com.au/product/core-hoodie-s168393/?sku=73134305",
        "image": "https://kmartau.mo.cloudinary.net/daf6a3db-d552-4c07-92ce-c89c9c9e9e16.jpg?tx=w_300,h_300,c_pad",
        "description": "MaterialCotton and recycled polyesterFleece fabricFeaturesDrop shoulder designHooded neck with drawstringLong sleeves with ribbed cuffsKangaroo pocketsRibbed hemFit and Model SizeRegular fitThe model featured is wearing a Size MCare InstructionsWarm machine wash with similar coloursDo not bleachDo not tumble dryWarm iron on reverse side if requiredDo not dry-clean"
      }
    ]
  }
]
```

### Use Cases

- **E-commerce Analysis**: Gather product details and variant information for market research or competitive analysis.
- **Price Monitoring**: Track prices and availability across different product sizes and variants.
- **Product Catalog Building**: Create structured datasets for inventory management or online store integration.
- **Consumer Insights**: Analyze ratings and review counts to understand product popularity and customer satisfaction.

### Support

For bug reports or custom needs, contact **support@getdataforme.com** or use our contact form: <https://getdataforme.com/contact/>.\
Please include a clear subject line in your message, such as "Custom Support for Kmart Product Spider."

# Actor input Schema

## `Urls` (type: `array`):

The urls for the spider.

## Actor input object example

```json
{
  "Urls": [
    "https://www.kmart.com.au/product/core-hoodie-s168393/?selectedSwatch=Gry%20Marle"
  ]
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/kmart-product-spider").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/kmart-product-spider").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call getdataforme/kmart-product-spider --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=getdataforme/kmart-product-spider",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Kmart Product Spider",
        "description": "Kmart Reviews Spider is an Apify Actor that scrapes detailed product info from Kmart Australia pages. Input product URLs to extract name, description, brand, rating, review count, and variants (SKU, size, price, availability). Perfect for e-commerce analysis, price tracking, and catalog building.",
        "version": "0.0",
        "x-build-id": "DChLa3lJXy43YpthF"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/getdataforme~kmart-product-spider/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-getdataforme-kmart-product-spider",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/getdataforme~kmart-product-spider/runs": {
            "post": {
                "operationId": "runs-sync-getdataforme-kmart-product-spider",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/getdataforme~kmart-product-spider/run-sync": {
            "post": {
                "operationId": "run-sync-getdataforme-kmart-product-spider",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "Urls": {
                        "title": "Urls",
                        "type": "array",
                        "description": "The urls for the spider.",
                        "default": [
                            "https://www.kmart.com.au/product/core-hoodie-s168393/?selectedSwatch=Gry%20Marle"
                        ],
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
