# PriceRunner UK Offers Scraper (pricerunner.com) (`stone_jadex/pricerunner-offers`) Actor

PriceRunner UK category and product pages with per-merchant offers: price, shipping, stock, delivery and the Klarna redirect link.

- **URL**: https://apify.com/stone_jadex/pricerunner-offers.md
- **Developed by:** [Stone Jade](https://apify.com/stone_jadex) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.61 / 1,000 product records

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/running/actors-in-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

## PriceRunner UK Offers Scraper

PriceRunner UK Offers Scraper (`Stone_JadeX/pricerunner-offers`) extracts structured product pricing, technical specifications, and per-merchant shop offers from public [PriceRunner UK](https://www.pricerunner.com/) category and product pages (`www.pricerunner.com`). Start with category URLs (`/cl/{id}/{slug}`) or direct product URLs (`/pl/...`) to export GBP price ranges, cheapest merchants, stock statuses, shipping costs, delivery windows, product specs, and Klarna/PriceRunner outbound offer links.

Built on lightweight SSR HTML and `__DEHYDRATED_QUERY_STATE__` / JSON-LD parsing at `256 MB` memory, the Actor supports both fast category-card scans (`includeOffers: false`) and full multi-merchant offer enrichment (`includeOffers: true`) with zero separate per-offer charges.

### Overview and use cases

#### What you can extract

- **Product pricing & availability**: `lowestPrice`, `highestPrice`, `priceRange` (`min`, `max`, `currency`), `currency` (`GBP`), `merchantCount`, `offersCount`, `cheapestMerchant`, `outOfStock`, `condition`, `rating`, and `ratingCount`.
- **Per-merchant offer breakdown (`offers[]`)**: Merchant ID, name, logo, average rating and rating count, item `price`, `shippingCost`, computed `totalPrice`, `stockStatus`, `availability`, `deliveryMinDays`/`deliveryMaxDays`, `isCheapest`, `labels` (such as `CHEAPEST_OFFER` or `SPONSORED`), `installmentPrice`, `offerName`, and the PriceRunner/Klarna `offerUrl` redirect link.
- **Clean specifications & media**: Flattened `specs` key-value map, human-readable `keyFeatures`, deduplicated `images` array, and separated `platformTag` / `descriptionNullReason` so UI platform tags (`iOS`, `Android`, `KaiOS`, `Series 30+`) never pollute `description`.
- **Graceful resilience & diagnostics**: Automatic HTTP `202` exponential backoff with jitter, `403`/`412`/`429` retry backoff, optional proxy fallback (`useProxyFallback`, `offersViaProxy`, `residentialMaxMb`), and uncharged `offersMissing: true` / `run-notice` records plus detailed `OUTPUT` counters.

#### Who uses it

- **UK retail pricing & e-commerce teams**: Monitor merchant undercutting, total landed price (`price + shippingCost`), and `CHEAPEST_OFFER` ownership across electronics, appliances, and consumer goods.
- **Marketplace & brand compliance analysts**: Track authorized vs. third-party merchant counts, stock availability, and delivery SLA ranges per SKU.
- **Catalog & specification pipelines**: Enrich product catalogs with structured technical attributes (`specs`, `keyFeatures`), product ratings, and site-native image URLs.

#### Illustrative preview

**Illustrative only:** invented summary rows below show the shape of exported records; they are not live results. A dash indicates an unavailable value. A single `product` dataset row can hold multiple nested merchant offers with no separate offer charge.

| Product | Lowest price | Highest price | Cheapest merchant | Offers saved | Shipping example |
| --- | --- | --- | --- | --- | --- |
| Example Smartphone 256GB | 499.99 GBP | 579.99 GBP | Example Store | 8 | 0.00 GBP |
| Example ANC Headphones | 149.00 GBP | 189.99 GBP | Example Audio | 5 | 3.99 GBP |
| Example Smart Kettle | 29.99 GBP | — (list tier) | — | 0 | — |

### Input parameters and examples

Configure the Actor in Apify Console or submit a JSON object matching `.actor/input_schema.json`.

| Parameter | Type | Default / Prefill | Description |
| --- | --- | --- | --- |
| `startUrls` | `array` (request list) | `[{"url": "https://www.pricerunner.com/cl/1/Mobile-Phones"}]` | PriceRunner UK category URLs (`/cl/{id}/{slug}`, optional `?page=`) or product URLs (`/pl/...`). Query strings on `/pl/` URLs are stripped cleanly. Disallowed paths (`/results`, `/gotostore/`, `/track/`, `/deals`, `/uk/api/`, `pricehistory`, `q=`, `p=`, `search=`, `ref=`) fail validation before any request. Empty input defaults to Mobile Phones. |
| `maxItems` | `integer` | `50` (min `1`, max `100000`) | Maximum number of product rows to save (both charged products and uncharged `offersMissing` rows count toward this cap). |
| `maxPages` | `integer` | `null` (optional, min `1`, max `10000`) | Optional maximum number of category pages to follow per seed URL. Leave blank to follow pages until `maxItems` or the end of the category. |
| `includeOffers` | `boolean` | `true` | When `true`, opens each `/pl/` product page directly to populate `offers[]`, `highestPrice`, `specs`, and `keyFeatures`. Set to `false` for fast category-card (`list` tier) collection. |
| `maxOffersPerProduct` | `integer` | `0` (min `0`, max `1000`) | Maximum number of merchant offers to keep per product row. `0` preserves every offer published on the product page. |
| `maxConcurrency` | `integer` | `3` (min `1`, max `3`) | Maximum concurrent product pages in flight. Request start times always stay spaced by at least `requestIntervalMs`. Legacy alias `concurrency` is also accepted. Lower to `1` if you observe HTTP `202` challenge responses. |
| `requestDelayMs` | `integer` | `0` (min `0`, max `30000`) | Extra pause in milliseconds taken by each worker after each product request, and between category listing pages, on top of `requestIntervalMs`. |
| `requestIntervalMs` | `integer` | `1000` (min `1000`, max `60000`) | Global minimum gap in milliseconds between request start slots. Enforced at `>= 1000 ms`. |
| `maxRunSeconds` | `integer` | `3600` (min `30`, max `86400`) | Soft runtime ceiling in seconds. Stops scheduling and writes `run-notice` and `OUTPUT` cleanly before the deadline (`ACTOR_TIMEOUT_AT - 20 s` or `maxRunSeconds`). |
| `proxyConfiguration` | `object` | `{ "useApifyProxy": false }` | Standard Apify proxy settings. Direct requests are used by default. When enabled without `useProxyFallback`, category pages use the configured proxy while product pages stay direct unless `offersViaProxy` is `true`. |
| `offersViaProxy` | `boolean` | `false` | Routes product page requests (`/pl/...`) through `proxyConfiguration` from the first attempt. |
| `residentialMaxMb` | `integer` | `5` (min `0`, max `10240`) | Hard byte budget in MB when using a residential proxy group. Stops the run cleanly with `stopReason: "proxy-budget"` once exceeded. |
| `useProxyFallback` | `boolean` | `false` | When `proxyConfiguration` is configured, starts direct and switches to proxy only after repeated HTTP `403`/`429` blocks or persistent HTTP `202` responses (product pages also follow on `403`/`429`, or on `202` via one opt-in proxy retry). |

#### Input examples

**Example 1: Category comparison with merchant offers**

```json
{
  "startUrls": [
    { "url": "https://www.pricerunner.com/cl/1/Mobile-Phones" }
  ],
  "maxItems": 25,
  "maxPages": 2,
  "includeOffers": true,
  "maxOffersPerProduct": 10,
  "maxConcurrency": 2,
  "requestDelayMs": 250,
  "requestIntervalMs": 1000,
  "maxRunSeconds": 3600,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

**Example 2: Direct product URLs with polite proxy fallback**

```json
{
  "startUrls": [
    { "url": "https://www.pricerunner.com/pl/1-3607137081/Mobile-Phones/Apple-iPhone-18-Pro-Max-256GB-Burgundy-Compare-Prices" },
    { "url": "https://www.pricerunner.com/pl/1-3456297043/Mobile-Phones/Samsung-Galaxy-S26-256GB-Black-Compare-Prices" }
  ],
  "maxItems": 10,
  "includeOffers": true,
  "maxOffersPerProduct": 0,
  "maxConcurrency": 1,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "offersViaProxy": false,
  "useProxyFallback": true,
  "residentialMaxMb": 5
}
```

### Output format and dataset fields

Each product is pushed to the default dataset immediately upon completion so rows are preserved even if a run stops early. A comprehensive run summary is stored under `OUTPUT` in the default key-value store.

#### Illustrative product and offer record

The JSON example below illustrates a full `"tier": "offers"` product record matching `.actor/dataset_schema.json`.

```json
{
  "recordType": "product",
  "tier": "offers",
  "productId": "1000000001",
  "name": "Example Smartphone 256GB Black",
  "url": "https://www.pricerunner.com/pl/1-1000000001/Mobile-Phones/Example-Smartphone-Compare-Prices",
  "category": "Mobile Phones",
  "categoryId": "1",
  "brand": "Example Brand",
  "imageUrl": "https://owp.klarna.com/product/1000000001/Example-Smartphone.jpg",
  "images": [
    "https://owp.klarna.com/product/1000000001/Example-Smartphone.jpg",
    "https://owp.klarna.com/product/1000000001/Example-Smartphone-Back.jpg"
  ],
  "description": null,
  "descriptionNullReason": "site-shows-only-platform-tag",
  "platformTag": "Android",
  "lowestPrice": 499.99,
  "currency": "GBP",
  "highestPrice": 579.99,
  "priceRange": {
    "min": 499.99,
    "max": 579.99,
    "currency": "GBP"
  },
  "merchantCount": 4,
  "offersCount": 2,
  "outOfStock": false,
  "condition": "NEW",
  "rating": 4.5,
  "ratingCount": 128,
  "specs": {
    "Screen Size": "6.1 \"",
    "Operating System": "Android",
    "5G": "Yes",
    "Internal Memory Size": "256GB"
  },
  "keyFeatures": [
    "Screen Size: 6.1 \"",
    "Operating System: Android",
    "5G: Yes",
    "Internal Memory Size: 256GB"
  ],
  "cheapestMerchant": "Example Store",
  "rank": 1,
  "position": 1,
  "page": 1,
  "sourceUrl": "https://www.pricerunner.com/cl/1/Mobile-Phones",
  "scrapedAt": "2026-11-21T09:00:00.000Z",
  "offers": [
    {
      "offerId": "example-offer-id-1",
      "merchantId": "100000",
      "merchantName": "Example Store",
      "merchantLogo": "https://assets.klarnacdn.net/example/example-store.png",
      "merchantRating": 4.4,
      "merchantRatingCount": 210,
      "price": 499.99,
      "shippingCost": 0,
      "totalPrice": 499.99,
      "currency": "GBP",
      "stockStatus": "IN_STOCK",
      "availability": "AVAILABLE",
      "deliveryMinDays": 1,
      "deliveryMaxDays": 3,
      "condition": "NEW",
      "isCheapest": true,
      "labels": ["CHEAPEST_OFFER"],
      "installmentPrice": 166.66,
      "offerName": "Example Smartphone 256GB Black",
      "offerUrl": "https://clk.klarna.com/uk/gotostore/v1/example-offer-id-1?productId=1000000001"
    },
    {
      "offerId": "example-offer-id-2",
      "merchantId": "100001",
      "merchantName": "Example Electronics",
      "merchantLogo": "https://assets.klarnacdn.net/example/example-electronics.png",
      "merchantRating": 4.1,
      "merchantRatingCount": 64,
      "price": 579.99,
      "shippingCost": 4.99,
      "totalPrice": 584.98,
      "currency": "GBP",
      "stockStatus": "IN_STOCK",
      "availability": "AVAILABLE",
      "deliveryMinDays": 2,
      "deliveryMaxDays": 5,
      "condition": "NEW",
      "isCheapest": false,
      "labels": ["SPONSORED"],
      "installmentPrice": null,
      "offerName": "Example Smartphone 256GB Black SIM-Free",
      "offerUrl": "https://clk.klarna.com/uk/gotostore/v1/example-offer-id-2?productId=1000000001"
    }
  ],
  "offersMissing": false
}
```

#### Illustrative run-notice row

If a run is truncated or experiences failed/blocked pages (for example `maxItems`, `partial`, `partial-blocked`, `run-time-limit`, `max-charge-reached`, `proxy-budget`, `migrating`, `aborted`, or `errors`), one uncharged `run-notice` record is appended to the dataset:

```json
{
  "recordType": "run-notice",
  "truncatedAfter": 25,
  "reason": "maxItems",
  "failedListPages": 0,
  "failedProductPages": 0,
  "blockedPages": 0,
  "offersMissingUncharged": 0,
  "directRequests": 26,
  "proxyRequests": 0,
  "proxyBytes": 0,
  "blocked202": 0
}
```

#### Dataset field reference

##### Top-level product and notice fields

| Field | Type | Description |
| --- | --- | --- |
| `recordType` | `string \| null` | `"product"` for product records or `"run-notice"` for the uncharged status record. |
| `tier` | `string \| null` | `"offers"` when the product page was read, or `"list"` when only category-card data was extracted. |
| `productId` | `string \| null` | PriceRunner product identifier. |
| `name` | `string \| null` | Product title as published by PriceRunner. |
| `url` | `string \| null` | Canonical PriceRunner UK product page URL (`/pl/...`). |
| `category` | `string \| null` | Category name, when published on the category or product page. |
| `categoryId` | `string \| null` | Numeric category identifier as a string. |
| `brand` | `string \| null` | Manufacturer or brand name, when published. |
| `imageUrl` | `string \| null` | Primary product image URL (site-rendered URL or product JSON-LD image). |
| `images` | `array \| null` | Deduplicated list of product image URLs in source order. |
| `description` | `string \| null` | Real product description when published; `null` if PriceRunner publishes only a platform tag or omits it. |
| `descriptionNullReason` | `string \| null` | Explains `null` description: `"site-shows-only-platform-tag"`, `"not-published"`, or `null` when `description` is present. |
| `platformTag` | `string \| null` | Short OS/platform tag stripped from the description slot (such as `"Android"`, `"iOS"`, `"KaiOS"`, `"Series 30+"`), or `null`. |
| `lowestPrice` | `number \| null` | Lowest price found across category card, product offer summary, or saved offers. |
| `highestPrice` | `number \| null` | Highest price from saved offers or product-page offer summary (`null` on list tier). |
| `priceRange` | `object \| null` | Summary price range `{ min, max, currency }` from national offer summary or saved offers. |
| `currency` | `string \| null` | Product price currency code (normally `"GBP"`). |
| `merchantCount` | `number \| null` | Total merchant count reported by the category card, offer summary, or distinct saved merchant IDs. |
| `offersCount` | `number \| null` | Count of offers saved in `offers[]` (`0` on list tier or when none are published). |
| `outOfStock` | `boolean \| null` | Out-of-stock indicator from category card or national offer summary. |
| `condition` | `string \| null` | Product condition code (such as `"NEW"`), when published. |
| `rating` | `number \| null` | Average user rating score, when published. |
| `ratingCount` | `number \| null` | Total number of user ratings, when published. |
| `specs` | `object \| null` | Flattened technical specifications map (`{ "Attribute": "Value" }`), or `null` when unavailable. |
| `keyFeatures` | `array \| null` | Array of `"Attribute: Value"` strings generated from `specs`, or `null` when unavailable. |
| `cheapestMerchant` | `string \| null` | Merchant name for the cheapest saved offer, or `null` when no offers were saved. |
| `rank` | `number \| null` | Category rank from the card or product page, falling back to run position. |
| `position` | `number \| null` | 1-based output row index within the run (`null` on direct product-seed runs without list ordering). |
| `page` | `number \| null` | Category page number (`1`, `2`, ...) where the product was found (`null` on direct product seeds). |
| `sourceUrl` | `string \| null` | Category or product URL from which the row originated. |
| `scrapedAt` | `string \| null` | ISO 8601 UTC timestamp when the record was constructed. |
| `offers` | `array \| null` | Array of merchant offer objects saved from the product page (empty `[]` on list tier). |
| `offersMissing` | `boolean \| null` | `true` when `includeOffers` was enabled but the product page failed (row is saved uncharged); `false` otherwise. |
| `truncatedAfter` | `number \| null` | `run-notice` only: number of charged product rows saved before stopping. |
| `reason` | `string \| null` | `run-notice` only: stop reason (`maxItems`, `partial`, `partial-blocked`, `run-time-limit`, `max-charge-reached`, `proxy-budget`, `migrating`, `aborted`, `errors`). |
| `failedListPages` | `number \| null` | `run-notice` only: count of failed or unparseable category pages. |
| `failedProductPages` | `number \| null` | `run-notice` only: count of failed or unparseable product pages. |
| `blockedPages` | `number \| null` | `run-notice` only: count of failed pages blocked by HTTP `202`, `403`, `412`, or `429`. |
| `offersMissingUncharged` | `number \| null` | `run-notice` only: count of saved rows flagged `offersMissing: true` that were not billed. |
| `directRequests` | `number \| null` | `run-notice` only: total HTTP requests sent directly without a proxy. |
| `proxyRequests` | `number \| null` | `run-notice` only: total HTTP requests sent through a proxy. |
| `proxyBytes` | `number \| null` | `run-notice` only: response bytes downloaded through a proxy. |
| `blocked202` | `number \| null` | `run-notice` only: count of HTTP `202` challenge-like responses encountered. |

##### Nested `priceRange` object fields

| Field | Type | Description |
| --- | --- | --- |
| `min` | `number \| null` | Lowest price in the range. |
| `max` | `number \| null` | Highest price in the range. |
| `currency` | `string \| null` | ISO currency code (normally `"GBP"`). |

##### Nested `offers[]` item fields

| Field | Type | Description |
| --- | --- | --- |
| `offerId` | `string \| null` | PriceRunner offer identifier. |
| `merchantId` | `string \| null` | Merchant identifier string. |
| `merchantName` | `string \| null` | Merchant display name, when published. |
| `merchantLogo` | `string \| null` | Merchant logo URL, when published. |
| `merchantRating` | `number \| null` | Average merchant review rating, when published. |
| `merchantRatingCount` | `number \| null` | Total merchant review count, when published. |
| `price` | `number \| null` | Item price before shipping. |
| `shippingCost` | `number \| null` | Shipping charge, or `null` when omitted by the source (`0` indicates free shipping). |
| `totalPrice` | `number \| null` | Computed `price + (shippingCost \|\| 0)` rounded to two decimals. |
| `currency` | `string \| null` | Offer currency code (normally `"GBP"`). |
| `stockStatus` | `string \| null` | Source stock status code (for example `"IN_STOCK"`, `"UNKNOWN"`). |
| `availability` | `string \| null` | Source availability code (for example `"AVAILABLE"`, `"TEMPORARILY_UNAVAILABLE"`). |
| `deliveryMinDays` | `number \| null` | Minimum estimated delivery days, when published. |
| `deliveryMaxDays` | `number \| null` | Maximum estimated delivery days, when published. |
| `condition` | `string \| null` | Offer item condition, when published. |
| `isCheapest` | `boolean \| null` | `true` when the offer carries the `CHEAPEST_OFFER` label. |
| `labels` | `array \| null` | Offer property labels from PriceRunner (such as `CHEAPEST_OFFER`, `SPONSORED`). |
| `installmentPrice` | `number \| null` | Published monthly/installment price, when available. |
| `offerName` | `string \| null` | Merchant-specific offer title. |
| `offerUrl` | `string \| null` | PriceRunner/Klarna outbound redirect link (`https://clk.klarna.com/.../gotostore/...`); not followed to the merchant site. |

### Pricing and Store tier discounts

PriceRunner UK Offers Scraper uses Apify **Pay-Per-Event (PPE)** billing with one billed event (`product`). Verified live on 2026-11-21:

- **Product record (`product`)**: **$0.00425** per product (**$4.25 per 1,000** products on the Free plan).
- **Merchant offers included at $0 extra**: All nested `offers[]` extracted for a product are included in that single `product` event charge.
- **No Actor start fee**: `$0.00` upfront start cost.
- **Uncharged records**: Rows where `includeOffers: true` failed to load the product page (`offersMissing: true`) and `run-notice` status rows are never charged (`0` events). Duplicate `productId` entries across overlapping seeds are skipped before pushing and charging.

#### Apify Store subscription tier discounts

Paid Apify Store plans automatically apply a 5% to 15% tier discount to the `product` event price:

| Apify plan tier | Price per product | Price per 1,000 products | Tier discount |
| --- | ---: | ---: | --- |
| **Free** | `$0.00425` | `$4.25` | Base rate |
| **Bronze** | `$0.0040375` | `$4.0375` | 5% off |
| **Silver** | `$0.003825` | `$3.825` | 10% off |
| **Gold** | `$0.0036125` | `$3.6125` | 15% off |
| **Platinum** | `$0.0036125` | `$3.6125` | 15% off |
| **Diamond** | `$0.0036125` | `$3.6125` | 15% off |

The Actor runs at `256 MB` default memory (`timeoutSecs: 3600`). Standard Apify platform compute and storage fees follow your Apify plan terms.

### Quick start with Console and Apify SDK

#### Run in Apify Console

1. Open **PriceRunner UK Offers Scraper** (`Stone_JadeX/pricerunner-offers`) in Apify Console and enter one or more PriceRunner UK `/cl/` category URLs or `/pl/` product URLs in `startUrls`.
2. Keep `includeOffers` enabled to collect per-merchant offers and technical specs, or disable it for fast list-tier price checks; set `maxItems` (for example `50`) to bound run cost.
3. Click **Start** and inspect results in the **Overview** dataset table or export in JSON, CSV, or Excel.

#### JavaScript quickstart (apify-client)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('Stone_JadeX/pricerunner-offers').call({
  startUrls: [{ url: 'https://www.pricerunner.com/cl/1/Mobile-Phones' }],
  maxItems: 20,
  maxPages: 1,
  includeOffers: true,
  maxOffersPerProduct: 10,
  maxConcurrency: 2,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
const products = items.filter((row) => row.recordType === 'product');
console.log(`Collected ${products.length} products`);

for (const p of products.slice(0, 3)) {
  console.log(`${p.name}: lowest £${p.lowestPrice} (${p.offersCount} offers, cheapest: ${p.cheapestMerchant})`);
}

const summary = await client.keyValueStore(run.defaultKeyValueStoreId).getRecord('OUTPUT');
console.log('Stop reason:', summary?.value?.stopReason);
```

#### Python quickstart (apify-client)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

run = client.actor("Stone_JadeX/pricerunner-offers").call(run_input={
    "startUrls": [{"url": "https://www.pricerunner.com/cl/1/Mobile-Phones"}],
    "maxItems": 20,
    "maxPages": 1,
    "includeOffers": True,
    "maxOffersPerProduct": 10,
    "maxConcurrency": 2,
})

items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
products = [row for row in items if row.get("recordType") == "product"]
print(f"Collected {len(products)} products")

for p in products[:3]:
    print(f"{p['name']}: lowest GBP {p['lowestPrice']} ({p['offersCount']} offers, cheapest: {p['cheapestMerchant']})")

output_record = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("OUTPUT")
print("Stop reason:", (output_record or {}).get("value", {}).get("stopReason"))
```

### Limitations, compliance, and FAQ

#### Unavailable fields and robots boundaries

The Actor enforces `robots.txt` disallowed path rules on non-product endpoints before any HTTP request is issued and counts refused URLs in `OUTPUT.robotsDisallowedHits`:

- **Refused URLs**: `/results`, `/gotostore/`, `/track/`, `/deals`, `/uk/api/`, `pricehistory` / `price-history` / `price_history`, `/pl/` with `p=`, `/cl/` with `q=`, `search=`, and `ref=`.
- **Outbound shop links (`offerUrl`)**: Because `/gotostore/` redirects are disallowed, `offerUrl` stays the PriceRunner/Klarna redirect URL and is not followed to the final merchant domain.
- **Price history & review text**: Historical price series (`/uk/api/...` and `pricehistory`) and written customer review bodies are not collected (`rating` and `ratingCount` are included).
- **Platform tags vs. `description`**: On categories like Mobile Phones, PriceRunner often puts an OS tag (`iOS`, `Android`, `KaiOS`, `Series 30+`) inside its source description slot. The Actor moves exact-matched platform tags into `platformTag` and sets `description: null` with `descriptionNullReason: "site-shows-only-platform-tag"` unless a genuine product description is present.
- **List tier `highestPrice`**: Category cards publish only the lowest price, so `highestPrice` is `null` when `includeOffers: false`.
- **Independent tool**: This Actor collects public pricing pages only and is not affiliated with, endorsed by, or sponsored by PriceRunner or Klarna.

#### Frequently asked questions

**Why did some rows return `offersMissing: true`?**
When `includeOffers` is `true` and a specific `/pl/` product page fails (for example due to HTTP `202` challenge throttling or `403`/`429` after retries), the Actor still writes the category-card product row flagged with `offersMissing: true`, does NOT charge a `product` event for that row, records the failure in `OUTPUT.failedPages`, and writes a `run-notice`.

**How do `proxyConfiguration`, `offersViaProxy`, and `useProxyFallback` interact?**
By default (`useApifyProxy: false`), all requests run directly. When `proxyConfiguration` is enabled:

- With `useProxyFallback: false`: category pages use the proxy, while product pages remain direct unless `offersViaProxy: true`.
- With `useProxyFallback: true`: both category and product pages start direct and switch to the configured proxy only on persistent HTTP `202` or repeated `403`/`429` responses. Residential proxy traffic is strictly capped by `residentialMaxMb` (default `5` MB).

**Can I pass query parameters on category URLs?**
Yes, `?page=N` is preserved on `/cl/{id}/{slug}` category URLs, while disallowed query parameters (`q=`, `search=`, `ref=`) are blocked. Query strings on `/pl/` product URLs are automatically stripped.

### Changelog

#### 2026-11-21

- Added clean `sectionCaption` groupings (`Target URLs & Scope`, `Offer Extraction`, `Rate Limiting & Runtime`, `Proxy & Fallback Settings`) and explicit `prefill` defaults across primary inputs (`startUrls`, `maxItems`, `includeOffers`, `maxOffersPerProduct`, `maxConcurrency`, `requestDelayMs`, `requestIntervalMs`, `maxRunSeconds`, `residentialMaxMb`) in `.actor/input_schema.json`.
- Upgraded Store documentation with complete 13-parameter input reference, 2 JSON input examples, schema-aligned product/offer and `run-notice` JSON examples, complete 43-field top-level + 20-field offer dataset reference, live PPE pricing (`$0.00425`/product) + Bronze through Diamond Store tier discounts, JavaScript & Python `ApifyClient` quickstarts, and `CHANGELOG.md` update.

#### 2026-10-25

- Added exact-match `platformTag` extraction, site-native `imageUrl` decoding, `offersSummary` fallback for `highestPrice`, HTTP `202` challenge backoff + `useProxyFallback` support, and `maxConcurrency`/`requestDelayMs` controls.

#### 2026-10-24 (0.1.1)

- Switched to Pricing Option A: billed strictly on the `product` event (`$0.00425`), with nested `offers[]` included at no extra charge and real `robotsDisallowedHits` tracking.

#### 2026-10-23 (0.1.0)

- Initial release supporting PriceRunner UK category and product offer extraction.

# Changelog

This Actor's version history is a separate document: https://apify.com/stone_jadex/pricerunner-offers/changelog.md

# Actor input Schema

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

PriceRunner UK category URLs (/cl/{id}/{slug}, optional ?page=) or product URLs (/pl/...). Query strings on product URLs are removed. Empty input uses Mobile Phones.

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

How many products to save. Default 50.

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

Optional. Leave empty to follow pages until max products or the category ends.

## `includeOffers` (type: `boolean`):

On by default. Each product page is fetched directly (never via the shop redirect) so offers\[] lists merchant, price, shipping, stock and delivery.

## `maxOffersPerProduct` (type: `integer`):

0 keeps every offer shown on the product page.

## `maxConcurrency` (type: `integer`):

Parallel product pages. Request starts stay at least 1 second apart. Lower it (e.g. 1) if PriceRunner starts answering HTTP 202. The old name `concurrency` is still accepted.

## `requestDelayMs` (type: `integer`):

Each worker waits this long after each of its product requests, and the list waits this long between category pages. It is added on top of the 1-second gap between request starts.

## `requestIntervalMs` (type: `integer`):

Polite rate limit. Cannot be set below 1000.

## `maxRunSeconds` (type: `integer`):

Stops cleanly and writes the OUTPUT record before this limit.

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

Off by default (direct). Category pages can use Apify proxy if you turn it on. Product pages stay direct unless Offers via proxy is also on.

## `offersViaProxy` (type: `boolean`):

Product pages stay off the proxy unless this is on. Residential traffic is capped by Residential proxy cap (MB).

## `residentialMaxMb` (type: `integer`):

Hard cap on bytes downloaded through a residential proxy group. The run stops with proxy-budget when the cap is passed.

## `useProxyFallback` (type: `boolean`):

When a proxy is configured, category pages move to it only after repeated HTTP 403/429. Product pages follow only if Offers via proxy is on.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.pricerunner.com/cl/1/Mobile-Phones"
    }
  ],
  "maxItems": 50,
  "includeOffers": true,
  "maxOffersPerProduct": 0,
  "maxConcurrency": 3,
  "requestDelayMs": 0,
  "requestIntervalMs": 1000,
  "maxRunSeconds": 3600,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "offersViaProxy": false,
  "residentialMaxMb": 5,
  "useProxyFallback": false
}
```

# Actor output Schema

## `results` (type: `string`):

Product rows from the default dataset, with a nested offers array when the product page was read, followed by one uncharged run-notice row when the run is truncated or fails. Fields the source does not publish are null.

## `summary` (type: `string`):

The OUTPUT record with the echoed input, pricing, pushed product and merchant-offer counts, uncharged offer-missing count, seed and page statistics, errors, HTTP and robots counters, unavailable-field notes, and the stop reason. Early input-validation failures write a smaller summary containing the raw input.

# 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 = {
    "startUrls": [
        {
            "url": "https://www.pricerunner.com/cl/1/Mobile-Phones"
        }
    ],
    "maxItems": 50,
    "includeOffers": true,
    "maxOffersPerProduct": 0,
    "maxConcurrency": 3,
    "requestDelayMs": 0,
    "requestIntervalMs": 1000,
    "maxRunSeconds": 3600,
    "residentialMaxMb": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("stone_jadex/pricerunner-offers").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 = {
    "startUrls": [{ "url": "https://www.pricerunner.com/cl/1/Mobile-Phones" }],
    "maxItems": 50,
    "includeOffers": True,
    "maxOffersPerProduct": 0,
    "maxConcurrency": 3,
    "requestDelayMs": 0,
    "requestIntervalMs": 1000,
    "maxRunSeconds": 3600,
    "residentialMaxMb": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("stone_jadex/pricerunner-offers").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 '{
  "startUrls": [
    {
      "url": "https://www.pricerunner.com/cl/1/Mobile-Phones"
    }
  ],
  "maxItems": 50,
  "includeOffers": true,
  "maxOffersPerProduct": 0,
  "maxConcurrency": 3,
  "requestDelayMs": 0,
  "requestIntervalMs": 1000,
  "maxRunSeconds": 3600,
  "residentialMaxMb": 5
}' |
apify call stone_jadex/pricerunner-offers --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stone_jadex/pricerunner-offers"
        }
    }
}
```

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/rl0012iICuJTERXXb/builds/6mSydeh2ZIga3syqX/openapi.json
