# Rarebeauty Scraper (`getdataforme/rarebeauty-actor`) Actor

An Rarebeauty scraper extracts all cosmetic product data such as names, prices, reviews, and availability from the Allbeauty website, aiding in tasks like price monitoring and research while ensuring ethical compliance.

- **URL**: https://apify.com/getdataforme/rarebeauty-actor.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $9.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Rarebeauty Scraper Documentation

**Rarebeauty Scraper** is an Apify actor designed to scrape product details effortlessly from [rarebeauty.com](https://www.rarebeauty.com/). This scraper extracts detailed product information, making it ideal for data analysis, monitoring, and e-commerce insights.

***

### **Input Format**

The actor accepts a JSON input with the following structure:

```json
{
    "urls": [
        "https://www.rarebeauty.com/products/soft-pinch-tinted-lip-oil"
    ]
}
```

- **urls**: An array of product page URLs from rarebeauty.com that you want to scrape. Multiple URLs can be provided for batch scraping.

***

### **How Rarebeauty 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 completes 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
[
    {
        "product_name": "Soft Pinch Tinted Lip Oil",
        "product_price": "22.00 USD",
        "product_image": "https://www.rarebeauty.com/cdn/shop/products/soft-pinch-tinted-lip-oil-serenity-1440x1952.jpg?v=1679094329&width=1024",
        "product_url": "https://www.rarebeauty.com/products/soft-pinch-tinted-lip-oil",
        "description": "An innovative lip jelly that transforms into a lightweight oil. Starts off glossy, then leaves lips tinted while gently plumping and staying comfortable—never sticky—all day.",
        "sku": "FGPSPO0001F1"
    }
]
```

#### **Explanation of Fields**

- **product\_name**: The name of the product as displayed on the website.
- **product\_price**: The price of the product, including the currency.
- **product\_image**: A URL for the main product image.
- **product\_url**: The source URL of the product page.
- **description**: A detailed description of the product, including features and benefits.
- **sku**: The Stock Keeping Unit of the product for unique identification.

***

### **Features**

- **Customizable Input**: Add multiple product URLs for simultaneous scraping.
- **Detailed Output**: Captures key product information, including images and descriptions.
- **Reliable Scraping**: Optimized for rarebeauty.com’s structure to ensure accurate and consistent data extraction.

***

### **Important Notes**

1. **Use Proxies**: Enable proxies to avoid potential IP bans and ensure reliable data retrieval.
2. **Data Accuracy**: 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 "Rarebeauty Scraper Support" to ensure prompt assistance.

***

Thank you for using the Rarebeauty Scraper!

# Actor input Schema

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

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

## Actor input object example

```json
{
  "urls": [
    "https://www.rarebeauty.com/products/soft-pinch-tinted-lip-oil"
  ]
}
```

# 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.rarebeauty.com/products/soft-pinch-tinted-lip-oil"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/rarebeauty-actor").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.rarebeauty.com/products/soft-pinch-tinted-lip-oil"] }

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/rarebeauty-actor").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 '{
  "urls": [
    "https://www.rarebeauty.com/products/soft-pinch-tinted-lip-oil"
  ]
}' |
apify call getdataforme/rarebeauty-actor --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

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