# Mood Fabrics Product Scraper — Catalog & Fabric Details (`muhammadafzal/mood-fabrics-product-scraper`) Actor

Scrape public Mood Fabrics products from collection pages, product URLs, and product searches. Returns stable catalog records with prices, availability, images, variants, tags, descriptions, and parsed fabric attributes.

- **URL**: https://apify.com/muhammadafzal/mood-fabrics-product-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** Other, Automation, MCP servers
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 product records

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Mood Fabrics Product Scraper

Scrape public Mood Fabrics products for catalog research, fabric sourcing, sewing workflows, price monitoring, and AI-agent product discovery. Pass a Mood Fabrics product URL, collection URL, or product search query and receive one stable JSON record per product.

The actor uses Mood Fabrics' public Shopify catalog endpoints. It does not log in, access customer accounts, add items to carts, place orders, or expose private Shopify data.

### What it extracts

| Field group | Included fields |
|---|---|
| Product identity | `productId`, `title`, `url`, `handle`, `vendor`, `productType` |
| Pricing and inventory | `price`, `priceMin`, `priceMax`, `compareAtPrice`, `currency`, `available`, `priceVaries` |
| Catalog content | `description`, `tags`, `images`, `featuredImage`, `options` |
| Fabric details | `fabricContent`, `stretch`, `opacity`, `suggestedProjects`, `width`, `weight`, `care` |
| Variants | `id`, `title`, `sku`, `barcode`, `price`, `compareAtPrice`, `available`, `weightGrams`, `options` |
| Provenance | `sourceUrl`, `sourceMode`, `scrapedAt`, `warnings` |

Fabric attributes are parsed from labeled product-description bullets when Mood Fabrics provides them. Missing values are returned as `null` rather than guessed.

### When to use it

Use this actor when you need public Mood Fabrics product data for:

- fabric and textile catalog exports;
- finding materials by query such as `silk velvet`, `floral cotton`, or `sequined tulle`;
- comparing prices, stock availability, and product variants;
- sourcing fabrics for apparel, costume, interiors, or sewing projects;
- monitoring a collection or selected product pages;
- feeding structured product data to an AI agent through Apify MCP.

Do not use it for general web search, other fabric retailers, customer orders, private inventory, checkout automation, or authenticated account data. For broad multi-store product research, use a multi-site ecommerce actor instead.

### Input

The default input scrapes the full Mood Fabrics catalog with a 25-product cap:

```json
{
  "startUrls": [
    { "url": "https://www.moodfabrics.com/collections/brocade-fashion-fabrics" },
    { "url": "https://www.moodfabrics.com/products/silk-velvet-red" }
  ],
  "searchQueries": ["floral cotton"],
  "maxResults": 25,
  "maxPages": 5,
  "enrichDetails": true,
  "includeVariants": true,
  "responseFormat": "detailed"
}
```

`startUrls` accepts public Mood Fabrics collection and product URLs, such as `/collections/brocade-fashion-fabrics` and `/products/<handle>`. A `/search?type=product&q=...` URL is also recognized and converted to a product search. `searchQueries` accepts one natural-language catalog query per item. When no source is supplied, the actor uses `/collections/all-products`.

`maxResults` is a hard cap across every source. `maxPages` limits collection pagination; each public Shopify collection page can return up to 250 products. Search suggestions are limited to the site's top results for each query. `enrichDetails` visits each product's public `.js` endpoint for richer data and falls back to listing/search data if an individual detail request fails. `includeVariants` can be disabled to reduce output size. `responseFormat: "concise"` bounds descriptions and omits variants while preserving the same stable top-level keys.

### Output example

```json
{
  "recordType": "product",
  "productId": "15637387575369",
  "title": "Metallic Polyester Brocade Panel - Beige, Gold and Silvery Gray Paint Splatters and Swirls - Deadstock",
  "url": "https://www.moodfabrics.com/products/metallic-polyester-brocade-panel-beige-gold-and-silvery-gray-paint-splatters-and-swirls-deadstock-447789",
  "productType": "BROCADES",
  "price": 49.96,
  "priceMin": 49.96,
  "priceMax": 49.96,
  "currency": "USD",
  "available": true,
  "fabricContent": "Polyester, Lurex",
  "stretch": "None",
  "opacity": "Mostly Opaque",
  "suggestedProjects": "Corsets, Gowns, Skirts, Jackets",
  "images": ["https://www.moodfabrics.com/cdn/shop/files/447789.jpg"],
  "variants": [{ "sku": "447789", "price": 49.96, "available": true }],
  "sourceMode": "collection",
  "warnings": []
}
```

### Pricing

| Event | Price |
|---|---:|
| Actor start | $0.00005, scaled by allocated memory |
| Product record | $0.005 per schema-valid product returned |

