# Sports Direct UK Price & Discount Tracker (`dataspryva/sports-direct-uk-price-and-discount-tracker`) Actor

Search, browse, or fetch Sports Direct UK products with current price, discount percentage, available sizes, and images. Filter by price range, brand, or minimum discount before you run.

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

## Pricing

from $0.49 / 1,000 results

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

Learn more: https://docs.apify.com/actors/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 UK Price & Discount Tracker

Pull live pricing, discount, and stock-size data from [Sports Direct](https://www.sportsdirect.com), the UK's largest sports retailer. Search its product index by keyword, browse any department, or fetch specific product pages — and filter by price, discount depth, or brand before you run.

### What this actor does

- Searches Sports Direct's own product index by keyword, matching the same results you'd see on-site.
- Browses any of 30 department and category pages (men, ladies, kids, football, running, sale, and more) without a search term.
- Fetches individual product pages directly by URL for full description, shipping, and delivery details.
- Filters `search`/`browseByCategory` results by GBP price range, minimum discount percentage, brand text, or a keyword inside the product name, and sorts them by price or discount depth.
- Empty fields are omitted from records — a product with no customer ratings simply won't carry a rating field.

### Output per product

`search` mode records (from Sports Direct's own search index):

- `productId` — Sports Direct's internal product key
- `name`, `brand`, `color`, `gender`
- `price` — current selling price in GBP
- `ticketPrice` — the original "was" price in GBP
- `onSale`, `discountPercent` — whether it's discounted, and by how much
- `averageRating`, `reviewsCount` — only present once a product has at least one rating
- `sizes[]`, `sizeVariantIds[]` — available size options and their variant IDs
- `priceFrom`, `priceTo` — the lowest and highest price across size variants, when they differ
- `imageUrls[]`, `imageUrl` — product images
- `textSashes[]` — on-site promo badges (e.g. "UP TO 50% OFF")
- `categoryCodes[]`, `subCategory`, `styleCode`, `productType`
- `description`
- `productUrl`, `sourceUrl`
- `recordType: "product"`, `scrapedAt`

`browseByCategory` mode records (from the department/category page itself — a different, narrower field set than `search`):

- `productId` — Sports Direct's internal product key
- `name`, `nameWithoutBrand`, `brand`, `color`
- `price` — current selling price in GBP
- `discountedPrice` — the reduced price, when the product is on sale
- `onSale`, `discountPercent` — whether it's discounted, and by how much
- `frasersPlusPrice` — the Frasers Plus loyalty-scheme price, when offered
- `sizes[]`, `sizeVariantIds[]` — available size options and their variant IDs
- `imageUrl` — product image
- `textSashes[]`, `sashName` — on-site promo badges and the primary sash label
- `category[]`, `subCategory[]`, `activity[]`, `activityGroup` — the page's own category/activity tags
- `productUrl`, `sourceUrl`
- `recordType: "product"`, `scrapedAt`

Product-page records (mode `byUrl`):

- `productId` (SKU), `name`, `brand`, `description`, `color`, `category`
- `price`, `priceCurrency`, `availability`
- `shippingRate`, `shippingRateCurrency`, `deliveryMinDays`, `deliveryMaxDays`, `returnDays` — only present when the product page publishes them
- `imageUrl`, `sourceUrl`
- `recordType: "productDetail"`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search`, `browseByCategory`, or `byUrl`. |
| `searchQuery` | string | `adidas` | Free-text query (mode `search`). |
| `category` | string | – | Department or category slug to browse (mode `browseByCategory`): `mens`, `ladies`, `kids`, `football`, `running`, `training`, `gym-fitness`, `sale`, `outdoor`, `golf`, `cycling`, `swimming`, `winter-sports`, `tennis`, `basketball`, `boxing`, `fishing`, `hiking-camping`, `running-shoes`, `mens-footwear`, `ladies-footwear`, `kids-footwear`, `mens-clothing`, `ladies-clothing`, `kids-clothing`, `football-boots`, `gym-equipment`, `accessories`, `homeware`, `brands`. |
| `startUrls` | array | `[]` | sportsdirect.com product page URLs to fetch (mode `byUrl`). |
| `priceMin` | integer | – | Drop products priced below this (GBP). Applies to `search` and `browseByCategory` only; `byUrl` fetches exactly the URLs you pass regardless of filters. |
| `priceMax` | integer | – | Drop products priced above this (GBP). Applies to `search` and `browseByCategory` only. |
| `minDiscountPercent` | integer | – | Keep only products discounted by at least this percentage. Applies to `search` and `browseByCategory` only. |
| `brandKeyword` | string | – | Keep only products whose brand contains this text. Applies to `search` and `browseByCategory` only. |
| `containsKeyword` | string | – | Keep only products whose name contains this text. Applies to `search` and `browseByCategory` only. |
| `sortBy` | string | `relevance` | `relevance`, `priceLowToHigh`, `priceHighToLow`, or `discountDesc`. Applies to `search` and `browseByCategory` only; `byUrl` emits records in the order you list the URLs. |
| `pageNumber` | integer | `1` | Which search-results page to fetch (mode `search`; 96 products per page). |
| `maxItems` | integer | `50` | Hard cap on emitted records (1–1000). |
| `proxyConfiguration` | object | `{"useApifyProxy": false}` | Optional; only engaged if Sports Direct blocks a direct request. |

#### Example: deep discounts on running shoes

```json
{
  "mode": "search",
  "searchQuery": "running shoes",
  "priceMin": 20,
  "priceMax": 100,
  "minDiscountPercent": 20,
  "sortBy": "discountDesc"
}
```

#### Example: browse the sale department

```json
{
  "mode": "browseByCategory",
  "category": "sale",
  "maxItems": 100
}
```

#### Example: fetch specific product pages

```json
{
  "mode": "byUrl",
  "startUrls": [
    "https://www.sportsdirect.com/adidas-mens-liverpool-home-football-shirt-377450"
  ]
}
```

#### Example: brand-and-keyword narrowed search

```json
{
  "mode": "search",
  "searchQuery": "leggings",
  "brandKeyword": "nike",
  "containsKeyword": "women"
}
```

### Use cases

- **Price-tracking tools** monitoring selling price versus ticket price and discount depth over time.
- **Retail competitor analysis** comparing Sports Direct's catalog and pricing against other UK sports retailers.
- **Department audits** dumping an entire category (e.g. football boots, gym equipment) in one run.
- **Promotions research** collecting promo-sash text and discount percentages across the sale department.
- **Catalog feeds** supplying product images, sizes, and canonical URLs into an e-commerce pipeline.

### FAQ

**What's the data source?**
Sports Direct's own product search index and public product pages (sportsdirect.com).

**What currency are prices in?**
GBP. Size-variant prices (`priceFrom`/`priceTo`) are also in GBP.

**How current is the data?**
Live — each run queries the current search index or product page directly, with no caching.

**Why don't all products have a rating?**
`averageRating` and `reviewsCount` are only included once a product has at least one customer rating; unrated products omit both fields.

**Why are some product-detail fields like `shippingRate` missing?**
Sports Direct only publishes certain metadata on product pages that actually have it configured; the actor leaves those fields out instead of sending them empty.

**Do I need a proxy to run this?**
No. It runs on the free plan without one by default; `proxyConfiguration` is only used as a fallback if Sports Direct ever blocks a direct request.

**Do the price, discount, and keyword filters apply to `byUrl`?**
No — `byUrl` fetches exactly the product pages you list and returns them as-is; the price, discount, brand, keyword, and sort inputs only narrow `search` and `browseByCategory` results.

**What's the difference between `search` and `browseByCategory`?**
`search` matches your `searchQuery` against Sports Direct's product index; `browseByCategory` returns everything in a department or category page with no text match needed.

**Is this affiliated with Sports Direct?**
No. This is an independent third-party actor and is not affiliated with Sports Direct.

# Actor input Schema

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

What to fetch.

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

Free-text query (mode=search), e.g. `adidas`, `running shoes`, `gym leggings`.

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

Top-level department or curated category page to browse.

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

sportsdirect.com product page URLs to fetch (mode=byUrl).

## `priceMin` (type: `integer`):

Drop products whose effective price is below this.

## `priceMax` (type: `integer`):

Drop products whose effective price is above this.

## `minDiscountPercent` (type: `integer`):

Only emit products discounted by at least this percentage.

## `brandKeyword` (type: `string`):

Only emit products whose brand contains this text (case-insensitive), e.g. `nike`.

## `containsKeyword` (type: `string`):

Only emit products whose name contains this text (case-insensitive).

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

Applied to the fetched page in the output order.

## `pageNumber` (type: `integer`):

Which search-result page to fetch (mode=search; 96 products per page).

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

Hard cap on emitted records.

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

Optional Apify proxy. Only used lazily if Sports Direct blocks the direct request (403/429). Leave empty for the zero-cost default.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "adidas",
  "startUrls": [],
  "sortBy": "relevance",
  "pageNumber": 1,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset containing all scraped Sports Direct 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": "adidas",
    "startUrls": [],
    "sortBy": "relevance",
    "pageNumber": 1,
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/sports-direct-uk-price-and-discount-tracker").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": "adidas",
    "startUrls": [],
    "sortBy": "relevance",
    "pageNumber": 1,
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/sports-direct-uk-price-and-discount-tracker").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": "adidas",
  "startUrls": [],
  "sortBy": "relevance",
  "pageNumber": 1,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call dataspryva/sports-direct-uk-price-and-discount-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/sports-direct-uk-price-and-discount-tracker"
        }
    }
}
```

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/C8KMi8bQ8MAYBjSjf/builds/KyJk1q49Ito89vyyo/openapi.json
