# Dreft Urls Parser (`getdataforme/dreft-urls-parser`) Actor

Extract detailed Dreft product data effortlessly with this Apify Actor. It scrapes names, descriptions, images, sizes, UPCs, SKUs, categories, and ratings from Dreft URLs, delivering structured JSON output....

- **URL**: https://apify.com/getdataforme/dreft-urls-parser.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** Automation, Lead generation, E-commerce
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## 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/actors/running/actors-in-store.md#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

## Dreft Urls Parser

Dreft Urls Parser is an Apify Actor designed to scrape and extract detailed product information from Dreft.com URLs. It leverages CheerioCrawler to efficiently parse web pages, delivering structured data on laundry detergents and related products. This tool is ideal for e-commerce data extraction, enabling users to gather insights on product details, pricing, and availability without manual effort.

### Features

- **Efficient Web Scraping**: Utilizes CheerioCrawler for fast and reliable parsing of Dreft product pages.
- **Structured Data Extraction**: Captures key product attributes like name, description, images, sizes, UPC, SKU, and ratings.
- **Customizable Inputs**: Supports multiple start URLs and configurable request limits for tailored crawls.
- **High Data Quality**: Ensures accurate and consistent output with built-in error handling for missing data.
- **Scalable Performance**: Handles up to 100 requests per crawl by default, with options for expansion.
- **JSON Output**: Delivers clean, machine-readable data perfect for integration with other tools.
- **Apify Integration**: Seamlessly runs on the Apify platform with easy monitoring and export options.

### Input Parameters

| Parameter | Type | Required | Description | Example |
|-----------|------|----------|-------------|---------|
| startUrls | array | Yes | URLs to start the crawl with. Each URL should point to a Dreft product page. | \[{"url": "https://www.dreft.com/en-us/shop-products/detergent-pacs/dreft-laundry-detergent-pacs-light-scent-lavender"}] |
| maxRequestsPerCrawl | integer | No | Maximum number of requests the crawler can make. Helps control crawl scope and avoid overloading servers. | 100 |

### Example Usage

To run the Actor, provide input in JSON format:

```json
{
  "startUrls": [
    {
      "url": "https://www.dreft.com/en-us/shop-products/detergent-pacs/dreft-laundry-detergent-pacs-light-scent-lavender"
    }
  ],
  "maxRequestsPerCrawl": 50
}
```

Example output in JSON:

```json
[
  {
    "name": "Dreft Detergent Pacs",
    "description": "The Dreft® you love - now in convenient pacs.",
    "imageUrl": "https://images.ctfassets.net/sce666d9zh3m/3GiTJ8h9zNxGLy189ZL1mV/d0c6ba86364818f6bb9688804b076ee0/Dreft_Power_pod_00030772118672_20231208_PDP_packshot_DT_369x544.png",
    "sizes": [
      "18 ct",
      "25 ct",
      "45 ct"
    ],
    "upc": "030772118689",
    "sku": "030772118689",
    "category": "Fabric Care | Power Pods | Power Pods",
    "productCategory": "Laundry",
    "productType": "Detergents",
    "productGroup": "US Dreft",
    "rating": "0/5"
  }
]
```

### Use Cases

- **Market Research**: Analyze Dreft product offerings to identify trends in laundry detergents.
- **Competitive Intelligence**: Compare Dreft products with competitors by extracting detailed specs and pricing.
- **Price Monitoring**: Track size variations and UPCs for dynamic pricing strategies.
- **Content Aggregation**: Build databases of product images and descriptions for e-commerce platforms.
- **Academic Research**: Study consumer product data for studies on household goods.
- **Business Automation**: Automate data collection for inventory management or supplier analysis.

### Installation and Usage

1. Search for "Dreft Urls Parser" in the Apify Store
2. Click "Try for free" or "Run"
3. Configure input parameters
4. Click "Start" to begin extraction
5. Monitor progress in the log
6. Export results in your preferred format (JSON, CSV, Excel)

### Output Format

The Actor outputs an array of JSON objects, each representing a scraped product. Key fields include:

- `name`: Product title.
- `description`: Brief product overview.
- `imageUrl`: URL to the product image.
- `sizes`: Array of available package sizes.
- `upc` and `sku`: Unique identifiers.
- `category`, `productCategory`, `productType`, `productGroup`: Classification details.
- `rating`: User rating (e.g., "0/5").

Data is extracted directly from page elements, ensuring fidelity to the source.

### Support

For custom/simplified outputs or bug reports, please contact:

- Email: support@getdataforme.com
- Subject line: "custom support"
- Contact form: https://getdataforme.com/contact/

We're here to help you get the most out of this Actor!

***

### PART 2: Generate Description (Max 300 characters)

Unlock precise Dreft product data with our Apify Actor! Extract names, descriptions, images, sizes, UPCs, and ratings from Dreft.com URLs effortlessly. Features fast CheerioCrawler scraping, customizable inputs, and JSON outputs for seamless integration. Perfect for market research, price monitoring, and competitive analysis. Start scraping today—try it free on Apify! (248 characters)

# Actor input Schema

## `startUrls` (type: `array`):

URLs to start with.

## `maxRequestsPerCrawl` (type: `integer`):

Maximum number of requests that can be made by this crawler.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.dreft.com/en-us/shop-products/detergent-pacs/dreft-laundry-detergent-pacs-light-scent-lavender"
    }
  ],
  "maxRequestsPerCrawl": 100
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.dreft.com/en-us/shop-products/detergent-pacs/dreft-laundry-detergent-pacs-light-scent-lavender"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/dreft-urls-parser").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 = { "startUrls": [{ "url": "https://www.dreft.com/en-us/shop-products/detergent-pacs/dreft-laundry-detergent-pacs-light-scent-lavender" }] }

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/dreft-urls-parser").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 '{
  "startUrls": [
    {
      "url": "https://www.dreft.com/en-us/shop-products/detergent-pacs/dreft-laundry-detergent-pacs-light-scent-lavender"
    }
  ]
}' |
apify call getdataforme/dreft-urls-parser --silent --output-dataset

```

## MCP server setup

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

```

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/qQEHalMrs6HG4Ax4E/builds/XgPGeZvbAMAYLo1D4/openapi.json
