# Yassir Marketplace Scraper (delivery.yassir.com) (`hamza325/yassir-marketplace-scraper`) Actor

Scrape Yassir markets and restaurants in Algeria, Tunisia, Morocco and Senegal: discover every store serving a delivery point or city, then pull a market's full catalogue or a restaurant's menu. No login needed.

- **URL**: https://apify.com/hamza325/yassir-marketplace-scraper.md
- **Developed by:** [Hamza Abbad](https://apify.com/hamza325) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.47 / 1,000 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

## Yassir Marketplace Scraper

[Yassir](https://delivery.yassir.com) is the on-demand delivery platform of **Algeria, Tunisia, Morocco and Senegal**: groceries from its own *Yassir Market* stores, meals from the restaurants it partners with, and goods from independent shops. This Actor turns that catalogue into a dataset — every store around a place, and every product or menu item one store sells, with prices, discounts, stock, categories and photos. No login and no Yassir account, quick to start and cheap to run at scale.

Yassir runs three kinds of store under one roof, and the Actor handles all of them:

- **Markets** — grocery dark stores such as *Yassir Market Chéraga*, with catalogues of several thousand products.
- **Restaurants** — kitchens with a menu organised in sections.
- **Shops** — independent sellers (florists, butchers, greengrocers) with a smaller catalogue.

Two tasks cover the work: **discover** which stores exist around a place, then **open** one store — its product catalogue or its menu. One catalogue serves all four countries, so a delivery point or a city decides which one your run receives; nothing needs to be configured per country.

### What you can scrape

| Task | What it returns |
| --- | --- |
| **Discover stores** | Every market, restaurant and shop serving a delivery point (or living in a city), with its kind, address and coordinates, minimum order, delivery fee, delivery estimate, rating and review count, opening state, category labels, logo and cover photo |
| **Market catalogue** | One row per product: name, description, price and pre-discount price, discount percent, stock state and quantity, full category path, photos |
| **Restaurant menu** | One row per menu item: name, description, price, discount, add-on rules, the section path it sits in, photo |

Each task produces one kind of row and nothing else: **Discover stores** emits store rows, **Market catalogue** emits product rows, **Restaurant menu** emits menu-item rows. The dataset tabs **Stores**, **Products** and **Menu items** show each kind on its own columns, and every catalogue row carries the store's **ID** so you can join it to the store row from a discovery run.

### Why this Actor

- **The store list the website doesn't show.** Yassir's site has no market directory — you can only reach a market if you already have its link. The Actor finds them for you: give it a delivery point or a city, and it returns every store that serves it, delivery terms included.
- **Both verticals, one Actor.** Markets and restaurants share an id space but very different data. One Actor discovers both, then scrapes a market's catalogue or a restaurant's menu — routed automatically from the link you paste.
- **Whole catalogues, not samples.** A market run pages through the store's catalogue until the last product (a 3 000-product market takes about 20 seconds), instead of stopping at the first screen.
- **Flat, uniform output.** Every row is a scalar or a list of scalars — no nested objects — so the dataset table shows clean values instead of "N fields" badges.
- **Prices you can sum.** Prices are numbers parsed from Yassir's own price text, the pre-discount price travels next to it, and the store's currency is on every row.
- **No account needed.** Everything here is public on Yassir, so there is nothing to sign up for and nothing to log in to. A run starts in seconds and costs little to scale.

#### Where it goes beyond one store page

Yassir's website has no store directory: you can only open a store you already have a link to. This Actor finds them first, then reads them.

| Surface | What a run gives you | What it is for |
| --- | --- | --- |
| **Discover stores** (a delivery point or a city) | every market, restaurant and shop that serves it — with minimum order, delivery fee and estimate, rating, review count, opening state, logo and cover | build the store list the site never publishes |
| **Market catalogue** | product rows with price, pre-discount price, discount percent, stock and quantity, category path and photos | grocery price comparison over time |
| **Restaurant menu** | menu items with price, discount, add-on rules and the section they sit in | menu price tracking per restaurant |
| **One join key** | every catalogue and menu row carries its store ID | join products and menus to the store rows from a discovery run |

### Quick start

1. Copy a market or restaurant link from your browser — the address bar of a store page looks like `https://delivery.yassir.com/fr/market/6478b27046ac0d1ddb6d0eb0/Yassir-market-Cheraga`.

2. Click **Try actor** and paste it into **Store URL** (`pageUrl`). The minimum valid input is:

   ```json
   { "pageUrl": "https://delivery.yassir.com/fr/market/6478b27046ac0d1ddb6d0eb0/Yassir-market-Cheraga" }
   ```

3. Click **Start**. Results land in the **Dataset** tab, one row per product (or per menu item).

To start without a link, switch **What to scrape** (`startMode`) to **Discover stores** and give a delivery point:

```json
{ "startMode": "stores", "location": "36.7220,3.1857", "storeType": "market" }
```

Every store in that result carries its **store ID** (`id`). Paste a few of those ids into **Store IDs** (`storeIds`) for the next run — that is the two-step workflow most people settle on.

### Tutorial: a real workflow

#### 1. Find the markets around a neighbourhood

Set **What to scrape** to **Discover stores**, give a delivery point, and keep only markets:

```json
{ "startMode": "stores", "location": "36.7220,3.1857", "storeType": "market", "maxItems": 100 }
```

Each row tells you whether the store is open right now, what it charges for delivery, its minimum order, and the delivery window it quotes — enough to decide which ones deserve a full catalogue run.

#### 2. Pull a market's whole catalogue

Paste the store link from the previous step (or its **store ID**):

```json
{ "startMode": "products", "storeIds": ["6478b27046ac0d1ddb6d0eb0"], "maxItems": 0 }
```

`maxItems: 0` means no cap — the run walks the catalogue to its last page. Every product row carries the full category path (for example `Fruits et légumes › Légumes`), so a spreadsheet pivot gives you the store's assortment by department without extra work.

#### 3. Walk a restaurant's menu

Restaurant links work the same way:

```json
{ "pageUrl": "https://delivery.yassir.com/fr/restaurant/alger/6543ae155d22d78503838839/Maharaja-Mohammadia" }
```

The dataset carries one row per menu item, with the section it belongs to (`Grillades Au Four D'argile`, `Spécialités Poulet`, …), the price, and the add-on rules where the item is customisable. Sub-sections appear as a two-level path (`Boissons Fraiches › Fraîcheur Jus & Milkshakes`).

#### 4. Discover a whole city, then scrape its markets

Leave the delivery point empty and name the cities instead — the Actor resolves each city's own coordinate, so there are no coordinates to look up:

```json
{ "startMode": "stores", "citySlugs": ["alger-centre", "oran"], "storeType": "market" }
```

Then feed the ids that come back into a catalogue run. Schedule the pair and you have a daily snapshot of every Yassir market in those cities.

### Input

**Store URL** (`pageUrl`) is the one field a single-store run needs; everything else has a default. The Console form shows it on its own, followed by the collapsible **Task (advanced)**, **Store selection** and **Performance and limits** sections.

#### Main input

| Label (`key`) | Description | Default |
| --- | --- | --- |
| **Store URL** (`pageUrl`) | A market or restaurant link pasted from the address bar. A market link scrapes that market's catalogue, a restaurant link scrapes that restaurant's menu, a bare 24-character store id is routed by the store's own kind. | — |
| **Store URLs** (`storeUrls`) | Several store links in one run — market links, restaurant links, or a mix. | — |
| **Store IDs** (`storeIds`) | The same selection as bare ids, i.e. the **store ID** column of a previous discovery run. | — |

#### Task (advanced)

| Label (`key`) | Description | Default |
| --- | --- | --- |
| **What to scrape** (`startMode`) | `auto` (default) runs what the URL names. `stores` discovers every store in an area. `products` forces a market catalogue, `menus` forces a restaurant menu — each refuses a store of the other kind instead of returning an empty dataset. `directUrls` routes a mixed list of links by each store's kind. | `auto` |

#### Discovery (stores mode)

| Label (`key`) | Description | Default |
| --- | --- | --- |
| **Delivery point** (`location`) | A `lat,lng` pair — every market, restaurant and shop that delivers there. Example: `36.7220,3.1857`. | — |
| **Cities** (`citySlugs`) | City slugs such as `alger-centre`, `oran`, `tunis`, `casablanca`, `dakar`. Each city's coordinate is resolved during the run. Empty, with no delivery point, means every city Yassir lists. | — |
| **Country** (`country`) | ISO code the discovered stores must belong to — `DZ`, `TN`, `MA` or `SN` — matched against each store's own country. Leave `ALL` and the delivery point decides. | `ALL` |
| **Store kinds** (`storeType`) | Which kinds a discovery run emits: **All three**, **Markets only**, **Restaurants only**, **Shops only**. | `all` |

#### Limits & performance

| Label (`key`) | Description | Default |
| --- | --- | --- |
| **Max results** (`maxItems`) | Maximum rows to push, applied per row so a run stops exactly at the number you set. `0` = no cap. | `1000` |
| **Max requests** (`maxPages`) | Cap on pages fetched, pagination included. `0` = no cap — a catalogue run walks the store to its last page. | `0` |
| **Max requests per minute** (`maxRequestsPerMinute`) | Throttle for the whole run. The polite default keeps the Actor a good citizen; a lower value is safer when several Actors run at once. | `60` |
| **Include out-of-stock products** (`includeOutOfStock`) | Keep products the store currently cannot sell (zero stock or marked unavailable). Turn it off to keep only what is buyable right now. | `true` |

#### Output & debugging

| Label (`key`) | Description | Default |
| --- | --- | --- |
| **Language** (`locale`) | Sent as the preferred language. Store names have translations; product and menu text is merchant-entered and never translated. | `fr` |
| **Deduplicate rows** (`dedupe`) | Drop rows already pushed in this run. | `true` |
| **Debug: include raw source record** (`debugIncludeRaw`) | Add a `raw` field with the original source record to each row — useful while you map a field you need; makes the dataset much larger. | `false` |

### Output

One JSON object per row, in the **Dataset** tab. Every field is a scalar or a list of scalars, and each task writes one row kind only:

| Type | Written by | Meaning |
| --- | --- | --- |
| `yassir_store` | **Discover stores** | One market, restaurant or shop |
| `yassir_market_product` | **Market catalogue** | One product in a market's catalogue |
| `yassir_menu_item` | **Restaurant menu** | One item on a restaurant's menu |

The **Stores**, **Products** and **Menu items** dataset tabs show one kind at a time, each on its own columns. A catalogue row never repeats its store's name, address, country or link — it carries the store's **ID** (`storeId`) and its own currency, which joins it to the store row from a discovery run.

#### Store row

```json
{
  "__type": "yassir_store",
  "id": "6478b27046ac0d1ddb6d0eb0",
  "title": "Yassir market Cheraga",
  "url": "https://delivery.yassir.com/fr/market/6478b27046ac0d1ddb6d0eb0/Yassir-market-Cheraga",
  "storeType": "market",
  "cityName": "Alger Centre",
  "minimumCart": 1000,
  "deliveryCharge": 300,
  "rating": 4.21,
  "reviewCount": 5785,
  "availability": "open",
  "currency": "DZD",
  "countryCode": "DZ",
  "scrapedAt": "2026-11-04T20:02:49.082Z"
}
```

| Column | What it holds |
| --- | --- |
| `title` | Store name |
| `nameFr` / `nameAr` / `nameEn` | Store name per language, when Yassir carries translations |
| `storeType` | `market`, `restaurant` or `shop` |
| `url` | The store's page on delivery.yassir.com |
| `cityName`, `citySlug` | City as the store states it, and the Yassir city slug it was discovered under |
| `address`, `lat`, `lng` | Street address and coordinates |
| `minimumCart`, `deliveryCharge`, `freeDelivery` | Basket minimum and delivery terms, in `currency` |
| `deliveryTime` | Delivery window the store quotes (for example `35-45Mins`) |
| `rating`, `reviewCount` | Average rating (0–5) and how many reviews it is based on |
| `availability` | `open` or `closed` at the time of the run |
| `productCount` | The store's own product count — it can exceed the number of rows a catalogue run returns, because the store counts items it does not publish |
| `cuisines` | Category labels Yassir files the store under (`Épicerie`, `Fruits et Légumes`, or a cuisine for restaurants) |
| `imageUrl`, `logoUrl` | Cover photo and logo |
| `uniqueCode`, `countryCode`, `currency` | Store code, country and price currency |

#### Product row

```json
{
  "__type": "yassir_market_product",
  "id": "6478b27046ac0d1ddb6d0eb0:6accab7fd4873c0e3d0369d4",
  "productId": "6accab7fd4873c0e3d0369d4",
  "storeId": "6478b27046ac0d1ddb6d0eb0",
  "title": ".Aubergine 500g.",
  "price": 58,
  "originalPrice": 58,
  "discountPercent": null,
  "currency": "DZD",
  "inStock": true,
  "quantity": 2,
  "categoryName": "Légumes",
  "parentCategoryName": "Fruits et légumes",
  "categoryPath": "Fruits et légumes › Légumes",
  "imageUrl": "https://storage.googleapis.com/lmd-marketplace-uploads-prd/images/496d1d29-67f6-42f6-9883-f9e762b6df34.jpeg",
  "scrapedAt": "2026-11-04T20:02:49.082Z"
}
```

| Column | What it holds |
| --- | --- |
| `id` | Store + product, so the same product listed by two markets survives as two rows |
| `productId` | The product's own id |
| `title`, `description` | Product name and description (HTML stripped) |
| `price`, `originalPrice`, `discountPercent` | Current price, pre-discount price, and the discount as a percent |
| `currency` | Currency of the store's prices, exactly as the store states it — `DZD`, `TND`, `MAD`, `XOF` (Senegal; some stores write `Fr`) |
| `inStock`, `quantity` | Whether it is buyable now, and the stock quantity the store reports |
| `categoryName`, `parentCategoryName`, `categoryPath` | Leaf category, its parent, and the full path |
| `imageUrl`, `images`, `imageCount` | Main photo plus the full gallery |
| `storeId` | The market this product belongs to — join it to the store row of a discovery run |

#### Menu item row

```json
{
  "__type": "yassir_menu_item",
  "id": "6543ae155d22d78503838839:6543ae155d22d7232783885b",
  "productId": "6543ae155d22d7232783885b",
  "storeId": "6543ae155d22d78503838839",
  "title": "Chicken tandoori",
  "nameFr": "Chicken tandoori",
  "nameAr": "Chicken tandoori",
  "nameEn": "Chicken tandoori",
  "description": "Cuisses de poulet marinés dans un lait caillé avec des épices typiquement indiennes et grille au charbon de bois.",
  "price": 1350,
  "originalPrice": 1350,
  "discountPercent": null,
  "currency": "DZD",
  "available": true,
  "sectionName": "Grillades Au Four D'argile",
  "sectionPath": "Grillades Au Four D'argile",
  "imageUrl": "https://food.yassir.io/uploads/images/food/1766155244243d7e07c0d-d619-4414-8255-cd7cd32353a8.webp",
  "images": ["https://food.yassir.io/uploads/images/food/1766155244243d7e07c0d-d619-4414-8255-cd7cd32353a8.webp"],
  "hasAddons": false,
  "minAddons": 0,
  "maxAddons": 0,
  "scrapedAt": "2026-11-05T18:08:33.400Z"
}
```

| Column | What it holds |
| --- | --- |
| `id` | Restaurant + item |
| `productId` | The item's own id |
| `storeId` | The restaurant this item belongs to — join it to the store row of a discovery run |
| `title` | Item name |
| `nameFr` / `nameAr` / `nameEn` | Item name per language, as the restaurant supplied them |
| `description` | Item description (HTML stripped) |
| `price`, `originalPrice`, `discountPercent`, `currency` | Pricing, same shape as product rows |
| `available` | Whether the item is orderable right now |
| `sectionName`, `sectionPath` | Menu section, and the two-level path when the section has sub-sections |
| `hasAddons`, `minAddons`, `maxAddons` | Whether the item is customisable and the add-on bounds |
| `imageUrl`, `images` | Item photo |

### Notes and limits

- **A market's own product count can exceed what a run returns.** Yassir counts items it does not publish (for *Yassir Market Chéraga*: 4 969 counted against 2 976 listed). The Actor returns what the shop actually publishes and reports the store's own figure in `productCount`.
- **Discovery cost is per city.** Each city walks its own store list; a country-wide discovery means every city Yassir lists. Narrow it with **Cities** (`citySlugs`) or a **Delivery point** (`location`).
- **Markets and restaurants do not mix.** A restaurant has no catalogue and a market has no menu. An explicit **Market catalogue** run pointed at a restaurant (or the reverse) is reported in the run log and skipped, instead of producing an empty dataset that looks like a real answer.
- **Four countries, one catalogue.** Stores answer for Algeria, Tunisia, Morocco and Senegal with their own country code and their own currency (`DZD`, `TND`, `MAD`, and `XOF` — which some Senegalese stores label `Fr`), so a run that mixes countries stays correct. The platform's city list is shared, which is why **Country** (`country`) exists to pin a multi-city walk to one of them.
- **Only Yassir's market stores publish catalogues.** Restaurants publish menus, and independent shops (`storeType: "shop"`) publish no catalogue at all. A catalogue run pointed at a shop ends with a message saying so rather than an empty dataset.
- **Merchant text is never translated.** Product and menu names are entered once by the shop, usually in French or Arabic, whatever the **Language** (`locale`) input says.
- **Live data is point-in-time.** Prices, stock and opening state reflect the moment of the run.

### FAQ

**Do I need a Yassir account or a login?**
No. Everything the Actor reads is published to any visitor of Yassir's store pages — every run is anonymous.

**The website doesn't list its markets. How do I find them?**
That is exactly what **Discover stores** (`startMode: "stores"`) is for: give a delivery point or a city and it returns every store that serves it. From then on, work with store ids or links.

**Why did a market return fewer products than the store claims?**
The store counts everything in its back office, including items it does not publish or currently cannot sell. `productCount` reports the store's own figure; the rows are what the shop actually lists.

**Can I get only products that are in stock?**
Turn **Include out-of-stock products** (`includeOutOfStock`) off. The default keeps everything, which is what you want for an assortment snapshot.

**Can I run this on a schedule?**
Yes. Rows carry a stable `id` (`store:product`), so writing them into a table replaces instead of duplicating — schedule a discovery plus a catalogue run and diff the prices.

**How large can a run get?**
A single market holds up to a few thousand products. Use **Max results** (`maxItems`) to cap a test run; `0` on both limits collects everything the store publishes.

### Contact

Bug reports, feature requests, or a custom scraper for a site not yet covered? Open an issue on the Actor's Apify Console page or message the maintainer directly there.

# Changelog

This Actor's version history is a separate document: https://apify.com/hamza325/yassir-marketplace-scraper/changelog.md

# Actor input Schema

## `pageUrl` (type: `string`):

A Yassir store link, pasted straight from the browser's address bar. The Actor detects what it is and scrapes the matching catalogue: a market link (`https://delivery.yassir.com/fr/market/{id}/{slug}`) pulls that market's products, a restaurant link (`https://delivery.yassir.com/fr/restaurant/{city}/{id}/{slug}`) pulls that restaurant's menu. A bare 24-character store id works too. To scrape several stores at once, list them in **Store URLs** below. Leave this empty and pick **Discover stores** instead if you don't have links yet.

## `startMode` (type: `string`):

Task selector. `auto` (default) runs what the URL field names — a market link scrapes its catalogue, a restaurant link scrapes its menu, a bare id is routed by the store's own type. `stores` discovers every market/restaurant/shop in an area instead of scraping one. `products` and `menus` force one catalogue kind and refuse a store of the other kind (instead of emitting an empty dataset). `directUrls` routes a mixed list of links by store type.

## `storeUrls` (type: `array`):

One or more Yassir store links — market links, restaurant links, or a mix. Use with **Market catalogue** (`products`), **Restaurant menu** (`menus`) or **Specific store links** (`directUrls`, which routes each link by the store's own type). Paste them from the browser's address bar.

## `storeIds` (type: `array`):

The same selection as **Store URLs**, but as bare 24-character ids — the `id` field of a `yassir_store` row from a previous run. Handy for feeding a discovery run's output back into a catalogue run.

## `location` (type: `string`):

Used by **Discover stores** (`stores`). A `lat,lng` pair — lists every market, restaurant and shop that delivers there, with delivery fee, minimum cart, rating and coordinates. Example: `36.7220,3.1857` (Bab Ezzouar, Alger). Combine with **Cities** to union both sources, or leave both empty to walk every city Yassir publishes.

## `citySlugs` (type: `array`):

Used by **Discover stores** (`stores`). City slugs from `https://food.yassir.io/site/cities` — e.g. `alger-centre`, `oran`, `tunis`, `casablanca`, `dakar`. Each city's own coordinate is resolved at run time, so no coordinates need to be supplied. Empty (with no delivery point) means every city the platform lists — a long run.

## `country` (type: `string`):

Used by **Discover stores** (`stores`). ISO code the discovered stores must belong to, matched against each store's own country — `DZ`, `TN`, `MA`, `SN`. Leave `ALL` (the default) and the delivery point decides: Yassir serves all four countries from one catalogue. Set a code only to pin a multi-city walk to one country.

## `storeType` (type: `string`):

Which kinds **Discover stores** (`stores`) emits. Markets are Yassir's grocery dark stores (they have a product catalogue); restaurants have menus; shops are independent sellers (florists, butchers) with a small catalogue.

## `includeOutOfStock` (type: `boolean`):

Market catalogues list products the store currently can't sell (zero stock or marked unavailable). Keep them on (default) for a full assortment snapshot; turn them off to keep only what is buyable right now.

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

Stop after this many rows. `0` = no limit. Applied per row, so a run stops exactly at this number. One market can hold several thousand products — raise this for full catalogues.

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

Cap on pages fetched, pagination included. `0` = no cap, which is the default: a market's catalogue is walked to its last page. Set a number to bound a large discovery run.

## `maxRequestsPerMinute` (type: `integer`):

Throttle for the whole run. Default 60 — the API answers fast and this keeps the Actor a well-behaved client. Lower it if you run several Actors at once against the same host.

## `dedupe` (type: `boolean`):

Drop repeated rows within a run (same row id). Keep on unless you deliberately union overlapping areas and want the duplicates.

## `locale` (type: `string`):

Sent as `Accept-Language`. Store names have translations; product names, descriptions and menu items are merchant-entered and are never translated by Yassir, so this mostly affects nothing on product rows.

## `debugIncludeRaw` (type: `boolean`):

Add a `raw` field with the original source record to each row

## Actor input object example

```json
{
  "pageUrl": "https://delivery.yassir.com/fr/market/6478b27046ac0d1ddb6d0eb0/Yassir-market-Cheraga",
  "startMode": "auto",
  "storeUrls": [
    "https://delivery.yassir.com/fr/market/6478b27046ac0d1ddb6d0eb0/Yassir-market-Cheraga"
  ],
  "storeIds": [
    "6478b27046ac0d1ddb6d0eb0"
  ],
  "location": "36.7220,3.1857",
  "citySlugs": [
    "alger-centre",
    "oran"
  ],
  "country": "ALL",
  "storeType": "all",
  "includeOutOfStock": true,
  "maxItems": 1000,
  "maxPages": 0,
  "maxRequestsPerMinute": 60,
  "dedupe": true,
  "locale": "fr",
  "debugIncludeRaw": false
}
```

# Actor output Schema

## `rows` (type: `string`):

Default dataset containing every store, product and menu item the Actor pushed during the run — one flat row each, in the Rows view.

# 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 = {
    "pageUrl": "https://delivery.yassir.com/fr/market/6478b27046ac0d1ddb6d0eb0/Yassir-market-Cheraga",
    "storeUrls": [
        "https://delivery.yassir.com/fr/market/6478b27046ac0d1ddb6d0eb0/Yassir-market-Cheraga"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hamza325/yassir-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 = {
    "pageUrl": "https://delivery.yassir.com/fr/market/6478b27046ac0d1ddb6d0eb0/Yassir-market-Cheraga",
    "storeUrls": ["https://delivery.yassir.com/fr/market/6478b27046ac0d1ddb6d0eb0/Yassir-market-Cheraga"],
}

# Run the Actor and wait for it to finish
run = client.actor("hamza325/yassir-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 '{
  "pageUrl": "https://delivery.yassir.com/fr/market/6478b27046ac0d1ddb6d0eb0/Yassir-market-Cheraga",
  "storeUrls": [
    "https://delivery.yassir.com/fr/market/6478b27046ac0d1ddb6d0eb0/Yassir-market-Cheraga"
  ]
}' |
apify call hamza325/yassir-marketplace-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hamza325/yassir-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/aDvXNmDH57LXSa4nE/builds/bBOR57wYipzSeZBCh/openapi.json
