# YouCan Store Catalog & Price Scraper (`abdulwhab95/youcan-store-catalog-scraper`) Actor

Products, prices, discounts and variants from any YouCan store (Saudi Arabia, Gulf, Morocco, North Africa). Uses the store's own public product feed - HTTP only, no browser, no key.

- **URL**: https://apify.com/abdulwhab95/youcan-store-catalog-scraper.md
- **Developed by:** [ABDULWAHAB NASER RASHED ALQARAWI](https://apify.com/abdulwhab95) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## YouCan Store Catalog & Price Scraper

Products, prices, discounts and variants from **any YouCan store** — the
platform behind thousands of shops in Saudi Arabia, the Gulf, Morocco and North
Africa.

Give it a store link. No API key, no login, no browser, no proxy.

```
tqnyweb.online
https://arabicsouk.shop/products/any-product
youcan.supply
```

***

### What you get

One row per product, **20 fields, every one always present** — missing values
come back as `null`, never dropped.

| Field | Example |
|---|---|
| `name` | صيانة المايكروويف |
| `price` | `1.0` |
| `compareAtPrice` | `2.0` |
| `currency` | `SAR` |
| `isOnSale` / `discountPct` | `true` / `50.0` |
| `hasVariants` / `variantsCount` | `true` / `12` |
| `variantOptions` | `size: S, M, L, XL` |
| `imageUrl` / `imageCount` | `https://cdn.youcan.shop/...` / `4` |

Plus `store`, `productUrl`, `productId`, `slug`, `tracksInventory`,
`description`, `scrapedAt`, and `changeType` / `previousPrice` (filled only
with `onlyChanges`, see below).

**The right currency.** YouCan's product feed does not state a currency, and
the storefront's social-media tag is often wrong — on 13 Sep 2026 a Saudi store
and a Moroccan store both claimed Kuwaiti dinars there. This Actor reads the
currency from the product page's search-engine data instead: SAR for the Saudi
stores, MAD for the Moroccan one. When the product page has none, the
storefront's settings are used, and only a real ISO 4217 currency code is
accepted there — a country code such as `SAU` is not.

**A real discount, not a claimed one.** `isOnSale` is true only when the
compare-at price is genuinely above the price. A compare-at price of `0` is not
a discount.

***

### Use it for

- **Competitor price monitoring** — schedule it with `onlyChanges`
- **Discount tracking** — turn on `onlyOnSale`, sort by `discountPct`
- **Product research** — see which options and variants a store offers
- **Catalog and market research** across Saudi, Gulf and Moroccan stores

***

### Only what changed

Turn on `onlyChanges` and schedule the Actor. Each run returns only products
that are **new**, or whose `price` or `compareAtPrice` changed since the last
run. Every row says why: `changeType` is `NEW` or `UPDATED`, and
`previousPrice` holds the price it had before (`null` for new products). The
first run returns every product as `NEW`. YouCan's feed has no stock level, so
stock changes cannot be detected.

The last known state of each store is kept in a named key-value store in your
account (`stateStoreName`, default `youcan-catalog-state`). Use a different
name for each separate monitor.

A store's state is saved only when its read finished cleanly. If a page fails
partway, or the run stops at your spending limit, the old state is kept and
those products are compared again on the next run — a change is never skipped,
though a product delivered just before the stop can be delivered again.

With `onlyChanges` on, `maxProductsPerStore` caps the products **checked**, not
the rows returned; otherwise a store with nothing new would be read to its last
page on every run.

***

### Speed

Measured 13 Sep 2026: **three stores, 34 products, 9 seconds** — 50 products
per request.

***

### Honest notes

**Stock quantities are not in the feed.** YouCan publishes whether a product
tracks inventory (`tracksInventory`), not how many are left.

**robots.txt is read first.** If a store disallows its product feed, that store
is skipped and named in the run report.

**Only what the store publishes.** The feed is the one the store's own theme
reads. Hidden and draft products are never collected. No customer data exists
in it.

**A store that yields nothing is named** in the run's status message and under
`notReached` in the run report — a link that is not a YouCan store is reported,
not silently dropped.

**One odd product never fails the run.** It is skipped and counted under
`skippedProducts`.

**`maxProductsPerStore` counts rows returned.** Products filtered out by
`onlyOnSale` do not use it up (see `onlyChanges` above for the one exception).

**A cut-short store is flagged, not passed off as complete.** If a later page
of a store's feed fails, the store is marked `truncated: true` in the run
report and named in the status message. A store that answers "too many
requests" is retried once, after the wait it asks for (at most 10 seconds).

**Every run publishes a report** to the key-value store under `RUN_REPORT`:
products, currency and `truncated` per store, requests, and stores not reached.

***

### Questions, or a store that returns nothing?

Open an issue with the store link.

# Actor input Schema

## `stores` (type: `array`):

One store per line - the store's domain or any link on it.

## `maxProductsPerStore` (type: `integer`):

Stop after delivering this many rows from each store (rows filtered out by 'Only discounted products' do not count). With 'Only changes' on, it caps the products checked instead, so a quiet store is not read to its last page on every run.

## `onlyOnSale` (type: `boolean`):

Return only products whose price is genuinely below the compare-at price.

## `onlyChanges` (type: `boolean`):

Return only products that are new, or whose price or compare-at price changed since the last run that read the store completely. Rows carry changeType (NEW/UPDATED) and previousPrice. The first run returns every product as NEW. YouCan's feed has no stock level, so stock changes cannot be detected.

## `stateStoreName` (type: `string`):

Named key-value store that keeps each store's last snapshot for 'Only changes'. Use a different name to keep separate monitors apart.

## Actor input object example

```json
{
  "stores": [
    "tqnyweb.online",
    "arabicsouk.shop"
  ],
  "maxProductsPerStore": 1000,
  "onlyOnSale": false,
  "onlyChanges": false,
  "stateStoreName": "youcan-catalog-state"
}
```

# Actor output Schema

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

No description

## `runReport` (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 = {
    "stores": [
        "tqnyweb.online",
        "arabicsouk.shop"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("abdulwhab95/youcan-store-catalog-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 = { "stores": [
        "tqnyweb.online",
        "arabicsouk.shop",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("abdulwhab95/youcan-store-catalog-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 '{
  "stores": [
    "tqnyweb.online",
    "arabicsouk.shop"
  ]
}' |
apify call abdulwhab95/youcan-store-catalog-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,abdulwhab95/youcan-store-catalog-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/gfbBBGAdMZoaTqowZ/builds/txcjZwiIJdOGoAGE2/openapi.json
