# OnBuy Scraper - Products, Prices, Cashback & Categories (`abotapi/onbuy-marketplace-scraper`) Actor

Scrape OnBuy listings by keyword search or by pasting search, category, brand, shop or product links. Returns product price, cashback percentage, brand, images and full category breadcrumbs, with recurring-update support so you can monitor price and listing changes over time.

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

## Pricing

from $1.70 / 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

## OnBuy Scraper: Products, Prices, Cashback & Categories

OnBuy Scraper turns OnBuy, the UK-founded online marketplace, into a clean product data feed. Get product titles, prices, cashback percentage, brand, full image galleries and category breadcrumbs across OnBuy's country storefronts. Search by keyword or paste search, category, brand, shop or product links, switch on product detail pages when you need brand and images, then export to JSON, CSV or Excel, or pull the results straight into your app through the API.

### Why This Scraper?

- **Two ways to collect.** Keyword search walks one storefront's catalogue for your terms; My own links reads exactly the search, category, brand, shop or product links you paste.
- **Multiple storefronts, one actor.** Search any OnBuy country storefront in one run, each with its own currency.
- **Cashback on every enriched listing.** OnBuy's signature cashback percentage comes back on every record whose own page is read, alongside brand and the full image gallery.
- **Full category breadcrumbs.** Every record carries the complete category path and ids, resolved from the storefront's own category tree, not just a leaf label.
- **Price and cashback filters built in.** Narrow a keyword search by minimum and maximum price and sort by price (lowest or highest first) without touching a single extra toggle. On the German storefront, price sort is not available (results come back in the storefront's default order), and the price filter is checked page by page, so a very narrow price range can stop early with a warning.
- **Built for monitoring.** Recurring updates returns only new and changed listings on repeat runs, so you can track price and cashback moves over time.
- **Every confirmed link shape supported.** Search, category, nested subcategory, brand page, product page and seller shop links all read correctly, on any storefront.

### Use Cases

- **Price and cashback monitoring:** track price and cashback percentage changes on watched products with Recurring updates.
- **Category research:** pull a category or subcategory's full listing with breadcrumbs and category ids for catalogue mapping.
- **Brand and seller intelligence:** collect every listing under a brand page or a seller's shop link.
- **Catalogue enrichment:** feed titles, images, prices and categories into your own store or comparison site.
- **Cross-storefront comparison:** compare the same search across OnBuy's different country storefronts and currencies.

### Data You Get

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

| Field | Example |
| --- | --- |
| `product_id` / `variation_id` | `"OG-00000-NEW-GB"` / `"OPC-SAMPLE-NEW-GB-000000000"` |
| `title` | `"Sample Height Adjustable Electric Desk with Drawer"` |
| `detail_url` | `"https://www.onbuy.com/gb/p/sample-desk~p000000000/"` |
| `brand` / `brand_name` | `"SampleBrand"` (with Read product detail pages on) |
| `category_breadcrumbs` / `category_ids` | `["Home & Garden", "Furniture, Furnishings & Decor", "Furniture", "Desks"]` / `["2161_gb", "2385_gb", "13422_gb", "2485_gb"]` |
| `category_id` / `category_name` / `parent_category_id` | `"2485_gb"` / `"Desks"` / `"13422_gb"` |
| `currency_code` / `site_currency` | `"GBP"` / `"GBP"` |
| `images` | one image by default, the full gallery with Read product detail pages on |
| `price_current` | `59.99` |
| `cashback_percent` | `2.5` (with Read product detail pages on) |
| `facet_filters` | the storefront's own price/rating facet snapshot for this search or category |
| `rating_avg` / `review_count` | `4.4` / `5` (with Read product detail pages on) |
| `reviewer_name` / `review_rating_stars` / `review_date` / `review_text` | the product's most recently published review (with Read product detail pages on) |
| `search_query_term` / `search_total_num_results` | `"desk"` / `10000` (keyword search and category links only) |
| `search_result_item_id` / `search_result_item_url` / `search_result_item_price` / `search_result_item_image_url` / `search_result_item_variation_id` / `search_result_item_group_ids` | the same listing as returned by the catalogue, unmodified |
| `locale_country_code` / `locale_code` | `"GB"` / `"en-GB"` |
| `sourceType` / `scrapedAt` | `"search"` (also `"url"`), and when the row was read |
| `changeType` / `changedFields` / `firstSeenAt` / `lastSeenAt` | `"NEW"`, `"UPDATED"`, `"UNCHANGED"`, `"REAPPEARED"` or `"EXPIRED"` (with Recurring updates on) |

With Read product detail pages on, a record also carries the listing's RRP and saving percent, condition (new/used/refurbished), the full long description, delivery method/cost/estimate, free-delivery flag, returns window and payment-protection days, the seller's own id/shop name/shop link/shop rating/order count/reviews link, a tracking/listing id, the product's own rating average and review count, its most recently published review (reviewer name, star rating, date and text), and up to ten related-product ids from the page's own "you might also like" carousel. Fields OnBuy does not expose through any source this actor reads stay `null` on every row: a distinct product slug, structured feature/tag lists, free-returns flag, exact stock quantity, per-unit price, dispatch country/lead time, the shop's own review count and country, and review images (not present on any review this actor reads). A pasted product link enriches that one product; a pasted brand, shop, search or category link walks a listing.

### How to Use

1. Pick a mode. **Keyword search** walks one storefront's catalogue for your search terms. **My own links** reads exactly the search, category, brand, shop or product links you paste.
2. In keyword search, pick the storefront(s) and enter your search terms. Optional filters: sort order, minimum and maximum price. On the German storefront, price sort is not available (results come back in the storefront's default order), and the price filter is checked page by page, so a very narrow price range can stop early with a warning.
3. Set **Max items** to bound the run (0 means no limit: the walk then ends when the catalogue or your links run out).
4. Turn on **Read product detail pages** (on by default) to add brand, the full image gallery, the cashback percentage and category breadcrumbs; turn it off for a cheaper run with just price, title and link.

**Keyword search with price filters:**

```json
{
  "mode": "search",
  "locations": ["gb"],
  "searchTerms": ["desk"],
  "sortBy": "price_asc",
  "minPrice": 20,
  "maxPrice": 200,
  "maxItems": 50
}
```

**Paste a product link and a category link:**

```json
{
  "mode": "url",
  "urls": [
    "https://www.onbuy.com/gb/p/sample-desk~p000000000/",
    "https://www.onbuy.com/gb/desks~c2485/"
  ],
  "fetchDetails": true,
  "maxItems": 30
}
```

**Recurring updates, watching a search for gone listings:**

```json
{
  "mode": "search",
  "locations": ["gb"],
  "searchTerms": ["desk"],
  "incrementalMode": true,
  "stateKey": "gb-desk-watch",
  "emitExpired": true,
  "maxItems": 0
}
```

#### Link shapes in "My own links" mode

If you leave the links field untouched, URL mode reads one example per confirmed shape below. Replace it with your own links to scope the run.

| Shape | Example |
| --- | --- |
| Search | `https://www.onbuy.com/gb/search/?query=desk` |
| Category | `https://www.onbuy.com/gb/desks~c2485/` |
| Nested subcategory | `https://www.onbuy.com/gb/office-furniture-and-accessories/office-desks~g25678/` |
| Brand page | `https://www.onbuy.com/gb/brands/lego/` |
| Product detail (tracking-param variant also supported) | `https://www.onbuy.com/gb/p/sample-desk~p000000000/?sr=desk` |
| Seller shop | `https://www.onbuy.com/gb/shop/sample-shop/` |
| Other storefront, same shapes | `https://www.onbuy.com/de/search/?query=desk` |
| Localized or bare homepage | `https://www.onbuy.com/gb/`, `https://www.onbuy.com/` |

#### Run it from your code

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("abotapi/onbuy-marketplace-scraper").call(run_input={"mode": "search", "locations": ["gb"], "searchTerms": ["desk"], "maxItems": 50})
for product in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(product["title"], product["price_current"])
```

JavaScript:

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('abotapi/onbuy-marketplace-scraper').call({ mode: 'search', locations: ['gb'], searchTerms: ['desk'], maxItems: 50 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

Or connect it to Make, Zapier, n8n, Google Sheets or webhooks from the **Integrations** tab.

#### Max items and Max pages

**Max items** (`maxItems`) is the single limit that stops a run; 0 means no limit, and the walk then ends naturally when the catalogue, search or your links run out. **Max pages per source** (`maxPages`) is a runaway guard bounding how deep any one search or category walk goes; leave it empty or 0 to go as deep as the source serves.

#### Resume and recurring updates

- **Resume** (`resumeFromRunId`) continues one interrupted run: paste its run or dataset id and the actor skips every record that run already collected, so an interrupted large collection can finish without paying twice.
- **Recurring updates** (`incrementalMode`) is for running the same search or links again and again, for example daily, and getting only what changed. The first run returns everything as NEW. Later runs label each record NEW, UPDATED (with `changedFields`), UNCHANGED (suppressed and not billed unless `emitUnchanged` is on), REAPPEARED or EXPIRED. EXPIRED is produced only by a run that itself scans its whole scope (not capped, not resumed, no source left unfinished) with `emitExpired` on. `stateKey` names or shares the stored memory; leaving it empty keys the memory to the exact run setup automatically.
- **What counts as a change.** Compared: title, price, cashback percentage, brand, images and category. Excluded from the comparison but still returned in every row: `scrapedAt`, the search term, the total-result count and the facet-filters snapshot (these describe how or when the record was reached, not the record itself).
- **Ignore fields when detecting changes** (`ignoreFieldsForChanges`, incremental mode only) lists extra output fields that must not count as a change. Ignored fields stay in the output and are left out of `changedFields`.

#### Output views

The dataset has two views in the Console: **Listings** (one row per product) and **Changes** (`changeType`, `changedFields`, `firstSeenAt`, `lastSeenAt` for Recurring updates).

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

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` | `search` (keyword search) or `url` (your own links). |
| `locations` | array | `["gb"]` | Storefront(s) to search. Search mode only; a pasted link is read on its own storefront regardless. |
| `searchTerms` | array | `["desk"]` | Search terms, search mode only. One entry per search. |
| `sortBy` | string | `relevance` | `relevance`, `price_asc` or `price_desc`. Search mode only. |
| `minPrice` | number | no default | Minimum price filter, search mode only. |
| `maxPrice` | number | no default | Maximum price filter, search mode only. |
| `urls` | array | one sample link per supported shape (see the link-shape table) | URL mode only. Search, category, brand, shop or product links. |
| `fetchDetails` | boolean | `true` | Read each product's own page and add brand, the full image gallery, the cashback percentage and category breadcrumbs. |
| `maxPages` | integer | empty (no limit) | Runaway guard on depth per search or category walk. Never caps on its own. |
| `maxItems` | integer | `20` | Stop after this many records across the whole run (0 = no limit). |
| `proxyConfiguration` | object | Apify Proxy, Residential | Connection used for every request. You can also paste your own connection links. |
| `resumeFromRunId` | string | no default | Continue one interrupted run by its run or dataset id. |
| `incrementalMode` | boolean | `false` | Return only new and changed records on repeat runs of the same setup. |
| `stateKey` | string | no default | Name or share an incremental-mode memory. |
| `emitUnchanged` | boolean | `false` | Also return, and bill, unchanged records. |
| `emitExpired` | boolean | `false` | Also return, and bill, records that were present before and are no longer found. |
| `ignoreFieldsForChanges` | array | empty | Output fields that must not count as a change in recurring updates. |
| `mcpConnectors` | array | no default | Optional: send a summary of each record to apps you authorized under Integrations. |
| `notionParentPageUrl` | string | no default | Notion connector only: page under which item pages are created. |
| `maxNotifyListings` | integer | `50` | Cap on items written to each connector per run. Does not affect the dataset. |

### Output Example

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

```json
{
  "product_id": "OG-00000-NEW-GB",
  "title": "Sample Height Adjustable Electric Desk with Drawer",
  "detail_url": "https://www.onbuy.com/gb/p/sample-desk~p000000000/",
  "brand": "SampleBrand",
  "brand_name": "SampleBrand",
  "brand_slug": "samplebrand",
  "brand_url": "https://www.onbuy.com/gb/brands/samplebrand/",
  "category_breadcrumbs": ["Home & Garden", "Furniture, Furnishings & Decor", "Furniture", "Desks"],
  "category_ids": ["2161_gb", "2385_gb", "13422_gb", "2485_gb"],
  "category_id": "2485_gb",
  "category_name": "Desks",
  "parent_category_id": "13422_gb",
  "category_breadcrumb_path": "Home & Garden > Furniture, Furnishings & Decor > Furniture > Desks",
  "subcategory_group_id": null,
  "currency_code": "GBP",
  "site_currency": "GBP",
  "images": ["https://cdn.onbuy.com/sample/sample-desk-1.jpg", "https://cdn.onbuy.com/sample/sample-desk-2.jpg"],
  "price_current": 59.99,
  "price_was": 69.99,
  "saving_percent": 14.29,
  "cashback_percent": 2.5,
  "variation_id": "OPC-SAMPLE-NEW-GB-000000000",
  "condition": "new",
  "listing_condition": "new",
  "description_summary_bullets": null,
  "description_long_text": "A sample height-adjustable electric desk with a built-in drawer.",
  "features": null,
  "tags": null,
  "delivery_method": "Standard (Free)",
  "delivery_cost": 0.0,
  "delivery_estimate_date_range": "Fri 27th - Sat 28th Nov",
  "free_delivery_flag": true,
  "returns_days": 30,
  "free_returns_flag": null,
  "payment_protection_days": 180,
  "rating_avg": 4.4,
  "review_count": 5,
  "related_product_ids": ["105551198", "110112049", "28772569"],
  "stock_quantity": null,
  "listing_id": "145456352",
  "tracking_code": "OPC-SAMPLE-NEW-GB-000000000",
  "seller_id": "14583",
  "seller_entity_id": "14583",
  "unit_price": null,
  "dispatch_country": null,
  "dispatch_lead_time": null,
  "shop_trading_name": "Sample Trading Ltd",
  "shop_url": "https://www.onbuy.com/gb/shop/sample-trading-ltd/",
  "shop_rating_avg": 4.5,
  "shop_review_count": null,
  "shop_total_orders": 20000,
  "shop_country_origin": null,
  "shop_reviews_url": "https://www.onbuy.com/gb/shop/sample-trading-ltd/reviews/",
  "reviewer_name": "Jane D.",
  "review_rating_stars": 4,
  "review_date": "2026-11-20",
  "review_text": "Sample review text summarizing this product's most recently published review.",
  "review_images": null,
  "slug": null,
  "facet_filters": [{ "name": "price", "type": "range", "min": 0.53, "max": 9999 }],
  "search_query_term": "desk",
  "search_total_num_results": 10000,
  "search_result_item_id": "OG-00000-NEW-GB",
  "search_result_item_url": "https://www.onbuy.com/gb/p/sample-desk~p000000000/",
  "search_result_item_price": 59.99,
  "search_result_item_image_url": "https://cdn.onbuy.com/sample/sample-desk-1.jpg",
  "search_result_item_variation_id": "OPC-SAMPLE-NEW-GB-000000000",
  "search_result_item_group_ids": ["2485_gb", "13422_gb", "2161_gb"],
  "locale_country_code": "GB",
  "locale_code": "en-GB",
  "sourceType": "search",
  "scrapedAt": "2026-11-24T00:00:00.000000Z",
  "changeType": null,
  "changedFields": null,
  "firstSeenAt": null,
  "lastSeenAt": null
}
```

### Plan Requirement

OnBuy's product pages run a security check. Our measurements cleared it on both the standard and the residential connection tier, so the default connection setting uses **Residential** for the most reliable results; running it needs a paid Apify plan that includes residential access. You can also paste your own connection links in the Connection section to use instead. On a plan without residential proxies (Apify free plans do not include them), the run logs "The selected connection is unavailable to this run" and continues on a backup connection where some pages may still be unavailable; pages served this way log "Served over the backup connection (the default connection was unavailable)". If nothing can be read the run fails with a clear message rather than returning an empty dataset silently. The **Pricing** tab shows the current per-record and detail-enrichment rates.

### FAQ

#### How much does it cost?

You pay per product record returned, plus a detail-enrichment surcharge only for records whose own page was read. The **Pricing** tab shows the current rates for this actor. Use **Max items** to cap the cost of any run.

#### Is it legal to scrape OnBuy?

This actor collects only publicly available marketplace data: titles, prices, images and categories shown on the public site. You are responsible for how you use it: follow OnBuy's terms and the laws that apply to you, and get legal advice if you plan commercial redistribution.

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

Yes. Schedule the actor from the **Schedules** tab and turn on **Recurring updates**. Each run then returns only new and updated records, and unchanged ones are not billed unless you turn that on too.

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

If the connection is refused on every request the run makes, that is a connection problem, not an empty search, so the run fails loudly with a clear message instead of returning zero rows silently. A genuine empty search, where the catalogue was read successfully and holds nothing for your terms, succeeds with zero rows.

#### Why does a brand or shop link sometimes return fewer items than a search?

A brand or shop link is read from that page's own listing, which the page itself bounds; paste the brand's or shop's category links too, or use keyword search, for a deeper walk.

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

### 🔗 More scrapers you might like

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

<table>
<tr><td>🛒 <a href="https://apify.com/abotapi/uniqlo-com-scraper"><b>UNIQLO Scraper</b></a><br>Scrape UNIQLO products across 21 country storefronts in local currency. Price with pre...</td><td>🛒 <a href="https://apify.com/abotapi/tiktok-shop-scraper"><b>TikTok Shop Scraper</b></a><br>Scrape TikTok Shop by keyword, category or product URL. Extract prices, discounts, sales...</td></tr>
<tr><td>🛒 <a href="https://apify.com/abotapi/jumia-marketplace-scraper"><b>Jumia Marketplace Scraper</b></a><br>Scrape Jumia, Africa's largest marketplace: products with local prices, discounts...</td><td>🔌 <a href="https://apify.com/abotapi/extra-com-scraper"><b>Danawa Scraper</b></a><br>Scrape Danawa (danawa.com), Korea's price comparison platform, by keyword, category or...</td></tr>
<tr><td>🔌 <a href="https://apify.com/abotapi/kakaku-scraper"><b>Kakaku.com Scraper</b></a><br>Scrape Kakaku.com Japan by keyword, category or URL. Extract lowest and highest prices...</td><td>🛒 <a href="https://apify.com/abotapi/thewarehouse-co-nz-scraper"><b>The Warehouse NZ Scraper</b></a><br>Scrape The Warehouse New Zealand search results, category pages, and direct product URLs...</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/onbuy-marketplace-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`):

Where to collect from: a keyword search on an OnBuy storefront, or your own search, category, brand, shop or product links.

## `locations` (type: `array`):

Only read when mode = keyword search. Which OnBuy country storefront(s) to search. Each storefront is its own catalogue with its own currency; every search term runs once per storefront.

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

Only read when mode = keyword search. One entry per search; each search is walked forward across every selected storefront, and all searches share the record cap.

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

Only read when mode = keyword search. Order in which products are returned for each search. On the German storefront, price sort is not available, so results come back in the storefront's default order.

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

Only read when mode = keyword search. Return only products priced at or above this amount, in the storefront's own currency. Leave empty for no minimum. On the German storefront the price filter is checked page by page, so a very narrow price range can stop early with a warning.

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

Only read when mode = keyword search. Return only products priced at or below this amount, in the storefront's own currency. Leave empty for no maximum. On the German storefront the price filter is checked page by page, so a very narrow price range can stop early with a warning.

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

Only read when mode = my own links. Paste search, category, brand, shop or product links from any OnBuy storefront. Each link is read on its own storefront; search and category links are walked forward, product links yield one enriched record. Left untouched, URL mode reads these sample links, one per supported link shape.

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

Open each product's own page and add brand, the full image gallery, the cashback percentage and the product's own category breadcrumbs to the record. On by default: search and category results alone do not carry those fields. Turn off for a much cheaper run that still carries price, title, link and category.

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

Runaway guard: an upper bound on how many pages are read for any single search or category walk. Leave empty or 0 to go as deep as the source serves, with Max items below as the real limit. Never caps on its own.

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

Stop after this many records across the whole run (0 = no limit; the walk then ends when the catalogue or your pasted links run out). The single cap that stops a run.

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

Connection used for every request. OnBuy's product pages run a security check; our measurements cleared it on both tiers, so Residential ships as the default for the most reliable results, with an automatic fallback connection if a particular connection is ever unavailable on your plan. You can also paste your own connection links.

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

Paste the run id (or dataset id) of an earlier run of this Actor to continue it. Records that run already returned are skipped, so an interrupted large collection can finish without paying for the same rows twice. Leave empty for a normal run.

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

Turn this on for daily or weekly monitoring. The first run returns everything as NEW. Later runs return only NEW, UPDATED and REAPPEARED records, each labelled in a changeType column, with the changed columns named in changedFields. Compared: title, price, cashback percentage, brand, images and category. Excluded from the comparison: scrapedAt, the search term and result position, the total-result count and the facet filters snapshot. Leave off for a normal one-off run.

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

Optional. Name this monitoring campaign to keep its memory stable, or to deliberately share one memory across differently configured runs. Leave empty and the memory is keyed on the run setup automatically.

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

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

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

Off by default. Turn on to also return records that were present before and are no longer found, labelled EXPIRED. Only produced when a run covered its whole setup, so a capped or continued run never reports records as gone. This returns, and bills, extra rows.

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

Optional list of output fields that must NOT count as a change in recurring updates, for example search_total_num_results or facet_filters. A plain name is ignored wherever it appears, including inside nested arrays. The field is still returned in every row. Changing this list never causes a wave of UPDATED rows. Ignored when recurring updates is off.

## `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; never changes the dataset output.

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

## Actor input object example

```json
{
  "mode": "search",
  "locations": [
    "gb"
  ],
  "searchTerms": [
    "desk"
  ],
  "sortBy": "relevance",
  "urls": [
    "https://www.onbuy.com/gb/search/?query=desk",
    "https://www.onbuy.com/gb/desks~c2485/",
    "https://www.onbuy.com/gb/office-furniture-and-accessories/office-desks~g25678/",
    "https://www.onbuy.com/gb/brands/lego/",
    "https://www.onbuy.com/gb/p/computer-desk-home-office-desk-with-monitor-stand-and-storage-shelves~p104367747/?sr=desk",
    "https://www.onbuy.com/gb/shop/yukiyi/",
    "https://www.onbuy.com/de/search/?query=desk",
    "https://www.onbuy.com/gb/",
    "https://www.onbuy.com/"
  ],
  "fetchDetails": true,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "ignoreFieldsForChanges": [],
  "maxNotifyListings": 50
}
```

# 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",
    "locations": [
        "gb"
    ],
    "searchTerms": [
        "desk"
    ],
    "sortBy": "relevance",
    "urls": [
        "https://www.onbuy.com/gb/search/?query=desk",
        "https://www.onbuy.com/gb/desks~c2485/",
        "https://www.onbuy.com/gb/office-furniture-and-accessories/office-desks~g25678/",
        "https://www.onbuy.com/gb/brands/lego/",
        "https://www.onbuy.com/gb/p/computer-desk-home-office-desk-with-monitor-stand-and-storage-shelves~p104367747/?sr=desk",
        "https://www.onbuy.com/gb/shop/yukiyi/",
        "https://www.onbuy.com/de/search/?query=desk",
        "https://www.onbuy.com/gb/",
        "https://www.onbuy.com/"
    ],
    "fetchDetails": true,
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    },
    "incrementalMode": false,
    "emitUnchanged": false,
    "emitExpired": false,
    "ignoreFieldsForChanges": [],
    "maxNotifyListings": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("abotapi/onbuy-marketplace-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",
    "locations": ["gb"],
    "searchTerms": ["desk"],
    "sortBy": "relevance",
    "urls": [
        "https://www.onbuy.com/gb/search/?query=desk",
        "https://www.onbuy.com/gb/desks~c2485/",
        "https://www.onbuy.com/gb/office-furniture-and-accessories/office-desks~g25678/",
        "https://www.onbuy.com/gb/brands/lego/",
        "https://www.onbuy.com/gb/p/computer-desk-home-office-desk-with-monitor-stand-and-storage-shelves~p104367747/?sr=desk",
        "https://www.onbuy.com/gb/shop/yukiyi/",
        "https://www.onbuy.com/de/search/?query=desk",
        "https://www.onbuy.com/gb/",
        "https://www.onbuy.com/",
    ],
    "fetchDetails": True,
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
    "incrementalMode": False,
    "emitUnchanged": False,
    "emitExpired": False,
    "ignoreFieldsForChanges": [],
    "maxNotifyListings": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("abotapi/onbuy-marketplace-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",
  "locations": [
    "gb"
  ],
  "searchTerms": [
    "desk"
  ],
  "sortBy": "relevance",
  "urls": [
    "https://www.onbuy.com/gb/search/?query=desk",
    "https://www.onbuy.com/gb/desks~c2485/",
    "https://www.onbuy.com/gb/office-furniture-and-accessories/office-desks~g25678/",
    "https://www.onbuy.com/gb/brands/lego/",
    "https://www.onbuy.com/gb/p/computer-desk-home-office-desk-with-monitor-stand-and-storage-shelves~p104367747/?sr=desk",
    "https://www.onbuy.com/gb/shop/yukiyi/",
    "https://www.onbuy.com/de/search/?query=desk",
    "https://www.onbuy.com/gb/",
    "https://www.onbuy.com/"
  ],
  "fetchDetails": true,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "ignoreFieldsForChanges": [],
  "maxNotifyListings": 50
}' |
apify call abotapi/onbuy-marketplace-scraper --silent --output-dataset

```

## MCP server setup

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