# Jarir Bookstore Scraper - Products, Prices, Stock & Reviews (`abotapi/jarir-scraper`) Actor

Scrape Jarir Bookstore (jarir.com) across Saudi Arabia, UAE, Kuwait, Qatar and Bahrain in English or Arabic. Extract electronics, books, computers and office supplies with prices, discounts, stock, specifications, variants and expert reviews. Search by keyword, category or URL.

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

## Pricing

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

## Jarir Scraper: Electronics, Books, Prices, Stock & Reviews

Jarir Scraper turns jarir.com, the online store of Jarir Bookstore, the Gulf's leading electronics, computer, book and office-supplies retailer, into structured product data. Search by keyword, pick whole catalog categories, or paste a search, category or product link, and get prices, sale prices, stock, specifications, variants and expert reviews for Saudi Arabia, the UAE, Kuwait, Qatar and Bahrain, in English or Arabic. Export to JSON, CSV or Excel, or pull results straight into your app through the API.

### Why This Scraper?

- **Every Jarir market in one actor.** Pick Saudi Arabia, the UAE, Kuwait, Qatar or Bahrain; each row carries the price in that market's currency (SAR, AED, KWD, QAR, BHD) and that store's own stock.
- **English and Arabic.** Names, categories, specification labels and descriptions come in the language you pick; a pasted link keeps its own language.
- **Whole categories, not just the first page.** A keyword, category or pasted category link with tens of thousands of products is walked to its natural end, so you can pull a complete category (Smartphones, English Books, Office Supplies ...) or a whole market's catalog with **Max items** set to 0.
- **Specifications with readable labels.** Storage, display size, RAM, processor, operating system, colour, book format, author, ISBN and more, labelled the way the store labels them.
- **Real stock and sale prices.** Regular price, sale price and sale window, discount, in-stock status, order limits and per-variant prices for configurable products (for example every colour and storage of a phone).
- **Expert reviews.** Turn on reviews to attach the product's expert score and up to **Max reviews per product** reviews from published tech reviews (publication, score, title, extract, pros, cons and a link to the article), plus customer reviews where the store has any.
- **Monitoring built in.** Label every product NEW, UPDATED, REAPPEARED or EXPIRED across scheduled runs, track price and stock only, resume an interrupted crawl, and export through MCP connectors.

### Use Cases

- **Price and promotion monitoring:** track prices, sale prices and discount depth for phones, laptops, gaming and accessories across Gulf markets, and get alerted only to what actually changed.
- **Cross-market price comparison:** run the same keyword or link in Saudi Arabia, the UAE, Kuwait, Qatar and Bahrain and compare prices in local currency.
- **Assortment and brand analysis:** pull a whole category or brand to study range depth, specifications and price bands.
- **Book catalogs:** collect Arabic and English titles with author, ISBN, format and price.
- **Stock and availability tracking:** follow in-stock status and per-variant prices per market.

### Data You Get

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