Examples: 1 product costs about $0.005, 25 products about $0.125, and 100 products about $0.50, plus the small Actor-start event and any Apify usage/proxy charges shown at run time. The actor prints the maximum result-event cost before work begins and enforces `maxResults` before another product charge.

### API and MCP examples

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('YOUR_USERNAME/mood-fabrics-product-scraper').call({
  searchQueries: ['silk velvet'],
  maxResults: 10,
  responseFormat: 'concise'
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient('YOUR_APIFY_TOKEN')
run = client.actor('YOUR_USERNAME/mood-fabrics-product-scraper').call(run_input={
    'startUrls': [{'url': 'https://www.moodfabrics.com/collections/velvet'}],
    'maxResults': 20,
    'enrichDetails': True,
})
items = client.dataset(run['defaultDatasetId']).list_items().items
print(items)
```

For Apify MCP, configure `https://mcp.apify.com/?tools=YOUR_USERNAME/mood-fabrics-product-scraper`. The actor's tool description should be read as: “Scrape Mood Fabrics products from collection, product, or search URLs for fabric sourcing and catalog research. Do not use for other retailers or private account data. Returns product title, URL, type, price, availability, images, variants, and parsed fabric attributes. Charged $0.005 per product plus the small start event.”

### Reliability and limits

The scraper uses public Shopify JSON endpoints with bounded retries, request timeouts, detail fallback, deduplication, partial-result preservation, and a hard product cap. If an individual detail call fails, collection or search data is retained with a warning. If every requested endpoint fails before any product is returned, the run fails honestly with a retry-oriented status message. A valid source that returns no products completes with a warning and an empty dataset.

### Legal and responsible use

This actor is intended for publicly available catalog data and authorized research. Review Mood Fabrics' current Terms and Conditions, robots directives, copyright, database rights, and applicable laws before collecting, storing, republishing, or using the data commercially. Do not use this actor to bypass access controls, collect personal data, or automate purchasing.

# Actor input Schema

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

Use this when you have a Mood Fabrics collection or product page to scrape. Enter URLs such as https://www.moodfabrics.com/collections/brocade-fashion-fabrics or https://www.moodfabrics.com/products/silk-velvet-red. Defaults to the full catalog when omitted. This is not a list of arbitrary retail sites.

## `searchQueries` (type: `array`):

Use this when you want Mood Fabrics product matches for terms such as 'silk velvet' or 'floral cotton'. Enter one query per line; each query returns the site's top product suggestions. Defaults to no additional search. This is not a Google or general web-search query.

## `maxResults` (type: `integer`):

Use this to cap the total number of product records returned across all URLs and queries. Enter an integer from 1 to 1000, for example 25. Defaults to 25 and also caps result-event billing. This is not a page count.

## `maxPages` (type: `integer`):

Use this to limit pagination for collection URLs. Enter an integer from 1 to 100, for example 5. Defaults to 5; each Shopify collection page can contain up to 250 products. This does not paginate Mood Fabrics search suggestions.

## `enrichDetails` (type: `boolean`):

Use this to request the product detail JSON for richer descriptions, images, variants, and fabric attributes. Defaults to true and falls back to collection/search data if a detail request fails. This does not access customer accounts or checkout data.

## `includeVariants` (type: `boolean`):

Use this when you need variant-level SKU, price, barcode, availability, and option data. Defaults to true; set false for a smaller dataset when product-level fields are enough. This does not create carts or place orders.

## `responseFormat` (type: `string`):

Use this to control description and variant detail for downstream agents. Choose detailed for full product research or concise for comparisons across many products; defaults to detailed. This is not a data-quality or pricing filter.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.moodfabrics.com/collections/all-products"
    }
  ],
  "searchQueries": [],
  "maxResults": 25,
  "maxPages": 5,
  "enrichDetails": true,
  "includeVariants": true,
  "responseFormat": "detailed"
}
```

# Actor output Schema

## `summary` (type: `string`):

Counts, warnings, source modes, runtime, and estimated result-event billing for the run.

## `products` (type: `string`):

Normalized Mood Fabrics product records.

# 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.moodfabrics.com/collections/all-products"
        }
    ],
    "maxResults": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/mood-fabrics-product-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 = {
    "startUrls": [{ "url": "https://www.moodfabrics.com/collections/all-products" }],
    "maxResults": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/mood-fabrics-product-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 '{
  "startUrls": [
    {
      "url": "https://www.moodfabrics.com/collections/all-products"
    }
  ],
  "maxResults": 25
}' |
apify call muhammadafzal/mood-fabrics-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammadafzal/mood-fabrics-product-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/cWr7TATuWzowQv2xc/builds/eDsguqjP7p2Nbj5aR/openapi.json
