# Sports Direct UK Scraper - Products, Prices, Sizes & Stock (`abotapi/sports-direct-scraper`) Actor

Scrape Sports Direct (sportsdirect.com) UK products by keyword, filters or URL. Extract prices, original prices, discounts, brands, sizes, size-level stock, colours, ratings, images and product attributes. Supports category, brand, sale and product URLs.

- **URL**: https://apify.com/abotapi/sports-direct-scraper.md
- **Developed by:** [Abot API](https://apify.com/abotapi) (community)
- **Categories:** Automation, Developer tools, E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 product results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Sports Direct Scraper: Products, Prices, Sizes & Stock (UK)

Sports Direct Scraper turns Sports Direct (sportsdirect.com), the UK's sportswear, footwear and fashion retailer with tens of thousands of products, into structured product data. Search by keyword and filters, or paste a category, brand, sale or product link, and get selling prices, ticket prices, discounts, every size with its stock quantity, colours, brands, ratings, images and product attributes. Export to JSON, CSV or Excel, or pull results straight into your app through the API.

### Why This Scraper?

- **One row per colour.** Every colourway of a product is its own row with its own colour code, images, price and sizes, tied together by the style code, so a pivot by style or by colour is one group-by away.
- **Every size, with stock.** With product details on, each row lists every size (sold-out sizes included) with its SKU, price, in-stock flag and available quantity, plus the colour's total available quantity and the store's low-stock label.
- **Prices that tell the whole story.** Selling price, ticket price, discount value and percentage, the Frasers Plus member price, the sale badges and the promotion banners.
- **Filters that run over the whole catalog.** Brand, gender or age group, product type, colour, size, price range, minimum discount, minimum rating, products on sale and in-stock only, with price and biggest-discount sort orders that cover every matching product, not just the first pages.
- **Every way into the catalog.** Keyword searches, the home page, category pages (with their sort, page and brand options), brand pages, the sale page and single product pages, including a single colour of a product.
- **Rich attributes.** Description, features, fabric composition, country of origin, fastenings, fit, pattern, waterproof and vegan flags, footwear details, the full image gallery, the category codes and the category page.
- **Monitoring built in.** Label every product NEW, UPDATED, REAPPEARED or EXPIRED across scheduled runs, track price and stock only, resume an interrupted crawl, get a chat alert when a run finishes, and export through MCP connectors.

### Use Cases

- **Price and promotion monitoring:** track selling prices, ticket prices and discount depth across sportswear, footwear and fashion, and get alerted only to what actually changed.
- **Stock and size availability tracking:** follow which sizes are in stock and how many units are left for the colours you care about.
- **Brand and range analysis:** pull a brand or a category to study range depth, price bands, colours and sizes.
- **Retail and resale research:** compare Sports Direct prices against your own listings or other retailers by brand, style code and colour.
- **Catalog enrichment:** add images, features, materials and attributes to a product list by style or colour code.

### Data You Get

> Sample shape: values are illustrative placeholders, not from a live record.

| Field | Example |
| --- | --- |
| `colourCode` / `objectID` / `styleCode` | `"00000000"` / `"00000000"` / `"000000"` (the colour's id and the product's style id) |
| `name` / `cleanproductname` | `"Sample Trainers Mens"` / `"Sample Trainers"` |
| `brand` / `webbrand` | `"Sample Brand"` / `"Sample Brand"` |
| `description` / `features` | the product copy / a list of feature lines |
| `colourName` / `cleancolour` | `"Black/White"` / `"Black"` |
| `genderage` / `webgender` | `"Mens"` / `"Mens"` |
| `category` / `webcategory` / `webcat` / `subcategory` / `subcategorygroup` | `"Footwear"` / `"Footwear"` / `"Trainers"` / `"Sample Line"` / `"Trainers"` |
| `activity` / `activitygroup` / `webstyle` | `"Leisure"` / `"Runners"` / `"Runners"` |
| `sellingPrice` / `ticketPrice` / `discountValue` / `discountPercentage` | `65` / `99.99` / `34.99` / `34.99` |
| `frasersPlusPrice` / `currency` | `55` / `"GBP"` |
| `imageSash` / `discountsash` / `textSashes` | `"50off"` / `"50 Off"` / `["SALE", "UP TO 50% OFF"]` |
| `url` / `productLink` | the product page on the colour / the product's path |
| `categoryUrl` / `categories` | the category page / the category codes the product is listed under |
| `imageUrl` / `alternativeImages` | main image / full gallery |
| `cleansize` / `sizeVariants` | `["8", "9"]` / `[{"variantId": "00000000000", "size": "8 (42)", "sellingPrice": 65, "ticketPrice": 99.99, "inStock": true, "availableQuantity": 120, "stockLevel": null, "isPreorderable": false}]` |
| `hasInventory` / `inStock` / `availableQuantity` | `true` / `true` / `1200` |
| `coreSizesInStockPercentage` / `coreSizesInStockBucket` | `100` / `"90 to 100 Percent"` |
| `isPreorderable` / `productLaunchDate` | `false` / `"2021-01-01T00:00:00Z"` |
| `avgRating` / `noOfRatings` | `4.2` / `12` |
| `material` / `countryoforigin` / `garmentcare` | `"Textile"` / `"Sample Country"` / `"Clean with a soft damp cloth"` |
| `fastenings` / `fitmw` / `pattern` / `waterproof` / `vegan` | `"Lace Up"` / `"Regular Fit"` / `"Plain"` / `null` / `null` |
| `sole` / `footwearupper` / `lining` / `footwearheelheight` | footwear attributes, `null` for other products |
| `featuredAttributes` | `[{"name": "Fastenings", "value": "Lace Up"}]` (with product details) |
| `position` / `query` / `sourceUrl` / `scrapedAt` | `1` / `"sample keyword"` / the link a row came from / the scrape time |

### How to Use

1. Keep the default **search** mode and add one or more keywords and filters, or switch to **url** mode and paste category, brand, sale or product links.
2. Narrow with brands, gender, product type, colour, size, a price range, a minimum discount or rating, and choose a sort order.
3. Keep **Fetch product details** on for the stock quantity of every size, or turn it off for a cheaper listing-level pull.
4. Set **Max items** to control run size and cost, then click **Start**.

**Quick keyword search:**

```json
{
  "mode": "search",
  "searchTerms": ["nike air max"],
  "maxItems": 20
}
```

**Filtered and sorted, no keyword:**

```json
{
  "mode": "search",
  "searchTerms": [],
  "brands": ["Nike", "adidas"],
  "genders": ["Mens"],
  "categories": ["Trainers"],
  "sizes": ["9", "10"],
  "maxPrice": 80,
  "sortBy": "price_low",
  "maxItems": 50
}
```

**Several links, a few products from each:**

```json
{
  "mode": "url",
  "urls": [
    "https://www.sportsdirect.com/mens/footwear/trainers?brand=Nike",
    "https://www.sportsdirect.com/nike",
    "https://www.sportsdirect.com/sale",
    "https://www.sportsdirect.com/nike-mens-air-max-invigor-runners-121261#colcode=12126140"
  ],
  "maxItemsPerSearch": 10,
  "maxItems": 30
}
```

#### Links you can paste

- The home page and the sale page (`/sale`, products with a discount).
- Category pages such as `/mens/footwear/trainers`, with `?sortOrderCode=PRICE&sortOrderDirection=ASC`, `?pageNumber=2` or facet options such as `?brand=Nike`, `?colour=Black` and `?size=9`. Older category addresses that the site redirects work too, and a brand segment added to a category page (`/mens/footwear/trainers/adidas`) narrows it to that brand.
- Search pages (`/search?q=nike`, and the older `/searchresults?descriptionfilter=nike`).
- Brand pages (`/nike`). A brand sub-page is read as its brand.
- Product pages (`/<brand>-<name>-<style code>`). Add `#colcode=<colour code>` or `?colcode=<colour code>` to read one colour; without it every colour of the product is returned.
- Links on the US store host are read from the main store catalog, with prices in GBP. Sitemap, robots.txt, store finder and backend addresses are not product links: a run given only such links stops at once with a clear message, before any page is read, and mixed in with other links they are skipped with a log line.

#### Caps and pagination

**Max items** stops the whole run once that many product rows have been returned (`0` = no cap). **Max items per keyword or link** caps each one on its own, so one large category cannot use up the whole run. **Max pages** limits how many result pages each keyword or link walks; it does not cap the run by itself. In the store's own order a single search can be read 20,000 products deep; a larger set is split into price ranges automatically and every range is read, with duplicates dropped. Price and biggest-discount sort orders always read the set in value ranges, so the order holds over every matching product. A pasted link with `?pageNumber=N` starts at that page (also in price or discount order: the rows before it are skipped, never returned or charged) and never triggers EXPIRED detection.

#### Resume and recurring updates

- **Resume** (`resumeFromRunId`) skips products already collected by an earlier run: paste its run or dataset ID and those rows are neither returned nor charged again.
- **Incremental mode** (`incrementalMode`) is for scheduled runs over the same search, link or filter set. Each row is classified `NEW`, `UPDATED` (with `changedFields`), `UNCHANGED` (left out and not billed unless `emitUnchanged` is on), `REAPPEARED`, or `EXPIRED` (only after a run whose walks all reached their confirmed end and whose every page read succeeded, never after a capped, page-limited, resumed or timeout-stopped run, a run with product details off or with a product page that could not be read, or a run that includes a home or sale page link, and only with `emitExpired` on). The result position, scrape time, the keyword or link a row was found through, the live stock quantities (total and per size), the stock-level labels, the stock-run percentage, the campaign banners and the image version stamp never count as a change. `ignoreFieldsForChanges` defaults to the rating (`avgRating`) and the rating count (`noOfRatings`), which drift with every new review; remove names to be told about them, or add more. `changeScope: "priceAndStock"` compares only the selling price, ticket price, discount percentage, Frasers Plus price, the in-stock flag and per-size prices and in-stock flags; `compactUpdates` returns slim rows with just what moved. If a product's page cannot be read during an incremental run, that row is held back (not returned, not charged, its saved state untouched) and the next run that can read it reports it. One saved state tracks at most 5,000 products so the default memory can always load it; a campaign past that is not saved (the earlier state is kept), and a state that is somehow larger is not loaded (that run starts fresh, returns every product as NEW, marks nothing EXPIRED and leaves the saved state as it was). Split very large campaigns with separate state keys. `stateKey` names the stored state; leave it empty and the actor derives one from the run's keyword, link, sort and filter setup. If runs with a different keyword, link, sort or filter setup share one `stateKey`, they list different products: such a run still compares products but marks nothing `EXPIRED`, says so once in the log, and products only the earlier setup listed are never marked `EXPIRED` (or returned again as `REAPPEARED`) because of the other setup. Use one `stateKey` per setup. A row read without its product page (details off, or the page does not list that colour) is compared using the product-page fields saved earlier, overlaid with the sizes the listing shows in stock now, so it is never reported or billed as UPDATED just because the page was not read; the returned row shows only what this run read.

#### Alerts

Fill in a Slack incoming webhook, a Discord channel webhook or a chat-bot token and chat ID, and the actor posts one short summary when the run finishes: the number of rows (and, in incremental mode, how many are new, updated, reappeared or expired) followed by up to **Rows listed per alert** products. With **Alert on changes only** on and Incremental changes on, nothing is sent when nothing changed. Sending an alert adds no charge of its own and never changes the run's result; leave every field empty to skip them.

### Send results into your apps (MCP connectors)

Optionally pipe the scraped results into the apps you already use, via Model Context Protocol (MCP) connectors. This is an extra delivery step **after** the scrape: the Apify dataset is never changed.

**What gets written to the connector:** a condensed, human-readable **summary** of each record, not the full JSON. Each item becomes one entry with a **title** and its key fields flattened to plain text. The **complete record always stays in the Apify dataset**.

1. Authorize a connector once under **Apify, Settings, Integrations** (Notion, Linear, Airtable, or Apify).
2. Select it in the **"Pipe results into your apps"** input field (`mcpConnectors`). (If the picker is empty, you haven't authorized a connector yet.)
3. For **Notion**, also set `notionParentPageUrl` to the page where items should be created.
4. Optionally set `maxNotifyListings` to cap how many items are written to each connector per run (default 50).

The connection is mediated by Apify's MCP proxy, so this actor never sees your third-party credentials. Leave the field empty to skip.

### Input Parameters

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `mode` | string | `search` | Choose 'search' to run keyword searches and filters or 'url' to paste category, search, brand, sale or product links. |
| `searchTerms` | array | `["nike air max"]` | One or more keywords to search for, for example 'nike air max', 'football boots' or a brand and model. Each keyword is searched separately. Leave empty to browse by the filters below only. |
| `sortBy` | string | `relevance` | Order of the results. Relevance is the store's own search order. Price and biggest-discount orders cover every product that matches your keyword and filters, not just the first pages; 'Biggest discount' lists products on sale only. A pasted link that carries its own sort keeps it. |
| `brands` | array | empty | Only return products of these brands, written the way the store shows them (for example 'Nike', 'adidas', 'Under Armour'). Leave empty for all brands. |
| `genders` | array | empty | Only return products for these groups, as the store names them: Mens, Womens, Unisex Adults, Unisex Kids, Boys, Girls. Leave empty for all. |
| `categories` | array | empty | Only return these product types, as the store names them (for example 'Trainers', 'Football Boots', 'Hoodies and Sweatshirts', 'Socks'). Leave empty for all. |
| `colours` | array | empty | Only return products in these colour groups (for example 'Black', 'White', 'Navy'). Leave empty for all. |
| `sizes` | array | empty | Only return products that have one of these sizes in stock, written the way the store shows them (for example '9', '10.5', 'M', 'XL'). Leave empty for all. |
| `minPrice` | number | empty | Lowest selling price in pounds. Leave empty for no lower bound. |
| `maxPrice` | number | empty | Highest selling price in pounds. Leave empty for no upper bound. |
| `minDiscount` | integer | empty | Only products discounted by at least this percentage against the ticket price. Leave empty for all. |
| `minRating` | number | empty | Only products rated at least this many stars (1 to 5). Leave empty for all. |
| `onSaleOnly` | boolean | false | Only products with a discount against their ticket price. Off by default. |
| `inStockOnly` | boolean | true | On by default, the way the store lists products. Turn off to also return colourways that are currently out of stock. |
| `urls` | array | the 15 confirmed link shapes | Paste Sports Direct links: the home page, a category page (/mens/footwear/trainers, also with ?pageNumber=2 or a brand such as ?brand=Nike), a search page (/search?q=...), a brand page (/nike), the sale page (/sale) or a product page (/<brand>-<name>-<style code>, with a colour code after #colcode= or ?colcode= to read one colour). A product link without a colour code returns every colour of that product. Links on the US store host are read from the main store catalog, with prices in GBP. Sitemap, robots.txt, store finder and backend addresses are not product links: a run given only such links stops at once with a clear message, before any page is read, and mixed in with other links they are skipped with a log line. |
| `fetchDetails` | boolean | true | Read each row's product page to add the stock quantity of every size (including sold-out sizes), the total available quantity, the category page link and the featured attributes. Charged once per row enriched. Turn off for a cheaper listing-level pull, where sizes show only what is in stock and the quantity fields stay empty. |
| `maxPages` | integer | empty (no limit) | Optional. Limits how many result pages each keyword or link walks. Empty or 0 means no page limit; it does NOT cap the run by itself, Max items below does. |
| `maxItems` | integer | `20` | THE cap on this run: the maximum number of product rows (colourways) returned across the whole run. Defaults to 20 so a first run is fast and cheap. Set 0 for no cap (the run then reads a whole category or the whole catalog). |
| `maxItemsPerSearch` | integer | `0` | Optional. Caps how many products each keyword or pasted link may return, so one large category cannot use up the whole run. 0 (default) = no per-keyword cap; Max items still caps the run. |
| `proxy` | object | `{"useApifyProxy": true}` | Leave this on the default (Automatic) for most runs; it is measured to work and needs a plan with Apify Proxy access (Apify free plans include no Apify proxy: a free run continues only on a backup datacenter connection, never residential, or on your own proxy URLs). Residential is recommended for the most reliable results on large or frequent runs, and is billed to your own Apify plan. |
| `resumeFromRunId` | string | empty | Paste a previous run ID or dataset ID to continue a large crawl without returning or charging for products already collected there. For recurring monitoring of the same search, use Incremental mode below instead. |
| `incrementalMode` | boolean | false | Turn this on for daily or recurring monitoring. The first run returns every matching product as NEW. Later runs normally return only NEW, UPDATED and REAPPEARED products. A product counts as UPDATED when any of its fields changed, except the result position, the scrape time, the keyword or link it was found through, the live stock quantities, the stock-level labels, the campaign banners and by default its rating and rating count (see Ignore fields below); with 'Price and stock only' just selling price, ticket price, discount, Frasers Plus price, the in-stock flag and per-size price and in-stock flags are compared. State is kept separately for each keyword, link, sort and filter setup (switching product details on or off keeps the same state and never bills tracked rows as UPDATED for it); use State key to name a monitoring campaign (one key per setup). |
| `stateKey` | string | empty | Optional. Name this monitoring campaign to keep its state stable across runs with the same search setup. If runs with a different keyword, link, sort or filter setup share one key, they list different products, so such a run marks nothing EXPIRED (it says so in the log); use one key per setup. Leave empty to derive a key automatically from this run's search and filter setup. |
| `changeScope` | string | `all` | 'Price and stock only' compares just the selling price, ticket price, discount percentage, Frasers Plus price, the in-stock flag and per-size prices and in-stock flags; a description, image, attribute or badge change is treated as UNCHANGED and is never returned or billed as UPDATED. 'All fields' compares the whole record (minus the fields listed under Incremental changes). |
| `compactUpdates` | boolean | false | When on, an UPDATED row carries only identifiers plus the price/stock fields that actually moved (priceChanges, variantChanges), instead of the full record. Off by default. |
| `expireAfterMissedScans` | integer | `1` | A tracked product absent from this many consecutive complete scans in a row is marked EXPIRED; fewer misses are held over without being reported. 1 (default) expires on the first miss, matching this actor's previous behaviour. |
| `emitUnchanged` | boolean | false | Off by default. Turn on to also return products that have not changed since the last run, marked UNCHANGED. This returns, and bills, extra rows you already have. |
| `emitExpired` | boolean | false | Off by default. Turn on to also return products that were present in a previous run but are no longer found, marked EXPIRED. Only produced once a run has fully scanned the tracked search, never when Max items or Max pages capped it, when a pasted link started past page 1, when a home or sale page link was included, when product details were off or a product page could not be read, when the run stopped before its timeout, when the saved state came from a different search setup, or when Resume was used. This returns, and bills, extra synthetic rows. |
| `ignoreFieldsForChanges` | array | `["avgRating", "noOfRatings"]` | Field names that must NOT count as a change in incremental mode. The default list leaves out the rating (avgRating) and the rating count (noOfRatings), which drift with every new review; remove names from the list to be told about them. A product whose only differences are in these fields is treated as UNCHANGED, so it is not returned or billed as UPDATED. Names match at any nesting depth. The fields still appear in the output of rows that are returned. |
| `mcpConnectors` | array | empty | Optionally send results into the apps you already use, via Model Context Protocol (MCP) connectors. Authorize one under Apify, Settings, API & Integrations, then select it here. Leave empty to skip; this never changes the dataset output. |
| `notionParentPageUrl` | string | empty | URL or id of the Notion page under which item pages are created. Required to enable the Notion export; ignored by other connectors. |
| `maxNotifyListings` | integer | `50` | Cap on items written to each connector per run. Does not affect the dataset. |
| `notifyOnlyChanges` | boolean | false | Only send the alert when Incremental changes is on and at least one product is NEW, UPDATED, REAPPEARED or EXPIRED. Without Incremental changes every finished run sends its summary. |
| `notificationLimit` | integer | `5` | How many product rows the alert message lists (the run's totals are always in the first line). |
| `slackWebhookUrl` | string | empty | Optional Slack incoming-webhook URL to post the summary to. |
| `discordWebhookUrl` | string | empty | Optional Discord channel webhook URL to post the summary to. |
| `chatBotToken` | string | empty | Optional Chat-bot token to post the summary with (needs the chat ID below). |
| `chatBotChatId` | string | empty | Optional Chat-bot chat ID that receives the summary (needs the bot token above). |

### Output Example

> Sample shape: values are illustrative placeholders, not from a live record.

```json
{
  "kind": "product",
  "objectID": "00000000",
  "colourCode": "00000000",
  "styleCode": "000000",
  "name": "Sample Trainers Mens",
  "brand": "Sample Brand",
  "description": "Sample product copy.",
  "colourName": "Black/White",
  "cleancolour": "Black",
  "genderage": "Mens",
  "webcat": "Trainers",
  "sellingPrice": 65,
  "ticketPrice": 99.99,
  "discountValue": 34.99,
  "discountPercentage": 34.99,
  "frasersPlusPrice": 55,
  "currency": "GBP",
  "url": "https://www.sportsdirect.com/sample-brand-mens-sample-trainers-000000#colcode=00000000",
  "categoryUrl": "https://www.sportsdirect.com/mens/footwear/trainers",
  "imageUrl": "https://example.com/image-1.jpg",
  "cleansize": ["8", "9"],
  "sizeVariants": [
    {"variantId": "00000000080", "size": "8 (42)", "sellingPrice": 65, "ticketPrice": 99.99, "inStock": true, "availableQuantity": 120, "stockLevel": null, "isPreorderable": false}
  ],
  "hasInventory": true,
  "inStock": true,
  "availableQuantity": 1200,
  "avgRating": 4.2,
  "noOfRatings": 12,
  "material": "Textile",
  "countryoforigin": "Sample Country",
  "categories": ["SAMPLECATEGORY"]
}
```

### Plan Requirement

Pay per event: one unit per returned product row (one colour of a product), plus an actor start event, plus a detail-enrichment unit for each row actually enriched with its product page. Each unit is charged per row, as the row is delivered, never as a single total at the end. A row whose product page could not be read still ships, without the detail-enrichment unit, and an unchanged row left out in incremental mode is neither returned nor charged. Turn **Fetch product details** off for listing-only rows.

### FAQ

#### How much does it cost?

You pay per product row returned, plus one detail-enrichment unit per row enriched with its product page (on by default; turn `fetchDetails` off for listing-only rows). The **Pricing** tab shows the current rates. Use **Max items** to cap the cost of any run.

#### Is it legal to scrape Sports Direct?

This actor collects only publicly available product data that Sports Direct shows on its own pages. You are responsible for how you use it: follow Sports Direct's terms and the laws that apply to you, and get legal advice if you plan commercial redistribution. Prices and attributes are generally facts, but images and description text may be subject to third-party rights.

#### Can I get only new or changed products on a schedule?

Yes. Schedule the actor from the **Schedules** tab and turn on **Incremental mode**. Each run then returns only new, updated and reappeared rows; unchanged ones are not billed unless you turn `emitUnchanged` on. Use `changeScope: "priceAndStock"` to be told only about price and stock moves.

#### Why is the same product in several rows?

A row is one colour of a product. A pair of trainers that comes in ten colours is ten rows that share a `styleCode`; each has its own `colourCode`, images, price and sizes.

#### Why is the description short?

The store itself shows a shortened product description; the rows carry exactly that text, together with the full list of feature lines in `features`.

#### Why does a search return fewer products than the site shows?

The site shows in-stock products only, and so does the default (`inStockOnly`); turn it off to include colours that are currently out of stock. Filters you set narrow the same result the site would show.

#### Which proxy should I use?

The default (Automatic) is a datacenter connection measured to work on every page this actor reads, and it needs a plan with Apify Proxy access. Apify free plans include no Apify proxy: a free run continues only on a backup datacenter connection (never residential), or you can enter your own proxy URLs. Residential is recommended for the most reliable results on large or frequent runs. If the connection you selected is unavailable or keeps getting refused, the run automatically continues on a backup connection (the other Apify proxy tier, then a backup gateway) rather than stopping; that escalation is disclosed in the run log the first time it happens, and any residential traffic it uses is billed to your own Apify plan. Set `SPORTSDIRECT_COM_ALTERNATE_CONNECTION=0` in the run's environment variables to disable the backup connection entirely. If you enter your own proxy URLs, they are used as-is with no backup connection; if your proxy re-signs HTTPS traffic, the run says so once in the log ("The custom proxy re-signs HTTPS traffic; retrying without certificate verification for it.") and continues on it.

#### Why did my run fail instead of returning an empty dataset?

If every search or link could not be read, the run stops with a clear message so "no products matched" is never confused with "nothing could be read". Run it again in a few minutes. The messages you may see in the run log:

- When the selected connection is unavailable to your account, the log says: "The selected connection is unavailable to this run. Apify free plans do not include residential proxies. Continuing on a backup connection; some pages may still be unavailable. For residential access, upgrade at https://apify.com/pricing or supply your own proxy URLs."
- When pages are then read over the backup connection: "Served over the backup connection (the default connection was unavailable)." Set `SPORTSDIRECT_COM_ALTERNATE_CONNECTION=0` in the run's environment variables to disable the backup connection.
- If the proxy connection is refused for the account and no page could be read: "The proxy connection was refused for this account, so no page could be read. Your Apify plan does not include proxy access; a paid plan is required: https://apify.com/pricing. If you entered your own proxy URLs, check that their credentials are valid."
- If the run reaches the maximum cost per run you set, it stops and its status says: "Stopped early: the run reached the maximum cost per run you set, after N row(s). Nothing more was read, delivered or charged. Raise the maximum cost per run to collect more."
- If the run has no residential access and the backup connection still could not load a usable page: "No results: residential proxies are unavailable on this run (Apify free plans do not include them), and the backup connection could not load the requested Sports Direct pages. Upgrade at https://apify.com/pricing or supply your own proxy URLs, then try again."
- If every request failed for another reason: "Could not load any results page (the requests failed), so nothing was collected. This is a connection problem, not an empty search. Please try again later."

Each of these failure messages ends with how many of your searches or links could not be read (or, in incremental mode, how many products were held back because their page could not be read). A run with no keywords, no filters and no supported links fails at once with "Nothing to scrape: add search keywords or at least one filter in Search mode, or paste valid sportsdirect.com links in URL mode." If only some keywords or links could be read, you still get what was found, and the run's status message says how many could not be read.

#### Why does a row have no per-size quantities?

Those come from the product's own page and need **Fetch product details**. If a product page could not be read during the run, the row still ships with everything else and is not charged for the missing part. Some products simply carry no pattern, fit, material or footwear attributes.

#### Can I use it with AI agents or MCP?

Yes. Call it from any Apify integration or MCP client, and use the connector field to push results into Notion, Linear or Airtable.

### 🔗 Want more sports data?

Pair this actor with these related scrapers from the same team:

<table>
<tr><td>👗 <a href="https://apify.com/abotapi/asos-com-scraper"><b>ASOS Scraper</b></a><br>Scrape ASOS (asos.com) fashion products by keyword, category or URL. Extract selling...</td><td>👗 <a href="https://apify.com/abotapi/theiconic-com-au-scraper"><b>THE ICONIC Scraper</b></a><br>Scrape THE ICONIC (theiconic.com.au) fashion products: name, brand, price, sale price...</td></tr>
<tr><td>👗 <a href="https://apify.com/abotapi/next-uk-product-scraper"><b>Next.co.uk Scraper</b></a><br>Scrape Next.co.uk: keyword search, category and product-listing walks, full product...</td><td>👗 <a href="https://apify.com/abotapi/24s-com-scraper"><b>24S Scraper</b></a><br>Scrape 24S luxury fashion by category, filters, or URL. Extract brand, name, price...</td></tr>
<tr><td>👗 <a href="https://apify.com/abotapi/ounass-scraper"><b>Ounass Scraper</b></a><br>Scrape Ounass (ounass.ae) luxury fashion across UAE, Saudi Arabia, Kuwait, Qatar, Bahrain...</td><td>👗 <a href="https://apify.com/abotapi/nuuly-com-scraper"><b>Nuuly Scraper</b></a><br>Scrape Nuuly clothing rental products by category, brand or URL. Extract product names...</td></tr>
</table>

👉 [Browse all abotapi scrapers](https://apify.com/abotapi)

### 💬 Support

- 🐞 **Found a bug or a missing field?** Open a ticket on the [Issues tab](https://apify.com/abotapi/sports-direct-scraper/issues/open). We usually reply within hours.
- 🛠️ **Need another site, extra fields or a private build?** Email <contact@abotapi.com>.
- ⭐ **Enjoying it?** A quick review on the actor page helps other users find it.

# Actor input Schema

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

Choose 'search' to run keyword searches and filters or 'url' to paste category, search, brand, sale or product links.

## `searchTerms` (type: `array`):

One or more keywords to search for, for example 'nike air max', 'football boots' or a brand and model. Each keyword is searched separately. Leave empty to browse by the filters below only.

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

Order of the results. Relevance is the store's own search order. Price and biggest-discount orders cover every product that matches your keyword and filters, not just the first pages; 'Biggest discount' lists products on sale only. A pasted link that carries its own sort keeps it.

## `brands` (type: `array`):

Only return products of these brands, written the way the store shows them (for example 'Nike', 'adidas', 'Under Armour'). Leave empty for all brands.

## `genders` (type: `array`):

Only return products for these groups, as the store names them: Mens, Womens, Unisex Adults, Unisex Kids, Boys, Girls. Leave empty for all.

## `categories` (type: `array`):

Only return these product types, as the store names them (for example 'Trainers', 'Football Boots', 'Hoodies and Sweatshirts', 'Socks'). Leave empty for all.

## `colours` (type: `array`):

Only return products in these colour groups (for example 'Black', 'White', 'Navy'). Leave empty for all.

## `sizes` (type: `array`):

Only return products that have one of these sizes in stock, written the way the store shows them (for example '9', '10.5', 'M', 'XL'). Leave empty for all.

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

Lowest selling price in pounds. Leave empty for no lower bound.

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

Highest selling price in pounds. Leave empty for no upper bound.

## `minDiscount` (type: `integer`):

Only products discounted by at least this percentage against the ticket price. Leave empty for all.

## `minRating` (type: `number`):

Only products rated at least this many stars (1 to 5). Leave empty for all.

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

Only products with a discount against their ticket price. Off by default.

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

On by default, the way the store lists products. Turn off to also return colourways that are currently out of stock.

## `urls` (type: `array`):

Paste Sports Direct links: the home page, a category page (/mens/footwear/trainers, also with ?pageNumber=2 or a brand such as ?brand=Nike), a search page (/search?q=...), a brand page (/nike), the sale page (/sale) or a product page (/<brand>-<name>-<style code>, with a colour code after #colcode= or ?colcode= to read one colour). A product link without a colour code returns every colour of that product. Links on the US store host are read from the main store catalog, with prices in GBP. Sitemap, robots.txt, store finder and backend addresses are not product links and are skipped; a run given only such links stops at once with a clear message.

## `fetchDetails` (type: `boolean`):

Read each row's product page to add the stock quantity of every size (including sold-out sizes), the total available quantity, the category page link and the featured attributes. Charged once per row enriched. Turn off for a cheaper listing-level pull, where sizes show only what is in stock and the quantity fields stay empty.

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

Optional. Limits how many result pages each keyword or link walks. Empty or 0 (the default) means no page limit; it does NOT cap the run and defers to Max items below, which is the single default cap (20).

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

THE cap on this run: the maximum number of product rows (colourways) returned across the whole run. Defaults to 20 so a first run is fast and cheap. Set 0 for no cap (the run then reads a whole category or the whole catalog).

## `maxItemsPerSearch` (type: `integer`):

Optional. Caps how many products each keyword or pasted link may return, so one large category cannot use up the whole run. 0 (default) = no per-keyword cap; Max items still caps the run.

## `proxy` (type: `object`):

Leave this on the default (Automatic) for most runs; it is measured to work and needs a plan with Apify Proxy access (Apify free plans include no Apify proxy: a free run continues only on a backup datacenter connection or on your own proxy URLs). Residential is recommended for the most reliable results on large or frequent runs, and is billed to your own Apify plan.

## `resumeFromRunId` (type: `string`):

Paste a previous run ID or dataset ID to continue a large crawl without returning or charging for products already collected there. For recurring monitoring of the same search, use Incremental mode below instead.

## `incrementalMode` (type: `boolean`):

Turn this on for daily or recurring monitoring. The first run returns every matching product as NEW. Later runs normally return only NEW, UPDATED and REAPPEARED products. A product counts as UPDATED when any of its fields changed, except the result position, the scrape time, the keyword or link it was found through, the live stock quantities, the stock-level labels, the campaign banners and by default its rating and rating count (see Ignore fields below); with 'Price and stock only' just selling price, ticket price, discount, Frasers Plus price, the in-stock flag and per-size price and in-stock flags are compared. State is kept separately for each keyword, link, sort and filter setup (switching product details on or off keeps the same state and never bills tracked rows as UPDATED for it); use State key to name a monitoring campaign (one key per setup).

## `stateKey` (type: `string`):

Optional. Name this monitoring campaign to keep its state stable across runs with the same search setup. If runs with a different keyword, link, sort or filter setup share one key, they list different products, so such a run marks nothing EXPIRED (it says so in the log); use one key per setup. Leave empty to derive a key automatically from this run's search and filter setup.

## `changeScope` (type: `string`):

'Price and stock only' compares just the selling price, ticket price, discount percentage, Frasers Plus price, the in-stock flag and per-size prices and in-stock flags; a description, image, attribute or badge change is treated as UNCHANGED and is never returned or billed as UPDATED. 'All fields' compares the whole record (minus the fields listed under Incremental changes).

## `compactUpdates` (type: `boolean`):

When on, an UPDATED row carries only identifiers plus the price/stock fields that actually moved (priceChanges, variantChanges), instead of the full record. Off by default.

## `expireAfterMissedScans` (type: `integer`):

A tracked product absent from this many consecutive complete scans in a row is marked EXPIRED; fewer misses are held over without being reported. 1 (default) expires on the first miss, matching this actor's previous behaviour.

## `emitUnchanged` (type: `boolean`):

Off by default. Turn on to also return products that have not changed since the last run, marked UNCHANGED. This returns, and bills, extra rows you already have.

## `emitExpired` (type: `boolean`):

Off by default. Turn on to also return products that were present in a previous run but are no longer found, marked EXPIRED. Only produced once a run has fully scanned the tracked search, never when Max items or Max pages capped it, when a pasted link started past page 1, when a home or sale page link was included, when product details were off or a product page could not be read, when the run stopped before its timeout, when the saved state came from a different search setup, or when Resume was used. This returns, and bills, extra synthetic rows.

## `ignoreFieldsForChanges` (type: `array`):

Field names that must NOT count as a change in incremental mode. The default list leaves out the rating (avgRating) and the rating count (noOfRatings), which drift with every new review; remove names from the list to be told about them. A product whose only differences are in these fields is treated as UNCHANGED, so it is not returned or billed as UPDATED. Names match at any nesting depth. The fields still appear in the output of rows that are returned.

## `mcpConnectors` (type: `array`):

Optionally send results into the apps you already use, via Model Context Protocol (MCP) connectors. Authorize one under Apify, Settings, API & Integrations, then select it here. Notion gets a rich page-per-item export; other connectors get a best-effort write or digest. Leave empty to skip; this never changes the dataset output. Supported: Notion (https://mcp.notion.com/mcp), Linear (https://mcp.linear.app/sse), Airtable (https://mcp.airtable.com/mcp), Apify (https://mcp.apify.com).

## `notionParentPageUrl` (type: `string`):

URL or id of the Notion page under which item pages are created. Required to enable the Notion export; ignored by other connectors.

## `maxNotifyListings` (type: `integer`):

Cap on items written to each connector per run. Does not affect the dataset.

## `notifyOnlyChanges` (type: `boolean`):

Only send the alert when Incremental changes is on and at least one product is NEW, UPDATED, REAPPEARED or EXPIRED. Without Incremental changes every finished run sends its summary.

## `notificationLimit` (type: `integer`):

How many product rows the alert message lists (the run's totals are always in the first line).

## `slackWebhookUrl` (type: `string`):

Optional Slack incoming-webhook URL to post the summary to.

## `discordWebhookUrl` (type: `string`):

Optional Discord channel webhook URL to post the summary to.

## `chatBotToken` (type: `string`):

Optional Chat-bot token to post the summary with (needs the chat ID below).

## `chatBotChatId` (type: `string`):

Optional Chat-bot chat ID that receives the summary (needs the bot token above).

## Actor input object example

```json
{
  "mode": "search",
  "searchTerms": [
    "nike air max"
  ],
  "sortBy": "relevance",
  "onSaleOnly": false,
  "inStockOnly": true,
  "urls": [
    "https://www.sportsdirect.com/",
    "https://www.sportsdirect.com/mens/footwear/trainers",
    "https://www.sportsdirect.com/mens/mens-trainers",
    "https://www.sportsdirect.com/search?q=nike",
    "https://www.sportsdirect.com/searchresults?descriptionfilter=nike",
    "https://www.sportsdirect.com/nike",
    "https://www.sportsdirect.com/nike/footwear",
    "https://www.sportsdirect.com/nike-mens-air-max-invigor-runners-121261",
    "https://www.sportsdirect.com/nike-mens-air-max-invigor-runners-121261#colcode=12126140",
    "https://www.sportsdirect.com/nike-mens-air-max-invigor-runners-121261?utm_source=x&colcode=12126140",
    "https://www.sportsdirect.com/mens/footwear/trainers?sortOrderCode=PRICE&sortOrderDirection=ASC",
    "https://www.sportsdirect.com/mens/footwear/trainers?pageNumber=2",
    "https://www.sportsdirect.com/mens/footwear/trainers?brand=Nike",
    "https://www.sportsdirect.com/sale",
    "https://us.sportsdirect.com/"
  ],
  "fetchDetails": true,
  "maxItems": 20,
  "maxItemsPerSearch": 0,
  "proxy": {
    "useApifyProxy": true
  },
  "incrementalMode": false,
  "changeScope": "all",
  "compactUpdates": false,
  "expireAfterMissedScans": 1,
  "emitUnchanged": false,
  "emitExpired": false,
  "ignoreFieldsForChanges": [
    "avgRating",
    "noOfRatings"
  ],
  "maxNotifyListings": 50,
  "notifyOnlyChanges": false,
  "notificationLimit": 5
}
```

# Actor output Schema

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

No description

## `changes` (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 = {
    "mode": "search",
    "searchTerms": [
        "nike air max"
    ],
    "sortBy": "relevance",
    "onSaleOnly": false,
    "inStockOnly": true,
    "urls": [
        "https://www.sportsdirect.com/",
        "https://www.sportsdirect.com/mens/footwear/trainers",
        "https://www.sportsdirect.com/mens/mens-trainers",
        "https://www.sportsdirect.com/search?q=nike",
        "https://www.sportsdirect.com/searchresults?descriptionfilter=nike",
        "https://www.sportsdirect.com/nike",
        "https://www.sportsdirect.com/nike/footwear",
        "https://www.sportsdirect.com/nike-mens-air-max-invigor-runners-121261",
        "https://www.sportsdirect.com/nike-mens-air-max-invigor-runners-121261#colcode=12126140",
        "https://www.sportsdirect.com/nike-mens-air-max-invigor-runners-121261?utm_source=x&colcode=12126140",
        "https://www.sportsdirect.com/mens/footwear/trainers?sortOrderCode=PRICE&sortOrderDirection=ASC",
        "https://www.sportsdirect.com/mens/footwear/trainers?pageNumber=2",
        "https://www.sportsdirect.com/mens/footwear/trainers?brand=Nike",
        "https://www.sportsdirect.com/sale",
        "https://us.sportsdirect.com/"
    ],
    "fetchDetails": true,
    "maxItems": 20,
    "proxy": {
        "useApifyProxy": true
    },
    "incrementalMode": false,
    "compactUpdates": false,
    "emitUnchanged": false,
    "emitExpired": false,
    "ignoreFieldsForChanges": [
        "avgRating",
        "noOfRatings"
    ],
    "notifyOnlyChanges": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("abotapi/sports-direct-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",
    "searchTerms": ["nike air max"],
    "sortBy": "relevance",
    "onSaleOnly": False,
    "inStockOnly": True,
    "urls": [
        "https://www.sportsdirect.com/",
        "https://www.sportsdirect.com/mens/footwear/trainers",
        "https://www.sportsdirect.com/mens/mens-trainers",
        "https://www.sportsdirect.com/search?q=nike",
        "https://www.sportsdirect.com/searchresults?descriptionfilter=nike",
        "https://www.sportsdirect.com/nike",
        "https://www.sportsdirect.com/nike/footwear",
        "https://www.sportsdirect.com/nike-mens-air-max-invigor-runners-121261",
        "https://www.sportsdirect.com/nike-mens-air-max-invigor-runners-121261#colcode=12126140",
        "https://www.sportsdirect.com/nike-mens-air-max-invigor-runners-121261?utm_source=x&colcode=12126140",
        "https://www.sportsdirect.com/mens/footwear/trainers?sortOrderCode=PRICE&sortOrderDirection=ASC",
        "https://www.sportsdirect.com/mens/footwear/trainers?pageNumber=2",
        "https://www.sportsdirect.com/mens/footwear/trainers?brand=Nike",
        "https://www.sportsdirect.com/sale",
        "https://us.sportsdirect.com/",
    ],
    "fetchDetails": True,
    "maxItems": 20,
    "proxy": { "useApifyProxy": True },
    "incrementalMode": False,
    "compactUpdates": False,
    "emitUnchanged": False,
    "emitExpired": False,
    "ignoreFieldsForChanges": [
        "avgRating",
        "noOfRatings",
    ],
    "notifyOnlyChanges": False,
}

# Run the Actor and wait for it to finish
run = client.actor("abotapi/sports-direct-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",
  "searchTerms": [
    "nike air max"
  ],
  "sortBy": "relevance",
  "onSaleOnly": false,
  "inStockOnly": true,
  "urls": [
    "https://www.sportsdirect.com/",
    "https://www.sportsdirect.com/mens/footwear/trainers",
    "https://www.sportsdirect.com/mens/mens-trainers",
    "https://www.sportsdirect.com/search?q=nike",
    "https://www.sportsdirect.com/searchresults?descriptionfilter=nike",
    "https://www.sportsdirect.com/nike",
    "https://www.sportsdirect.com/nike/footwear",
    "https://www.sportsdirect.com/nike-mens-air-max-invigor-runners-121261",
    "https://www.sportsdirect.com/nike-mens-air-max-invigor-runners-121261#colcode=12126140",
    "https://www.sportsdirect.com/nike-mens-air-max-invigor-runners-121261?utm_source=x&colcode=12126140",
    "https://www.sportsdirect.com/mens/footwear/trainers?sortOrderCode=PRICE&sortOrderDirection=ASC",
    "https://www.sportsdirect.com/mens/footwear/trainers?pageNumber=2",
    "https://www.sportsdirect.com/mens/footwear/trainers?brand=Nike",
    "https://www.sportsdirect.com/sale",
    "https://us.sportsdirect.com/"
  ],
  "fetchDetails": true,
  "maxItems": 20,
  "proxy": {
    "useApifyProxy": true
  },
  "incrementalMode": false,
  "compactUpdates": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "ignoreFieldsForChanges": [
    "avgRating",
    "noOfRatings"
  ],
  "notifyOnlyChanges": false
}' |
apify call abotapi/sports-direct-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,abotapi/sports-direct-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/Pam2l9LjT8nwCSWgv/builds/EyzDChibUKqWc52cW/openapi.json
