# Next.co.uk Product Scraper 🛍️ (`shahidirfan/next-co-uk-product-scraper`) Actor

Elevate your e-commerce intelligence! Seamlessly extract rich product details, live pricing, and stock status from Next.co.uk. Built for market research and competitive analysis, this fast, reliable tool delivers pristine data to supercharge your strategy.

- **URL**: https://apify.com/shahidirfan/next-co-uk-product-scraper.md
- **Developed by:** [Shahid Irfan](https://apify.com/shahidirfan) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Next.co.uk Product Scraper

Extract product data from Next search and category pages using either a direct URL or a keyword. Collect clean, structured product results with pricing, ratings, product links, and images. This scraper is designed for catalog research, market monitoring, and merchandising analysis workflows.

### Features

- **URL or keyword input** — Start from a Next URL or a plain search keyword.
- **Location-aware extraction** — Choose territory and language to target regional catalogs.
- **Pagination control** — Limit by result count and page count for predictable runs.
- **Rich product output** — Capture titles, brand, category, pricing, ratings, and links.
- **Clean dataset records** — Empty and null fields are removed from output.

### Use Cases

#### Product Research
Track product assortments by keyword or category and compare catalog depth across departments.

#### Pricing Intelligence
Monitor list prices and identify pricing patterns by brand, category, or territory.

#### Merchandising Analysis
Build sortable datasets for ranking analysis, product coverage checks, and campaign planning.

#### Regional Catalog Comparison
Run the same search in multiple territories to compare availability and product mix.

#### Data Enrichment Pipelines
Feed output into BI dashboards, spreadsheets, or internal tools for downstream analysis.

---

### Input Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `url` | String | No | `https://www.next.co.uk/search?w=shirt` | Any supported Next URL (search or category/shop URL). |
| `keyword` | String | No | `shirt` | Search keyword when `url` is not provided. |
| `location` | String | No | `GB` | Territory code such as `GB`, `OM`, `PL`, `AE`. |
| `language` | String | No | `en` | Language code such as `en`. |
| `results_wanted` | Integer | No | `20` | Maximum number of products to return. |
| `max_pages` | Integer | No | `10` | Maximum pages to request before stopping. |
| `proxyConfiguration` | Object | No | Apify Proxy enabled | Proxy settings for stable extraction. |

---

### Output Data

Each dataset item includes:

| Field | Type | Description |
|-------|------|-------------|
| `rank` | Integer | Position in the result stream. |
| `itemNumber` | String | Unique Next item number. |
| `title` | String | Product title. |
| `productName` | String | Product name label from source catalog. |
| `brand` | String | Brand name. |
| `department` | String | Department name. |
| `fit` | String | Fit value when available. |
| `productCategory` | String | Product category. |
| `colour` | String | Selected colourway. |
| `currency` | String | Currency code for pricing. |
| `minPrice` | Number | Minimum listed price. |
| `maxPrice` | Number | Maximum listed price. |
| `saleMinPrice` | Number | Minimum sale price when available. |
| `saleMaxPrice` | Number | Maximum sale price when available. |
| `wasMinPrice` | Number | Previous minimum price when available. |
| `wasMaxPrice` | Number | Previous maximum price when available. |
| `rating` | Number | Product rating when available. |
| `url` | String | Product detail URL. |
| `image` | String | Product image URL. |
| `newIn` | Boolean | Whether product is marked as new. |
| `territory` | String | Territory used for extraction. |
| `language` | String | Language used for extraction. |
| `searchTerm` | String | Search term for keyword-based runs. |

---

### Usage Examples

#### Keyword Search

```json
{
  "keyword": "shirt",
  "results_wanted": 50,
  "max_pages": 5
}
````

#### Search URL

```json
{
  "url": "https://www.next.co.uk/search?w=linen%20shirt",
  "results_wanted": 40,
  "max_pages": 4
}
```

#### Category URL in Specific Territory

```json
{
  "url": "https://www.next.om/en/shop/category-dresses",
  "location": "OM",
  "language": "en",
  "results_wanted": 60,
  "max_pages": 6
}
```

***

### Sample Output

```json
{
  "rank": 1,
  "itemNumber": "V09112",
  "title": "Soft Relaxed Long Sleeve Shirt",
  "productName": "STRIPE SHIRT",
  "brand": "Next",
  "department": "Womenswear",
  "fit": "Regular",
  "productCategory": "Shirts",
  "colour": "Pink/White Stripe",
  "currency": "GBP",
  "minPrice": 28,
  "maxPrice": 28,
  "rating": 4.5054,
  "url": "https://www.next.co.uk/style/SU773076/V09112#V09112",
  "image": "https://xcdn.next.co.uk/Common/Items/Default/Default/ItemImages/3_4Ratio/Search/Lge/V09112.jpg",
  "newIn": false,
  "territory": "GB",
  "language": "en",
  "searchTerm": "shirt"
}
```

***

### Tips for Best Results

#### Choose the Right Start Point

- Use `keyword` for broad discovery.
- Use `url` when you want a specific filtered catalog page.

#### Keep Runs Efficient

- Start with `results_wanted: 20` for quick validation.
- Increase result limits gradually for large exports.

#### Control Pagination

- Use `max_pages` as a safety cap for long-running category extractions.
- Combine `max_pages` and `results_wanted` for tighter run boundaries.

#### Run Region-Specific Queries

- Set `location` to a territory code that matches your target storefront.
- Keep `language` aligned with the storefront URL for consistent results.

#### Proxy Configuration

- Use proxy settings for improved reliability at scale.

***

### Integrations

Connect your dataset with:

- **Google Sheets** — For quick tabular review and collaboration.
- **Airtable** — For catalog audits and tracking workflows.
- **Make** — For automation between runs and downstream tools.
- **Zapier** — For no-code processing and alerts.
- **Webhooks** — For custom pipelines and internal systems.

#### Export Formats

- **JSON** — Flexible machine-readable format.
- **CSV** — Spreadsheet-friendly export.
- **Excel** — Business reporting workflows.
- **XML** — Legacy system integrations.

***

### Frequently Asked Questions

#### Do I need both `url` and `keyword`?

No. You can provide either one. If both are present, the URL is used as the primary source.

#### How many products can I extract?

You can extract large volumes by increasing `results_wanted` and `max_pages`, based on available data.

#### Why are some optional fields missing?

Some products do not publish every attribute in every territory. Empty values are removed from output.

#### Can I run this for non-UK catalogs?

Yes. Set `location` and `language` to the regional storefront you want.

#### Does the scraper handle pagination automatically?

Yes. It advances page-by-page until limits are reached or no more products are returned.

#### Can I schedule this actor?

Yes. Use Apify schedules to run daily, hourly, or on custom intervals.

***

### Support

For issues or feature requests, contact support through the Apify Console.

#### Resources

- [Apify Documentation](https://docs.apify.com/)
- [Apify API Reference](https://docs.apify.com/api/v2)
- [Apify Schedules](https://docs.apify.com/schedules)

***

### Legal Notice

This actor is intended for legitimate data collection and analysis. You are responsible for complying with website terms, local regulations, and applicable data-use policies.

# Actor input Schema

## `url` (type: `string`):

Any supported Next page URL, for example https://www.next.co.uk/search?w=shirt or category/shop URLs.

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

Keyword search term. Used when URL is not provided.

## `location` (type: `string`):

Two-letter territory code (for example GB, OM, PL, AE).

## `language` (type: `string`):

Two-letter language code (for example en).

## `results_wanted` (type: `integer`):

Maximum number of products to extract.

## `max_pages` (type: `integer`):

Maximum number of API pages to request.

## `proxyConfiguration` (type: `object`):

Use Apify Proxy for more reliable data extraction.

## Actor input object example

```json
{
  "url": "https://www.next.co.uk/search?w=shirt",
  "keyword": "shirt",
  "location": "GB",
  "language": "en",
  "results_wanted": 20,
  "max_pages": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "url": "https://www.next.co.uk/search?w=shirt",
    "keyword": "shirt",
    "location": "GB",
    "language": "en",
    "results_wanted": 20,
    "max_pages": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("shahidirfan/next-co-uk-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 = {
    "url": "https://www.next.co.uk/search?w=shirt",
    "keyword": "shirt",
    "location": "GB",
    "language": "en",
    "results_wanted": 20,
    "max_pages": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("shahidirfan/next-co-uk-product-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "url": "https://www.next.co.uk/search?w=shirt",
  "keyword": "shirt",
  "location": "GB",
  "language": "en",
  "results_wanted": 20,
  "max_pages": 10
}' |
apify call shahidirfan/next-co-uk-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=shahidirfan/next-co-uk-product-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Next.co.uk Product Scraper 🛍️",
        "description": "Elevate your e-commerce intelligence! Seamlessly extract rich product details, live pricing, and stock status from Next.co.uk. Built for market research and competitive analysis, this fast, reliable tool delivers pristine data to supercharge your strategy.",
        "version": "0.0",
        "x-build-id": "TEh1VAE1zry0d7mT1"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/shahidirfan~next-co-uk-product-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-shahidirfan-next-co-uk-product-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/shahidirfan~next-co-uk-product-scraper/runs": {
            "post": {
                "operationId": "runs-sync-shahidirfan-next-co-uk-product-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/shahidirfan~next-co-uk-product-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-shahidirfan-next-co-uk-product-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "url": {
                        "title": "URL",
                        "type": "string",
                        "description": "Any supported Next page URL, for example https://www.next.co.uk/search?w=shirt or category/shop URLs."
                    },
                    "keyword": {
                        "title": "Keyword",
                        "type": "string",
                        "description": "Keyword search term. Used when URL is not provided."
                    },
                    "location": {
                        "title": "Location / Territory",
                        "type": "string",
                        "description": "Two-letter territory code (for example GB, OM, PL, AE)."
                    },
                    "language": {
                        "title": "Language",
                        "type": "string",
                        "description": "Two-letter language code (for example en)."
                    },
                    "results_wanted": {
                        "title": "Results wanted",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of products to extract.",
                        "default": 20
                    },
                    "max_pages": {
                        "title": "Max pages",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of API pages to request.",
                        "default": 10
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Use Apify Proxy for more reliable data extraction.",
                        "default": {
                            "useApifyProxy": false
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
