{
  "openapi": "3.0.1",
  "info": {
    "title": "Mahally Scraper Saudi Arabia (2026) | Real-Time API",
    "description": "Real-time product data from Mahally's 10M+ listings across 50K+ Saudi stores. Extract seller WhatsApp numbers, prices, reviews, and store badges. Geo-filter by 50+ cities with radius search. Supports Arabic queries for better results. Built for lead gen, pricing intelligence, and B2B outreach.",
    "version": "0.0",
    "x-build-id": "vwlWWDQq7bpbRXojx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zen-studio~mahally-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zen-studio-mahally-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/zen-studio~mahally-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zen-studio-mahally-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/zen-studio~mahally-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zen-studio-mahally-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": {
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "Arabic text search query (e.g., 'ايفون' for iPhone). Either query or category is required."
          },
          "category": {
            "title": "Category",
            "enum": [
              "أزياء",
              "جمال وعناية",
              "أكل ومشروبات",
              "مستلزمات القهوة",
              "إلكترونيات وأجهزة",
              "البطاقات الرقمية",
              "لوازم السيارة",
              "نظارات وعدسات",
              "المنزل والحديقة",
              "كتب",
              "صيدلية",
              "قرطاسية",
              "الحيوانات الأليفة و مستلزماتها",
              "بأيدي محلية",
              "هدايا ومناسبات",
              "ألعاب وترفيه",
              "منتجات رقمية",
              "لوازم الرحلات والتخييم"
            ],
            "type": "string",
            "description": "Main product category. Either query or category is required."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City name in Arabic (e.g., 'الرياض' for Riyadh, 'جدة' for Jeddah). Combine with radiusKm for geo-based search."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Search radius in kilometers from city center (1-500km). Only applies when city is set. Supported cities: Riyadh, Jeddah, Medina, Dammam, and other major Saudi cities."
          },
          "priceMin": {
            "title": "Minimum Price (SAR)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum price in Saudi Riyals. Leave empty for no minimum."
          },
          "priceMax": {
            "title": "Maximum Price (SAR)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum price in Saudi Riyals. Leave empty for no maximum."
          },
          "minRating": {
            "title": "Minimum Rating",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "Minimum product rating from 1 to 5 stars. Leave empty to include all ratings."
          },
          "brand": {
            "title": "Brand",
            "type": "string",
            "description": "Brand name filter in Arabic (e.g., 'ابل - APPLE'). Leave empty for all brands."
          },
          "hasDiscount": {
            "title": "On Sale Only",
            "type": "boolean",
            "description": "Only include products currently on sale or discounted",
            "default": false
          },
          "madeInKSA": {
            "title": "Made in Saudi Arabia",
            "type": "boolean",
            "description": "Only include products made in Saudi Arabia",
            "default": false
          },
          "productType": {
            "title": "Product Type",
            "enum": [
              "product",
              "service",
              "digital",
              "codes",
              "food",
              "group_products"
            ],
            "type": "string",
            "description": "Filter by product type. Leave empty for all types."
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "relevance",
              "newest",
              "rating",
              "top_selling",
              "price_high",
              "price_low",
              "discount_high",
              "discount_low",
              "updated",
              "store_view"
            ],
            "type": "string",
            "description": "How to sort the search results",
            "default": "relevance"
          },
          "fetchDetails": {
            "title": "Fetch Product Details",
            "type": "boolean",
            "description": "Fetch full product details including SKU, stock quantity, sold count, and seller WhatsApp. Adds $0.0015 per product.",
            "default": true
          },
          "fetchStore": {
            "title": "Fetch Store Info",
            "type": "boolean",
            "description": "Fetch store details including badges, verification status, and ratings. Adds $0.0015 per unique store.",
            "default": true
          },
          "fetchReviews": {
            "title": "Fetch Store Reviews",
            "type": "boolean",
            "description": "Fetch customer reviews for each store. Increases run time and cost ($0.0008 per review page).",
            "default": true
          },
          "maxReviewsPerStore": {
            "title": "Max Reviews per Store",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of reviews to fetch per store (1-1000). Only applies when Fetch Store Reviews is enabled.",
            "default": 100
          },
          "maxProducts": {
            "title": "Max Products",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of products to return. Leave empty for all matching results (may be thousands)."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}