{
  "openapi": "3.0.1",
  "info": {
    "title": "Yassir Marketplace Scraper (delivery.yassir.com)",
    "description": "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.",
    "version": "0.0",
    "x-build-id": "bBOR57wYipzSeZBCh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hamza325~yassir-marketplace-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hamza325-yassir-marketplace-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/hamza325~yassir-marketplace-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hamza325-yassir-marketplace-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/hamza325~yassir-marketplace-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hamza325-yassir-marketplace-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "pageUrl": {
            "title": "Store URL",
            "type": "string",
            "description": "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": {
            "title": "What to scrape",
            "enum": [
              "auto",
              "stores",
              "products",
              "menus",
              "directUrls"
            ],
            "type": "string",
            "description": "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.",
            "default": "auto"
          },
          "storeUrls": {
            "title": "Store URLs",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "storeIds": {
            "title": "Store IDs",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Delivery point",
            "type": "string",
            "description": "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": {
            "title": "Cities",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "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.",
            "default": "ALL"
          },
          "storeType": {
            "title": "Store kinds",
            "enum": [
              "all",
              "market",
              "restaurant",
              "shop"
            ],
            "type": "string",
            "description": "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.",
            "default": "all"
          },
          "includeOutOfStock": {
            "title": "Include out-of-stock products",
            "type": "boolean",
            "description": "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.",
            "default": true
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "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.",
            "default": 1000
          },
          "maxPages": {
            "title": "Max requests",
            "minimum": 0,
            "type": "integer",
            "description": "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.",
            "default": 0
          },
          "maxRequestsPerMinute": {
            "title": "Max requests per minute",
            "minimum": 1,
            "type": "integer",
            "description": "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.",
            "default": 60
          },
          "dedupe": {
            "title": "Deduplicate rows",
            "type": "boolean",
            "description": "Drop repeated rows within a run (same row id). Keep on unless you deliberately union overlapping areas and want the duplicates.",
            "default": true
          },
          "locale": {
            "title": "Language",
            "enum": [
              "fr",
              "ar",
              "en"
            ],
            "type": "string",
            "description": "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.",
            "default": "fr"
          },
          "debugIncludeRaw": {
            "title": "Debug: include raw source record",
            "type": "boolean",
            "description": "Add a `raw` field with the original source record to each row",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}