# Wiggle Scraper (`crawlerbros/wiggle-scraper`) Actor

Scrape Wiggle (wiggle.com) - cycling, running, swimming, and outdoor gear e-commerce. Search or browse by category or brand, filter by price, colour, gender, and sale status, or fetch full product details (description, GTIN, per-size stock) by URL.

- **URL**: https://apify.com/crawlerbros/wiggle-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/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

## Wiggle Scraper

Scrape [Wiggle](https://www.wiggle.com) — a leading UK-based online retailer for cycling, running, swimming, triathlon, and outdoor gear. Search products by keyword, browse by category or brand, filter by price, colour, gender, and sale status, or pull full product detail pages (description, GTIN, per-size stock) from product URLs.

### What this actor does

- **Four modes:** `search`, `byCategory`, `byBrand`, `byProductUrls`
- **245 categories and subcategories** across Cycle, Run, Swim, Outdoors, Nutrition & Body Care, and Outlet — full department → category → subcategory tree
- **271 brands** to browse directly
- **Filters:** brand, colour, gender, size, min/max price, on-sale-only, 8 sort orders
- **Full product detail mode:** description, GTIN-13, per-size/SKU stock quantity and pricing
- **Empty fields are omitted** — every record only contains data that was actually found

### Output per product

#### Listing records (`search` / `byCategory` / `byBrand`, `recordType: "product"`)

- `productId`, `productName`, `brand`
- `colour`, `gender` (inferred from product name)
- `price`, `rrp`, `discountPercent`, `currency`
- `availableSizes[]`
- `imageUrl`, `productUrl`, `sourceUrl`
- `recordType: "product"`, `scrapedAt`

#### Product detail records (`byProductUrls`, `recordType: "productDetail"`)

- `productName`, `brand`, `description`, `gtin13`
- `gender` (inferred), `price`, `currency`
- `offers[]` — every size/SKU variant with `sku`, `size`, `price`, `inStock`, `stockQty` (exact units in stock)
- `totalStockQty` — sum of `stockQty` across all size variants
- `imageUrl`, `productUrl`, `sourceUrl`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | select | `search` | `search` / `byCategory` / `byBrand` / `byProductUrls` |
| `searchQuery` | string | `bike helmet` | Free-text query (mode=search) |
| `categoryPath` | select | – | Category to browse (mode=byCategory), one of 245 known department/category/subcategory paths, each verified to return real product listings |
| `brandSlug` | select | – | Brand to browse (mode=byBrand), one of 271 known brands |
| `productUrls` | array | – | Full wiggle.com product URLs (mode=byProductUrls) |
| `brand` | string | – | Only keep products whose brand contains this text |
| `colour` | string | – | Only keep products whose colour contains this text |
| `gender` | select | – | `Mens` / `Womens` / `Kids` / `Unisex` |
| `size` | string | – | Only keep products whose available sizes contain this text (e.g. `Medium`, `2X Large`) |
| `minPrice` | int | – | Minimum price in GBP |
| `maxPrice` | int | – | Maximum price in GBP |
| `sortBy` | select | `rank` | `rank` / `newest` / `discountValueDesc` / `discountPercentDesc` / `priceAsc` / `priceDesc` / `brandAsc` / `brandDesc` |
| `onSaleOnly` | bool | `false` | Only keep products discounted vs. RRP |
| `maxItems` | int | `50` | Hard cap (1–2000) |

#### Example: search for bike helmets under £30

```json
{
  "mode": "search",
  "searchQuery": "bike helmet",
  "maxPrice": 30,
  "maxItems": 50
}
```

#### Example: browse cycling jerseys on sale, sorted by discount

```json
{
  "mode": "byCategory",
  "categoryPath": "cycle/clothing/jerseys",
  "onSaleOnly": true,
  "sortBy": "discountPercentDesc",
  "maxItems": 50
}
```

#### Example: browse a brand's full range

```json
{
  "mode": "byBrand",
  "brandSlug": "dhb",
  "maxItems": 60
}
```

#### Example: full product details from a saved list of URLs

```json
{
  "mode": "byProductUrls",
  "productUrls": [
    "https://www.wiggle.com/dhb-long-sleeve-jersey-mens-630025"
  ]
}
```

### Use cases

- **Price monitoring** — track product and brand prices/discounts over time
- **Sale tracking** — sort by discount to find the best current deals
- **Brand catalogue export** — pull a full brand's range via `byBrand`
- **Catalogue enrichment** — pull full descriptions, GTINs, and per-size stock for a known list of product URLs

### FAQ

**Does this need a login or API key?**
No. All data is publicly available on Wiggle's storefront pages.

**Why does `byCategory`/`byBrand` return fewer results than expected for a niche filter?**
Brand/colour/gender/price/on-sale filters are applied to the actual listing content after fetching — the underlying category/brand page's own facet filters aren't used server-side, so this actor scans further pages automatically when a filter is active until enough matches are found or the page runs out.

**How current is the data?**
Every run fetches live pages directly from Wiggle — prices, stock, and discounts reflect what's on the site at run time.

**Which currency are prices in?**
GBP (£) — Wiggle's UK storefront is the source for this actor.

**Will `productUrl`/`imageUrl` open for me?**
Yes — every URL is a real, live Wiggle page or image (verified `200 OK`). A bare `curl`/script request without a real browser TLS/HTTP2 profile may see a connection error; opening the same URL in any normal web browser always works.

# Actor input Schema

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

What to fetch.

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

Free-text search, e.g. product or brand keyword (`bike helmet`, `running shoes`).

## `categoryPath` (type: `string`):

Category to browse. 245 known category/subcategory paths, each verified to return real product listings.

## `brandSlug` (type: `string`):

Brand to browse.

## `productUrls` (type: `array`):

Full wiggle.com product page URLs, e.g. `https://www.wiggle.com/dhb-long-sleeve-jersey-mens-630025`.

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

Only keep products whose brand contains this text (case-insensitive). Applies to all modes.

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

Only keep products whose colour contains this text (case-insensitive), e.g. `black`, `blue`.

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

Only keep products inferred (from product name) to match this gender.

## `size` (type: `string`):

Only keep products whose available sizes contain this text (case-insensitive), e.g. `Medium`, `L`, `2X Large`. Sizing varies widely by product type, so this is free text rather than a fixed dropdown.

## `minPrice` (type: `integer`):

Only keep products priced at or above this amount, in GBP.

## `maxPrice` (type: `integer`):

Only keep products priced at or below this amount, in GBP.

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

Sort order for search/category/brand listings.

## `onSaleOnly` (type: `boolean`):

Only keep products that are discounted vs. RRP.

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

Maximum number of products to return.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "bike helmet",
  "categoryPath": "cycle/clothing/jerseys",
  "brandSlug": "dhb",
  "productUrls": [],
  "gender": "",
  "sortBy": "rank",
  "onSaleOnly": false,
  "maxItems": 24
}
```

# Actor output Schema

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

Dataset containing all scraped Wiggle products.

# 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": "bike helmet",
    "categoryPath": "cycle/clothing/jerseys",
    "brandSlug": "dhb",
    "productUrls": [],
    "gender": "",
    "sortBy": "rank",
    "onSaleOnly": false,
    "maxItems": 24
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/wiggle-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": "bike helmet",
    "categoryPath": "cycle/clothing/jerseys",
    "brandSlug": "dhb",
    "productUrls": [],
    "gender": "",
    "sortBy": "rank",
    "onSaleOnly": False,
    "maxItems": 24,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/wiggle-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": "bike helmet",
  "categoryPath": "cycle/clothing/jerseys",
  "brandSlug": "dhb",
  "productUrls": [],
  "gender": "",
  "sortBy": "rank",
  "onSaleOnly": false,
  "maxItems": 24
}' |
apify call crawlerbros/wiggle-scraper --silent --output-dataset

```

## MCP server setup

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