| Field | Example |
| --- | --- |
| `productId` / `sku` | `"600001"` / `"600001"` (the store's own product number) |
| `name` / `shortName` | `"Sample Brand Phone X, 256 GB, Black, 5G"` / `"PHONE X 256GB BLACK"` |
| `brand` / `model` / `mpn` / `itemNumber` | `"Sample Brand"` / `"Phone X"` / `"ABC123"` / `"25-ABC123"` |
| `barcode` / `barcodes` | `"0000000000001"` / every barcode on the product |
| `url` | the product page in the row's market and language |
| `market` / `language` / `currency` | `"SA"` / `"en"` / `"SAR"` |
| `price` / `originalPrice` / `discountPercent` / `isOnSale` | `1999` / `2299` / `13` / `true` |
| `priceExVat` | the price before VAT as the store states it, `1738.26` |
| `specialPriceFrom` / `specialPriceTo` | the sale window, `"2026-01-01"` / `"2026-01-31"` |
| `inStock` / `availability` | `true` / `"InStock"` |
| `maxSaleQuantity` / `minSaleQuantity` | order limits per customer |
| `productType` / `categories` / `categoryIds` / `tags` | `"Smartphones"` / `["Electronics & Mobiles", "Smartphones"]` / the store's category ids / `["Weekly Offers"]` |
| `specifications` | `{"Total storage capacity": "256 GB", "Display size": "6.7\"", "RAM": "8 GB"}` |
| `color` / `author` / `isbn` | `"Black"` / the author of a book / its ISBN |
| `image` / `images` / `videoUrl` | main image / full gallery / product video |
| `description` / `shortDescription` / `promoTagline` | product copy / short name / the store's promotion line |
| `warrantyCode` / `originCountry` / `weightKg` / `isReturnable` | warranty code / `"CN"` / `0.25` / `true` |
| `deliveryOptions` / `paymentOptions` | `{"homeDelivery": true, "showroomPickup": true, "fulfilment": "NORMAL"}` / `{"cashOnDelivery": true, "installments": true, "buyNowPayLater": true}` |
| `productGroupId` / `variantCount` / `variantOptions` / `variants` | the configurable parent / `4` / `{"Capacity": ["256 GB", "512 GB"]}` / each variant's SKU, name, options, price, original price, stock, link and image |
| `similarProductSkus` / `boughtTogetherSkus` | the store's own similar-product and frequently-bought-together product numbers |
| `internationalShipping` / `listedAt` / `updatedAt` | ships abroad / when it was listed / when the store last updated the record |
| `expertScore` / `expertReviewsCount` / `customerReviewsCount` / `scoreDistribution` | `8.1` (out of 10) / `20` / `0` / `{"1": 0, "2": 0, "3": 1, "4": 13, "5": 3}` |
| `reviews` | `reviewType` (expert or customer), `reviewSource`, `reviewSourceDomain`, `reviewTitle`, `reviewText`, `reviewRating`, `reviewRatingMax`, `reviewerName`, `reviewDate`, `reviewLanguage`, `reviewCountry`, `reviewedProductName`, `pros`, `cons`, `helpfulVotes`, `unhelpfulVotes`, `reviewUrl` |
| `query` / `sourceUrl` / `position` / `scrapedAt` | which keyword or pasted link found the row, its result position, and when it was read |
| `changeType` / `changedFields` / `firstSeenAt` / `lastSeenAt` | incremental mode only: `"NEW"`, `"UPDATED"`, `"UNCHANGED"`, `"REAPPEARED"` or `"EXPIRED"`, the fields that changed, and when the product was first and last seen |

Most reviews on jarir.com are expert reviews of electronics from published tech sites; books, stationery and many accessories have none, and customer reviews are rare. Out-of-stock products are listed too, with `inStock: false`. Stock, sale prices, the price before VAT, category ids, related products, order limits, description, gallery, variants, warranty, delivery and payment fields come from each product's full record: on keyword and category runs they need **Fetch product details**; rows from pasted category and product links always carry them.

**Output views.** The dataset has three views in the Console: **Products**, **Reviews** (one row per review, with the product it belongs to) and **Changes (incremental)**. Each run also stores a run summary under the `OUTPUT` key of its default key-value store.

### How to Use

1. Keep the default **search** mode and add one or more keywords, switch to **category** mode and pick categories, or switch to **url** mode and paste search, category or product links.
2. Pick the **Market** and **Language** for keyword and category runs. A pasted link keeps its own market and language (a `/qa-en/` link reads the Qatar store in English; a link with no prefix is the Saudi store in Arabic).
3. Narrow with brands and a price range, and choose a sort order.
4. Keep **Fetch product details** and **Fetch reviews** on for the richest rows, or turn them off for a faster, cheaper listing-level pull.
5. Set **Max items** to control run size and cost, then click **Start**.

**Quick keyword search:**

```json
{
  "mode": "search",
  "searchTerms": ["iphone"],
  "maxItems": 20
}
```

**A whole category in the Qatar store, listing fields only:**

```json
{
  "mode": "category",
  "categories": ["1321"],
  "market": "QA",
  "fetchDetails": false,
  "fetchReviews": false,
  "maxItems": 0
}
```

**Saudi store in Arabic, filtered and sorted:**

```json
{
  "mode": "search",
  "searchTerms": ["laptop"],
  "language": "ar",
  "brands": ["Lenovo", "HP"],
  "maxPrice": 4000,
  "sortBy": "price_low",
  "maxItems": 50
}
```

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

```json
{
  "mode": "url",
  "urls": [
    "https://www.jarir.com/sa-en/headphones-40027.html",
    "https://www.jarir.com/kw-en/catalogsearch/result?search=ipad",
    "https://www.jarir.com/sa-en/apple-airpods-4-headsets-642550.html"
  ],
  "maxItemsPerSearch": 10,
  "maxItems": 30
}
```

#### Run it from your code

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("abotapi/jarir-scraper").call(run_input={"mode": "search", "searchTerms": ["iphone"], "maxItems": 20})
for product in client.dataset(run.default_dataset_id).iterate_items():
    print(product.get("name"), product.get("price"), product.get("currency"))
```

JavaScript:

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

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

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

#### Caps and pagination

**Max items** stops the whole run once that many products have been returned (`0` = no cap). **Max items per keyword, category or link** caps each one on its own, so one large category cannot use up the whole run. Without a cap, each keyword, category or link is walked to its natural end: a listing larger than the store serves in one go (10,000 products) is split into price ranges automatically and every range is read, with duplicates dropped. **Sort order** holds for the first 10,000 products; past that, products come range by range from the lowest price up (each range in your sort order). A pasted category link always follows the store's own category order. A price point shared by more than 10,000 products cannot be split further; the run then reads 10,000 of them, says the walk did not reach the end, and skips EXPIRED detection.

#### Resume and recurring updates

- **Resume** (`resumeFromRunId`) skips products already collected by an earlier run: paste its run or dataset ID and those products are neither returned nor charged again.
- **Incremental mode** (`incrementalMode`) is for scheduled runs over the same search, category or link. Each product 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 end, never after a capped or resumed run, and only with `emitExpired` on). The result position, scrape time, the keyword or link a product was found through, the store's record-sync date (`updatedAt`), its related-product lists (`similarProductSkus`, `boughtTogetherSkus`), the attached reviews and the review score summary never count as a change. `ignoreFieldsForChanges` defaults to the promo tagline (`promoTagline`) and the merchandising tags (`tags`), which the store re-assigns per campaign; remove names to be told about them, or add more. `changeScope: "priceAndStock"` compares only price, sale and stock fields (including per-variant price and stock); `compactUpdates` returns slim rows with just what moved. If a product's detail cannot be read during an incremental run, that product is held back (not returned, not charged, its saved state untouched) and the next run that can read it reports it. `stateKey` names or shares the stored state; leave it empty and the actor derives one from the run's search, category, link, market, language and filter setup.

### 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` | `search` (keywords), `category` (whole catalog categories) or `url` (pasted links). |
| `searchTerms` | array | `iphone` | Search mode: keywords to search, each read separately. |
| `categories` | array | `Smartphones` | Category mode: top-level catalog categories to read to their end. |
| `urls` | array | one link of each shape | URL mode: search, category (`/sa-en/headphones-40027.html`, `/sa-en/c/665`) or product links (`/sa-en/<name>-642550.html`, `/sa-en/SKU/642550`), any market and language prefix. |
| `market` | string | `SA` | Store for keyword and category runs: `SA`, `AE`, `KW`, `QA` or `BH`. Sets the catalog and the price currency. |
| `language` | string | `en` | `en` or `ar` for keyword and category runs. |
| `sortBy` | string | `relevance` | `relevance`, `price_low` or `price_high`. |
| `brands` | array | (none) | Keep only these brands, spelled as the store spells them; several are combined as "any of these". |
| `minPrice` | integer | (none) | Lowest price kept, in the market's currency. Applies to each product's real (sale) price; a filtered run reads each candidate's product record first (and bills the product-record event for the rows it returns). |
| `maxPrice` | integer | (none) | Highest price kept, in the market's currency. Applies to each product's real (sale) price: the search is widened above this edge so sale items the index prices above it are still found, then each candidate's product record is read before the exact cut. |
| `fetchDetails` | boolean | `true` | Keyword and category rows: add stock, sale price, order limits, description, gallery, variants, warranty, delivery and payment options (charged per enriched row). |
| `fetchReviews` | boolean | `true` | Attach the review score summary and reviews (charged per row that has reviews attached). |
| `maxReviews` | integer | `20` | Reviews per product; `0` skips reviews entirely. |
| `maxItemsPerSearch` | integer | `0` | Cap per keyword, category or pasted link; `0` = no per-keyword cap. |
| `maxItems` | integer | `20` | Cap on the whole run; `0` = no cap. |
| `proxy` | object | Automatic | Apify Proxy settings, or your own proxy URLs. |
| `resumeFromRunId` | string | (none) | Run or dataset ID whose products are skipped. |
| `incrementalMode` | boolean | `false` | Return only new, changed and reappeared products on repeat runs. |
| `stateKey` | string | (auto) | Name or share the incremental state. |
| `changeScope` | string | `all` | `all` or `priceAndStock`. |
| `compactUpdates` | boolean | `false` | Slim UPDATED rows with only what moved. |
| `expireAfterMissedScans` | integer | `1` | Complete scans a product must be missing before EXPIRED. |
| `emitUnchanged` | boolean | `false` | Also return UNCHANGED rows (billed as rows). |
| `emitExpired` | boolean | `false` | Also return EXPIRED rows after a complete scan (billed as rows). |
| `ignoreFieldsForChanges` | array | promo tagline + tags | Fields that never count as a change; remove names to be told about them. |
| `mcpConnectors` | array | (none) | Optional MCP connectors to send results into, see above. |
| `notionParentPageUrl` | string | (none) | Notion page that receives the items (Notion connector only). |
| `maxNotifyListings` | integer | `50` | Cap on items written to each connector per run. |

### Output Example

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

```json
{
  "kind": "product",
  "productId": "600001",
  "sku": "600001",
  "name": "Sample Brand Earbuds, Bluetooth, USB-C, White",
  "brand": "Sample Brand",
  "url": "https://www.jarir.com/sa-en/sample-brand-earbuds-headsets-600001.html",
  "market": "SA",
  "language": "en",
  "currency": "SAR",
  "price": 399,
  "originalPrice": 449,
  "discountPercent": 11.1,
  "isOnSale": true,
  "inStock": true,
  "availability": "InStock",
  "productType": "Headsets",
  "categories": ["Electronics & Mobiles", "Headphones & Speakers"],
  "specifications": {"Connectivity technology": "Bluetooth", "Color": "White"},
  "images": ["https://ak-asset.jarir.com/sample-1.jpg"],
  "maxSaleQuantity": 10,
  "warrantyCode": "25-SAMPLE",
  "variantCount": 0,
  "expertScore": 8.1,
  "expertReviewsCount": 20,
  "reviews": [
    {"reviewType": "expert", "reviewSource": "Sample Tech Site", "reviewSourceDomain": "example.com", "reviewTitle": "Sample Earbuds review", "reviewText": "Solid sound and an easy case.", "reviewRating": 8, "reviewRatingMax": 10, "reviewerName": "Sample Reviewer", "reviewDate": "2026-01-15", "reviewLanguage": "en", "pros": "Sound, battery", "cons": "Fit", "reviewUrl": "https://example.com/sample-earbuds-review"}
  ],
  "query": "earbuds",
  "position": 1,
  "scrapedAt": "2026-01-20T08:00:00+00:00"
}
```

### Plan Requirement

Pay per event: one unit per returned product row, plus an actor start event, plus a detail-enrichment unit for each keyword or category row actually enriched with its full product record, plus a review-enrichment unit for each row that has at least one review attached. Each unit is charged per row, as the row is delivered, never as a single total at the end. A row whose detail or reviews could not be read still ships, without that unit, and an unchanged product left out in incremental mode is neither returned nor charged. Rows from pasted category and product links carry the full product record from the same read and never carry the detail-enrichment unit.

### FAQ

#### How much does it cost?

You pay per product row returned, plus one detail-enrichment unit per keyword or category row enriched with its full product record (on by default; turn `fetchDetails` off for listing-only rows) and one review-enrichment unit per row that has reviews attached (on by default; turn `fetchReviews` off or set `maxReviews` to 0 to skip). Products without reviews never carry the review unit. The **Pricing** tab shows the current rates. Use **Max items** to cap the cost of any run.

#### Is it legal to scrape jarir.com?

This actor collects only publicly available product data that jarir.com shows on its own pages. You are responsible for how you use it: follow Jarir's terms and the laws that apply to you, and get legal advice if you plan commercial redistribution. Expert reviews are extracts of articles by third-party publications, and the full article stays on the publisher's site (`reviewUrl`); handle reviewer names in line with the privacy rules that apply to you. Prices and specifications are generally facts, but images and description text may be subject to third-party rights.

#### Which markets and languages are covered?

Saudi Arabia (SAR), the United Arab Emirates (AED), Kuwait (KWD), Qatar (QAR) and Bahrain (BHD), each in English or Arabic. Saudi Arabia has by far the largest catalog (most books are sold there); the other stores carry a smaller range, and a product may be in stock in one market and out of stock in another.

#### 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 products; unchanged ones are not billed unless you turn `emitUnchanged` on. Use `changeScope: "priceAndStock"` to be told only about price and stock moves.

#### Which proxy should I use?

The default (Automatic, datacenter) is measured to work on every route this actor reads, and runs on every plan. 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 `JARIR_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, category 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 `JARIR_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 Jarir 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 detail could not be read). A run with no keywords, no categories, or no supported links fails at once with "Nothing to scrape: add search keywords in Search mode, pick categories in Category mode, or paste valid jarir.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 reviews or no description?

