# Allbeauty Scraper (`getdataforme/allbeauty-scraper`) Actor

Allbeauty Scraper extracts product details from allbeauty.com. Input product URLs to get structured data, including names, prices, brands, and images.

- **URL**: https://apify.com/getdataforme/allbeauty-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** E-commerce
- **Features:** Full permissions
- **Stats:** 5 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## AllBeauty Scraper Documentation

**AllBeauty Scraper** is an Apify actor designed to scrape product details effortlessly from [allbeauty.com](https://www.allbeauty.com/). The scraper is efficient, user-friendly, and extracts all relevant product information based on the input URLs provided. This documentation outlines its setup, functionality, and output format to ensure smooth operation.

***

### **Input Format**

The actor accepts a JSON input with the following structure:

```json
{
    "urls": [
        "https://www.allbeauty.com/yves-saint-laurent-kouros-eau-de-toilette-spray-100ml/11791489.html?rctxt=default"
    ]
}
```

- **urls**: An array of product page URLs from dillards.com that you want to scrape. You can add multiple URLs to scrape multiple products simultaneously.

***

### **How Allbeauty Scraper Works**

1. **Provide Input**: Add the product URLs in the "urls" field of the input JSON.
2. **Run the Scraper**: Start the actor to fetch and parse data from the provided URLs.
3. **Get Results**: Once the scraper finishes its run, the extracted data is returned in a structured JSON format.

***

### **Output Format**

When the scraper runs successfully, the output will have the following structure:

```json
[
    {
        "URL": "https://www.allbeauty.com/yves-saint-laurent-kouros-eau-de-toilette-spray-100ml/11791489.html?rctxt=default",
        "Brand": "Yves Saint Laurent",
        "ProductName": "Yves Saint Laurent Kouros Eau de Toilette Spray 100ml",
        "Status": "Available",
        "Currency": null,
        "Price": "58.95",
        "SKU": "11791489",
        "MPN": null,
        "itemconditon": null,
        "Availability": null,
        "Image": null,
        "Rating": "4.9",
        "Description": [
            "Yves Saint Laurent Kouros is a powerful symbol of the modern man. A fragrance crafted to inspire confidence and success, it's a timeless classic that exudes strength and authority. With its heady blend of herbs, spices and woods, it'll make you stand out in any crowd and captivate those around you.",
            "This iconic scent is an ode to power and the perfect way to show the world that you mean business. Its masculine character is unmistakable, and its charismatic blend of citrus, florals, and musks will draw people in and keep them wanting more.",
            "YSL Kouros is the embodiment of the Yves Saint Laurent man: ambitious, determined and unafraid of taking risks. This fragrance will make you feel invincible, and will give you the confidence to conquer any challenge. Whether you're headed to the boardroom or out for a night on the town, Kouros will be your secret weapon.",
            "The perfect finishing touch to any look, Yves Saint Laurent Kouros is the bold, masculine scent that will make you the envy of everyone you meet. So take a stand, and let your presence be felt with this classic, timeless fragrance.",
            "Please be aware that ingredient lists for products in the Yves Saint Laurent brand are updated regularly. Please refer to the ingredient list on the product package for the most up-to-date list of ingredients to ensure it is suitable for your personal use."
        ],
        "Reviews": [
            {
                "reviewby": "Steve",
                "description": "This reformulated version without the silver shoulders on the bottle is disastrous compared to the original.   Longevity is fleeting. Projection immense for about twenty minutes.  The original had the great projection for hours and hours and longevity was all day and all night.   Such a shame to destroy a masterpiece of artful perfumery.   Get an original and fork out your cash or buy this waste your cash! ",
                "datePublished": "2023-07-30",
                "itemReviewed": "Yves Saint Laurent Kouros Eau de Toilette Spray 100ml",
                "reviewRating": {
                    "@type": "Rating",
                    "worstRating": 0,
                    "bestRating": 5,
                    "ratingValue": 1
                }
            },
            {
                "reviewby": "Jemma Beckham",
                "description": "My dad has used this for years and wonâ€™t have anything else! ",
                "datePublished": "2019-12-20",
                "itemReviewed": "Yves Saint Laurent Kouros Eau de Toilette 100ml",
                "reviewRating": {
                    "@type": "Rating",
                    "worstRating": 0,
                    "bestRating": 5,
                    "ratingValue": 5
                }
            },
            {
                "reviewby": "Terry Smith",
                "description": "Favourite Menâ€™s Fragrance.",
                "datePublished": "2019-12-15",
                "itemReviewed": "Yves Saint Laurent Kouros Eau de Toilette 100ml",
                "reviewRating": {
                    "@type": "Rating",
                    "worstRating": 0,
                    "bestRating": 5,
                    "ratingValue": 5
                }
            },
            {
                "reviewby": "Barbara Higton",
                "description": "Delivered fast, fair price. ",
                "datePublished": "2023-05-22",
                "itemReviewed": "Yves Saint Laurent Kouros Eau de Toilette 100ml",
                "reviewRating": {
                    "@type": "Rating",
                    "worstRating": 0,
                    "bestRating": 5,
                    "ratingValue": 5
                }
            },
            {
                "reviewby": "Mr & Mrs K ",
                "description": "Hubby's birthday present, he loves it ",
                "datePublished": "2023-05-21",
                "itemReviewed": "Yves Saint Laurent Kouros Eau de Toilette 100ml",
                "reviewRating": {
                    "@type": "Rating",
                    "worstRating": 0,
                    "bestRating": 5,
                    "ratingValue": 5
                }
            },
            {
                "reviewby": "drew ",
                "description": "X x x x x x x x x x ",
                "datePublished": "2023-05-19",
                "itemReviewed": "Yves Saint Laurent Kouros Eau de Toilette 100ml",
                "reviewRating": {
                    "@type": "Rating",
                    "worstRating": 0,
                    "bestRating": 5,
                    "ratingValue": 5
                }
            },
            {
                "reviewby": "tracy murray",
                "description": "I've used it for years",
                "datePublished": "2023-05-19",
                "itemReviewed": "Yves Saint Laurent Kouros Eau de Toilette 100ml",
                "reviewRating": {
                    "@type": "Rating",
                    "worstRating": 0,
                    "bestRating": 5,
                    "ratingValue": 5
                }
            },
            {
                "reviewby": "Dustydog",
                "description": "One of the best beau de toilette on the market and this time keenly priced.",
                "datePublished": "2023-05-15",
                "itemReviewed": "Yves Saint Laurent Kouros Eau de Toilette 100ml",
                "reviewRating": {
                    "@type": "Rating",
                    "worstRating": 0,
                    "bestRating": 5,
                    "ratingValue": 5
                }
            },
            {
                "reviewby": "Andrew Gartell",
                "description": "always liked this",
                "datePublished": "2023-05-15",
                "itemReviewed": "Yves Saint Laurent Kouros Eau de Toilette 100ml",
                "reviewRating": {
                    "@type": "Rating",
                    "worstRating": 0,
                    "bestRating": 5,
                    "ratingValue": 5
                }
            },
            {
                "reviewby": "Steven Johnson",
                "description": "A favourite of mine at a good price",
                "datePublished": "2023-05-14",
                "itemReviewed": "Yves Saint Laurent Kouros Eau de Toilette 100ml",
                "reviewRating": {
                    "@type": "Rating",
                    "worstRating": 0,
                    "bestRating": 5,
                    "ratingValue": 5
                }
            }
        ]
    }
]
```

#### **Explanation of Fields**

- **name**: The product name as displayed on the website.
- **ProductID**: A unique identifier for the product.
- **Categories**: An array of categories the product belongs to.
- **ImageUR**: The URL of the product image.
- **URL**: The source URL of the product page.
- **Brand**: The brand of the product.
- **Price**: The current price of the product.
- **Sku**: The numerical value of the price.
- **Status**: It will show the available status
- **Description**: Descritpion of the products
- **Reviews**: Reviews of the products

***

### **Features**

- **Customizable Input**: Add as many product URLs as needed.
- **Detailed Output**: Extracts comprehensive product information, including pricing, categories, and images.
- **Reliable Scraping**: Optimized to handle allbeauty.com’s structure and ensure accurate data extraction.

***

### **Important Notes**

1. **Use Proxies**: For consistent results and to avoid potential IP bans, enable proxies when running the scraper.
2. **Data Freshness**: Ensure the URLs provided are valid and accessible.

***

### **Support**

For custom requirements, troubleshooting, or bug reports, contact us at:

- **Email**: <support@getdataforme.com>
- **Contact Form**: <https://getdataforme.com/contact/>

When reaching out, please include the email subject "Allbeauty Scraper Support" to ensure prompt assistance.

***

Thank you for using the Allbeauty Scraper!

# Actor input Schema

## `urls` (type: `array`):

A list of URLs of the web pages you want to scrape data from.

## `proxyConfiguration` (type: `object`):

Specifies proxy servers that will be used by the scraper in order to hide its origin.

## Actor input object example

```json
{
  "urls": [
    "https://www.allbeauty.com/sabrina-carpenter-sweet-tooth-eau-de-parfum-spray-75ml/14851086.html"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "urls": [
        "https://www.allbeauty.com/sabrina-carpenter-sweet-tooth-eau-de-parfum-spray-75ml/14851086.html"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/allbeauty-scraper").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 = {
    "urls": ["https://www.allbeauty.com/sabrina-carpenter-sweet-tooth-eau-de-parfum-spray-75ml/14851086.html"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/allbeauty-scraper").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 '{
  "urls": [
    "https://www.allbeauty.com/sabrina-carpenter-sweet-tooth-eau-de-parfum-spray-75ml/14851086.html"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call getdataforme/allbeauty-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getdataforme/allbeauty-scraper"
        }
    }
}
```

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/l7LgHdKBT9JDrnFkI/builds/gQEhzDHyhl7ZTyvGZ/openapi.json
