# Forrent Scraper (`getdataforme/forrent-scraper`) Actor

The ForRent Scraper is a web crawler that extracts rental listings from ForRent. It gathers key details such as rent price, location, size, number of bedrooms, bathrooms, and listing status. The scraper handles dynamic content and pagination, providing accurate, up-to-date rental insights.

- **URL**: https://apify.com/getdataforme/forrent-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** Real estate
- **Security:** Full permissions
- **Stats:** 8 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$30.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

## Sephora Scraper Documentation

### Overview

The **Sephora Scraper** is an Apify actor designed to extract comprehensive product information from Sephora.com. By providing a list of product URLs as input, the scraper retrieves details such as product name, brand, pricing, availability, reviews, and more.

***

### Input Configuration

The input for the Sephora Scraper should be a JSON object containing the following keys:

- `proxyConfiguration`: Specifies the proxy settings. Use the Apify residential proxy group for optimal performance.
- `urls`: An array of Sephora product URLs to scrape.

#### Input Example

```json
{
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    },
    "urls": [
        "https://www.sephora.com/product/rare-beauty-by-selena-gomez-soft-pinch-liquid-blush-P97989778?skuId=2362085&icid2=homepage_productlist_chosenforyou_us_rwd_092022"
    ]
}
```

***

### Output

The scraper returns a JSON array of objects, where each object contains detailed information about the product, including:

- `url`: The product URL provided in the input.
- `name`: The name of the product.
- `brand`: The brand of the product.
- `product_offers`: An array of pricing and availability details for different SKUs, including:
  - `price`: The product price.
  - `priceCurrency`: The currency of the price.
  - `availability`: Availability status (e.g., InStock, OutOfStock).
  - `sku`: Stock Keeping Unit (SKU) identifier.
  - `image`: URL of the product image.
  - `seller`: The seller's name.
- `aggregateRating`: Overall rating details, including:
  - `reviewCount`: Total number of reviews.
  - `bestRating`: The highest possible rating.
  - `ratingValue`: The average rating value.
- `reviewCount`: Total number of reviews.
- `description`: A brief description of the product.
- `image`: An array of product images.
- `reviews`: An array of review details, including:
  - `id`: Review ID.
  - `name`: Reviewer's name.
  - `datePublished`: Date the review was published.
  - `description`: Content of the review.
  - `reviewRating`: Rating details, including `bestRating`, `ratingValue`, and `itemReviewed`.

#### Output Example

```json
[
    {
        "url": "https://www.sephora.com/product/rare-beauty-by-selena-gomez-soft-pinch-liquid-blush-P97989778",
        "name": "Soft Pinch Liquid Blush",
        "brand": "Rare Beauty by Selena Gomez",
        "product_offers": [
            {
                "price": "25.0",
                "priceCurrency": "USD",
                "availability": "http://schema.org/InStock",
                "sku": "2362143",
                "image": "https://www.sephora.com/productimages/sku/s2362143-main-hero.jpg",
                "seller": "Sephora"
            },
            {
                "price": "15.0",
                "priceCurrency": "USD",
                "availability": "http://schema.org/OutOfStock",
                "sku": "2761989",
                "image": "https://www.sephora.com/productimages/sku/s2761989-main-hero.jpg",
                "seller": "Sephora"
            }
        ],
        "aggregateRating": {
            "reviewCount": "12262",
            "bestRating": "5",
            "ratingValue": "4.5402",
            "itemReviewed": {
                "name": "Soft Pinch Liquid Blush"
            }
        },
        "reviewCount": "12262",
        "description": "Shop Rare Beauty’s Soft Pinch Liquid Blush at Sephora. This weightless, long-lasting liquid blush blends and builds beautifully for a soft, healthy flush.",
        "image": [
            "https://www.sephora.com/productimages/sku/s2362085-main-hero.jpg"
        ],
        "reviews": [
            {
                "id": "330906076",
                "name": ["vickyyvick"],
                "datePublished": ["2025-01-02"],
                "description": ["After using this product, it’s very nice on the skin. But, I will say that it leaves the mark of the liquid and it’s a little hard to blend 😭. So, take that as you will, but the product is good overall. I got it in the color ‘Bliss’."],
                "reviewRating": {
                    "bestRating": "5",
                    "ratingValue": "3",
                    "itemReviewed": "Soft Pinch Liquid Blush"
                }
            }
        ]
    }
]
```

***

### Usage Instructions

1. **Input Preparation**: Create a JSON file with the `proxyConfiguration` and `urls` array containing the product URLs to scrape.
2. **Actor Execution**: Run the Sephora Scraper actor on the Apify platform, providing the input JSON file.
3. **Retrieve Results**: After the execution, download the output JSON containing the scraped data.

***

### Support

For custom outputs, simplified formats, or to report any issues, please contact:

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

When reaching out, please include a clear subject line and a detailed description of your request or issue.

***

Thank you for using the Sephora 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.forrent.com/tx/texas-city/smart-living-at-texas-city/0jfe6h2"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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.forrent.com/tx/texas-city/smart-living-at-texas-city/0jfe6h2"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/forrent-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.forrent.com/tx/texas-city/smart-living-at-texas-city/0jfe6h2"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/forrent-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.forrent.com/tx/texas-city/smart-living-at-texas-city/0jfe6h2"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call getdataforme/forrent-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getdataforme/forrent-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/sGasze7gQpCeTZTrN/builds/gB4MTZxjt42ckHeJc/openapi.json
