# Mamas & Papas Scraper (`crawlerbros/mamas-papas-scraper`) Actor

Scrape Mamas & Papas (mamasandpapas.com) - UK baby & nursery retailer. Search products, browse by collection (pushchairs, car seats, cots, nursery furniture, feeding, clothing), look up exact products by handle/URL, and list the full collection taxonomy.

- **URL**: https://apify.com/crawlerbros/mamas-papas-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 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 and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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?

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

## Mamas & Papas Scraper

Scrape [Mamas & Papas](https://www.mamasandpapas.com) — a leading UK baby & nursery retailer covering pushchairs, car seats, cots, nursery furniture, feeding, bathing, safety, baby clothing, toys and gifting. Search products, browse any of the site's 1,500+ categories, look up exact products by handle or URL, or list the full collection taxonomy. HTTP-only via the store's public JSON endpoints. No auth, no proxy, no cookies.

### What this actor does

- **Four modes:** `search`, `byCollection`, `byProductHandles`, `listCollections`
- **Search** merges the store's own relevance-ranked predictive search with a full product-sitemap scan (plus a curated-collection scan as a second-pass supplement), so short queries aren't capped at a handful of results and coverage spans the entire live catalogue, not just a curated subset
- **Category browse** across 40+ curated common categories (pushchairs, car seats, cots, nursery furniture, feeding, bathing, safety, clothing, toys, bedding, gifting) plus any of the site's other 1,500+ collections via an exact handle override
- **Filters:** min/max price, in-stock only, brand, keyword (title/description contains), colour, gender, category, sub-category, age range, sort order
- **Rich product data:** price, was-price/discount, stock, brand, category, sub-category, colour, age range, gender, all images, all variants (SKU, price, option values), option names
- Empty fields are omitted — no `null`/`""`/`[]` ever shipped

### Output per product

- `productId`, `title`, `handle`, `vendor` (brand), `productType`
- `description` — plain text (HTML stripped)
- `category`, `subCategory`, `colour`, `ageRange`, `gender` — parsed from the store's internal tag taxonomy where present
- `brandTag` — brand parsed from the store's internal tag taxonomy (may differ slightly from `vendor` for multi-brand or licensed products)
- `tags[]`, `isNewArrival`
- `priceMin`, `priceMax`, `currency` (`GBP`)
- `wasPrice`, `discountPercent` — when the product is on sale
- `inStock`, `variantCount`, `variants[]` (`variantId`, `title`, `sku`, `price`, `compareAtPrice`, `available`, `option1/2/3`)
- `optionNames[]` — e.g. `Colour`, `Size`
- `images[]`, `mainImage`
- `lowStockMessage`, `preorderMessage` — when present
- `sourceUrl`, `createdAt`, `updatedAt`, `publishedAt`
- `recordType: "product"`, `scrapedAt`

### Output per collection (`mode=listCollections`)

- `collectionId`, `title`, `handle`, `description`, `productsCount`, `imageUrl`
- `sourceUrl`, `publishedAt`, `updatedAt`
- `recordType: "collection"`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search` / `byCollection` / `byProductHandles` / `listCollections` |
| `searchQuery` | string | `pushchair` | Free-text query (mode=search) |
| `collectionHandle` | string | `pushchairs` | Curated category dropdown (mode=byCollection) |
| `customCollectionHandle` | string | – | Exact handle for any of the site's other collections; overrides the dropdown |
| `productHandles` | array | – | Product handles or full product URLs (mode=byProductHandles) |
| `minPrice` / `maxPrice` | number | – | Price range in GBP |
| `inStockOnly` | bool | `false` | Only in-stock products |
| `brand` | string | – | Case-insensitive brand/vendor substring match |
| `keyword` | string | – | Case-insensitive substring match against title/brand/description |
| `category` | string | – | Exact match against the parsed top-level category (dropdown) |
| `subCategory` | string | – | Exact match against the parsed fine-grained sub-category (dropdown) |
| `colour` | string | – | Exact match against the parsed colour (dropdown) |
| `gender` | string | – | Exact match against the parsed gender — `Boys` / `Girls` / `Unisex` (dropdown) |
| `ageRange` | string | – | Exact match against the parsed age/size range, e.g. `0-6 Months`, `3+ Years` (dropdown) |
| `sortBy` | string | `relevance` | `relevance` / `priceAsc` / `priceDesc` / `titleAsc` / `titleDesc` / `newest` |
| `minProductsCount` | int | – | Drop small collections (mode=listCollections) |
| `maxItems` | int | `50` | Hard cap (1–1000) |

#### Example: search with price + stock filters

```json
{
  "mode": "search",
  "searchQuery": "car seat",
  "minPrice": 50,
  "maxPrice": 300,
  "inStockOnly": true,
  "sortBy": "priceAsc",
  "maxItems": 40
}
```

#### Example: browse a category

```json
{
  "mode": "byCollection",
  "collectionHandle": "nursery-furniture",
  "sortBy": "newest",
  "maxItems": 100
}
```

#### Example: browse a category with taxonomy filters

```json
{
  "mode": "byCollection",
  "collectionHandle": "baby-clothing",
  "gender": "Girls",
  "colour": "Pink",
  "maxItems": 40
}
```

#### Example: browse a category not in the curated dropdown

```json
{
  "mode": "byCollection",
  "customCollectionHandle": "baby-monitors",
  "maxItems": 50
}
```

#### Example: lookup exact products

```json
{
  "mode": "byProductHandles",
  "productHandles": [
    "graco-daisi-2in1-soother-72352q100",
    "https://www.mamasandpapas.com/products/universal-parasol-black-s92025300"
  ]
}
```

#### Example: list the collection taxonomy

```json
{
  "mode": "listCollections",
  "minProductsCount": 50,
  "maxItems": 200
}
```

### Use cases

- **Price monitoring** — track pushchair, car seat and nursery furniture prices over time
- **Competitor / market research** — benchmark a UK baby retailer's catalogue, pricing and promotions
- **Product feed building** — import baby & nursery products into a comparison site or marketplace
- **Stock availability tracking** — flag when a popular item goes out of stock
- **Category / taxonomy analysis** — enumerate every collection and its product count

### FAQ

**Do I need a proxy or login?**  No. The actor reads the store's own public Shopify JSON endpoints (`products.json`, `collections.json`, `search/suggest.json`) — the same data your browser fetches, no authentication required.

**Why is `search` capped around the requested `maxItems` but sometimes returns fewer?**  The store's own predictive-search API returns at most 10 highly relevant matches; the actor extends coverage by scanning the site's full XML product sitemap (which reflects every live product URL, unlike the store's own `all-products` collection listing — a curated subset covering only a fraction of the ~2,900+ live products) and keyword-matching the product handle/title/caption, with a second-pass scan of the curated `all-products` collection (matching on title/brand/type) as a supplement. Very narrow queries may still return fewer than `maxItems` if that's all that exists.

**What currency are prices in?**  GBP (£) — Mamas & Papas is a UK retailer.

**What's `discountPercent`?**  Computed from `wasPrice` (the pre-discount price) vs the current `priceMin`, only present when the product is genuinely discounted.

**Why do some products have multiple variants?**  Products with size/colour options (e.g. clothing, car seats) expose one variant per combination, each with its own SKU, price and availability.

**How do I browse a category that isn't in the dropdown?**  Set `customCollectionHandle` to the exact handle from a `mamasandpapas.com/collections/<handle>` URL — it overrides the dropdown.

**Why does `sortBy` sometimes only sort within a candidate pool rather than the whole category?**  The store's own product-listing endpoint doesn't honor a sort parameter, so the actor fetches a bounded pool of matching products (5x `maxItems`, up to 500+) in the store's own order and sorts that pool itself. For very large categories with a small `maxItems`, increase `maxItems` if you need a true full-category top/bottom ranking.

**How fresh is the data?**  Real-time — every request hits the live storefront.

# Actor input Schema

## `mode` (type: `string`):

What to fetch.

## `searchQuery` (type: `string`):

Free-text query matched against product title, brand and type.

## `collectionHandle` (type: `string`):

Pick a common category. Choose "(custom — use field below)" to browse any of the site's 1500+ collections by exact handle.

## `customCollectionHandle` (type: `string`):

Exact collection handle (from a mamasandpapas.com/collections/<handle> URL). Overrides the dropdown above when set.

## `productHandles` (type: `array`):

Product handles (e.g. `graco-daisi-2in1-soother-72352q100`) or full product URLs.

## `minPrice` (type: `number`):

Drop products priced below this (searches/byCollection/byProductHandles).

## `maxPrice` (type: `number`):

Drop products priced above this.

## `inStockOnly` (type: `boolean`):

Only emit products with at least one available variant.

## `brand` (type: `string`):

Case-insensitive substring match against the product's brand/vendor (e.g. `Graco`, `Maxi-Cosi`, `Mamas & Papas`).

## `keyword` (type: `string`):

Case-insensitive substring match against the product's title, brand and description (searches/byCollection/byProductHandles/customCollectionHandle). Use this to further narrow a category browse or product lookup — separate from `searchQuery`, which drives what mode=search fetches in the first place.

## `category` (type: `string`):

Filter to products tagged with this top-level category (parsed from the store's own taxonomy). Only products with a known category are matched; others pass through.

## `subCategory` (type: `string`):

Filter to products tagged with this fine-grained sub-category (parsed from the store's own taxonomy). Only products with a known sub-category are matched; others pass through.

## `colour` (type: `string`):

Filter to products tagged with this colour (parsed from the store's own colour taxonomy). Only products with a known colour are matched; others pass through.

## `gender` (type: `string`):

Filter to products tagged with this gender (mostly relevant for clothing). Only products with a known gender are matched; others pass through.

## `ageRange` (type: `string`):

Filter to products tagged with this age/size range (parsed from the store's own taxonomy). Only products with a known age range are matched; others pass through.

## `sortBy` (type: `string`):

Result ordering, applied by the actor after fetching a candidate pool (the store's own products.json endpoint does not honor sort order).

## `minProductsCount` (type: `integer`):

Only emit collections with at least this many products.

## `maxItems` (type: `integer`):

Hard cap on emitted records.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "pushchair",
  "collectionHandle": "pushchairs",
  "productHandles": [],
  "inStockOnly": false,
  "sortBy": "relevance",
  "maxItems": 50
}
```

# Actor output Schema

## `items` (type: `string`):

Dataset containing all scraped Mamas & Papas products/collections.

# 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 = {
    "mode": "search",
    "searchQuery": "pushchair",
    "collectionHandle": "pushchairs",
    "productHandles": [],
    "inStockOnly": false,
    "sortBy": "relevance",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/mamas-papas-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 = {
    "mode": "search",
    "searchQuery": "pushchair",
    "collectionHandle": "pushchairs",
    "productHandles": [],
    "inStockOnly": False,
    "sortBy": "relevance",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/mamas-papas-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 '{
  "mode": "search",
  "searchQuery": "pushchair",
  "collectionHandle": "pushchairs",
  "productHandles": [],
  "inStockOnly": false,
  "sortBy": "relevance",
  "maxItems": 50
}' |
apify call crawlerbros/mamas-papas-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawlerbros/mamas-papas-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/ThnCveSIekl3BzkYL/builds/6JNSE7SATm2ioRxj0/openapi.json