Reviews are attached only to products that have them, and only when **Fetch reviews** is on; most books and accessories have none. Many products describe themselves through an embedded brand page rather than text, so `description` can be empty while `shortDescription`, `specifications` and images are filled. Stock and sale prices on keyword and category rows need **Fetch product details**. If a product's detail or reviews could not be read during the run, the row still ships with everything else and is not charged for the missing part.

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

### 💬 Support

- 🐞 **Found a bug or a missing field?** Open a ticket on the [Issues tab](https://apify.com/abotapi/jarir-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, 'category' to read whole catalog categories, or 'url' to paste search, category or product links.

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

One or more keywords to search on jarir.com, for example 'iphone', 'laptop', 'printer ink' or an author or book title. Each keyword is searched separately, in the market and language picked below.

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

Pick one or more of the store's top-level catalog categories; each is read to its end (or until Max items). For any other category, paste its link in URL mode instead.

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

Paste jarir.com links: a search page (/sa-en/catalogsearch/result?search=...), a category page (/sa-en/headphones-40027.html or /sa-en/english-electronics.html), a short category link (/sa-en/c/665), a product page (/sa-en/apple-airpods-4-headsets-642550.html) or a short product link (/sa-en/SKU/642550). Every market and language prefix works: /sa-en, /sa-ar (no prefix), /ae-en, /kw-en, /qa-en, /bh-en and their Arabic versions.

## `market` (type: `string`):

The Jarir store to read for keyword and category runs: its catalog and its currency in price fields. Saudi Arabia has by far the largest catalog (most books are sold there); the other Gulf stores carry a smaller range.

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

Language of product names, categories, specification labels and descriptions for keyword and category runs.

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

The storefront's own sort order for keyword searches, categories and pasted search links. A pasted category link keeps the store's own category order.

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

Optional. Keep only products from these brands, spelled as the store spells them (for example 'Apple', 'Samsung', 'HP'). Several brands are combined as 'any of these'.

## `minPrice` (type: `integer`):

Optional. Only keep products priced at or above this amount, in the market's currency (SAR for Saudi Arabia, AED for the UAE ...). The filter applies to each product's real (sale) price: the store's listing index prices a product at its regular price, so a filtered run reads every candidate's product record before the cut and bills the product-record event for the rows it returns.

## `maxPrice` (type: `integer`):

Optional. Only keep products priced at or below this amount, in the market's currency. The filter applies to each product's real (sale) price: the store's listing index prices a product at its regular price, so the search itself is widened above this edge to admit sale items, and each candidate's product record is read (and billed for returned rows) before the exact cut.

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

Read each keyword or category row's full product record to add the regular and sale price, stock, order limits, description, gallery, variants, warranty code, delivery and payment options. Charged once per row enriched. Rows from pasted category and product links already carry all of this from the same read and are never charged for it. Turn off for a faster, cheaper listing-level pull.

## `fetchReviews` (type: `boolean`):

Attach each returned product's review score summary and up to Max reviews per product reviews: expert reviews from published tech reviews (publication, score, title, extract, pros and cons, link) and customer reviews where the store has any. Charged once per product row that has at least one review attached; never for products without reviews, for unchanged rows left out in incremental mode, or when switched off.

## `maxReviews` (type: `integer`):

How many reviews to attach to each product when Fetch reviews is on. Use 0 to skip reviews entirely (no review reads, no review charge).

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

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

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

THE cap on this run: the maximum number of product rows returned across the whole run. Defaults to 20 so a first run is fast and cheap. Use 0 for unlimited (a whole category or a whole market's catalog).

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

Leave this on the default (Automatic) for most runs; it is measured to work and runs on every plan. 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 store's own record-sync date (updatedAt), its related-product lists (similarProductSkus, boughtTogetherSkus), its attached reviews and review score summary, and by default its promo tagline and merchandising tags (see Ignore fields below); with 'Price and stock only' just price, sale and stock fields are compared. State is kept separately for each keyword, category, link, market, language, filter and detail setup; use State key to name or deliberately share a monitoring campaign.

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

Optional. Name this monitoring campaign to keep its state stable, or to deliberately share state across differently configured runs. Leave empty to derive a key automatically from this run's search and filter setup.

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

'Price and stock only' compares just price, original price, sale status, stock, availability and per-variant prices; a description, image, specification or tag 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 capped it 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 promo tagline (promoTagline) and the merchandising tags (tags, for example 'Weekly Offers' or 'Clearance Offers'), which the store re-assigns per campaign; 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.

## Actor input object example

```json
{
  "mode": "search",
  "searchTerms": [
    "iphone"
  ],
  "categories": [
    "1008"
  ],
  "urls": [
    "https://www.jarir.com/sa-en/catalogsearch/result?search=galaxy",
    "https://www.jarir.com/sa-en/headphones-40027.html",
    "https://www.jarir.com/sa-en/english-electronics.html",
    "https://www.jarir.com/sa-en/c/665",
    "https://www.jarir.com/sa-en/apple-airpods-4-headsets-642550.html",
    "https://www.jarir.com/apple-airpods-4-headsets-642550.html",
    "https://www.jarir.com/sa-en/SKU/689710",
    "https://www.jarir.com/qa-en/apple-airpods-5-headsets-689544.html",
    "https://www.jarir.com/kw-ar/headphones-40027.html"
  ],
  "market": "SA",
  "language": "en",
  "sortBy": "relevance",
  "fetchDetails": true,
  "fetchReviews": true,
  "maxReviews": 20,
  "maxItemsPerSearch": 0,
  "maxItems": 20,
  "proxy": {
    "useApifyProxy": true
  },
  "incrementalMode": false,
  "changeScope": "all",
  "compactUpdates": false,
  "expireAfterMissedScans": 1,
  "emitUnchanged": false,
  "emitExpired": false,
  "ignoreFieldsForChanges": [
    "promoTagline",
    "tags"
  ],
  "maxNotifyListings": 50
}
```

# Actor output Schema

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

No description

## `reviews` (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": [
        "iphone"
    ],
    "categories": [
        "1008"
    ],
    "urls": [
        "https://www.jarir.com/sa-en/catalogsearch/result?search=galaxy",
        "https://www.jarir.com/sa-en/headphones-40027.html",
        "https://www.jarir.com/sa-en/english-electronics.html",
        "https://www.jarir.com/sa-en/c/665",
        "https://www.jarir.com/sa-en/apple-airpods-4-headsets-642550.html",
        "https://www.jarir.com/apple-airpods-4-headsets-642550.html",
        "https://www.jarir.com/sa-en/SKU/689710",
        "https://www.jarir.com/qa-en/apple-airpods-5-headsets-689544.html",
        "https://www.jarir.com/kw-ar/headphones-40027.html"
    ],
    "market": "SA",
    "fetchDetails": true,
    "fetchReviews": true,
    "maxReviews": 20,
    "maxItems": 20,
    "proxy": {
        "useApifyProxy": true
    },
    "incrementalMode": false,
    "compactUpdates": false,
    "emitUnchanged": false,
    "emitExpired": false,
    "ignoreFieldsForChanges": [
        "promoTagline",
        "tags"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("abotapi/jarir-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": ["iphone"],
    "categories": ["1008"],
    "urls": [
        "https://www.jarir.com/sa-en/catalogsearch/result?search=galaxy",
        "https://www.jarir.com/sa-en/headphones-40027.html",
        "https://www.jarir.com/sa-en/english-electronics.html",
        "https://www.jarir.com/sa-en/c/665",
        "https://www.jarir.com/sa-en/apple-airpods-4-headsets-642550.html",
        "https://www.jarir.com/apple-airpods-4-headsets-642550.html",
        "https://www.jarir.com/sa-en/SKU/689710",
        "https://www.jarir.com/qa-en/apple-airpods-5-headsets-689544.html",
        "https://www.jarir.com/kw-ar/headphones-40027.html",
    ],
    "market": "SA",
    "fetchDetails": True,
    "fetchReviews": True,
    "maxReviews": 20,
    "maxItems": 20,
    "proxy": { "useApifyProxy": True },
    "incrementalMode": False,
    "compactUpdates": False,
    "emitUnchanged": False,
    "emitExpired": False,
    "ignoreFieldsForChanges": [
        "promoTagline",
        "tags",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("abotapi/jarir-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": [
    "iphone"
  ],
  "categories": [
    "1008"
  ],
  "urls": [
    "https://www.jarir.com/sa-en/catalogsearch/result?search=galaxy",
    "https://www.jarir.com/sa-en/headphones-40027.html",
    "https://www.jarir.com/sa-en/english-electronics.html",
    "https://www.jarir.com/sa-en/c/665",
    "https://www.jarir.com/sa-en/apple-airpods-4-headsets-642550.html",
    "https://www.jarir.com/apple-airpods-4-headsets-642550.html",
    "https://www.jarir.com/sa-en/SKU/689710",
    "https://www.jarir.com/qa-en/apple-airpods-5-headsets-689544.html",
    "https://www.jarir.com/kw-ar/headphones-40027.html"
  ],
  "market": "SA",
  "fetchDetails": true,
  "fetchReviews": true,
  "maxReviews": 20,
  "maxItems": 20,
  "proxy": {
    "useApifyProxy": true
  },
  "incrementalMode": false,
  "compactUpdates": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "ignoreFieldsForChanges": [
    "promoTagline",
    "tags"
  ]
}' |
apify call abotapi/jarir-scraper --silent --output-dataset

```

## MCP server setup

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