{
  "openapi": "3.0.1",
  "info": {
    "title": "Saudi Store Lead Finder: Salla & Zid (سلة وزد)",
    "description": "Find Salla and Zid stores in Saudi Arabia by niche and city. Get WhatsApp, phone, email, Instagram, TikTok and Snapchat, CR and VAT numbers, which ad pixels each store runs, and an opportunity score built for marketing agencies.",
    "version": "0.0",
    "x-build-id": "xZj4PNCLbJxpXZb3w"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/belalsarsour~saudi-store-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-belalsarsour-saudi-store-leads",
        "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/belalsarsour~saudi-store-leads/runs": {
      "post": {
        "operationId": "runs-sync-belalsarsour-saudi-store-leads",
        "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/belalsarsour~saudi-store-leads/run-sync": {
      "post": {
        "operationId": "run-sync-belalsarsour-saudi-store-leads",
        "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": {
          "keywords": {
            "title": "Niche keywords",
            "type": "array",
            "description": "What the stores sell, in Arabic or English. Each keyword is searched on Salla and Zid. Example: عطور, عبايات, قهوة مختصة, perfume.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities (optional)",
            "type": "array",
            "description": "Narrow the search to cities, e.g. الرياض, جدة, الدمام. Leave empty for all of Saudi Arabia.",
            "items": {
              "type": "string"
            }
          },
          "platforms": {
            "title": "Platforms",
            "type": "array",
            "description": "Which store platforms to search.",
            "items": {
              "type": "string",
              "enum": [
                "salla",
                "zid"
              ],
              "enumTitles": [
                "Salla (سلة)",
                "Zid (زد)"
              ]
            },
            "default": [
              "salla",
              "zid"
            ]
          },
          "storeUrls": {
            "title": "Store URLs (optional)",
            "type": "array",
            "description": "Already have a list? Paste store URLs here (salla.sa/store, shop.zid.store, or a custom domain). They are analyzed before any search results.",
            "items": {
              "type": "string"
            }
          },
          "includeContacts": {
            "title": "Unlock contacts (WhatsApp, phone, email)",
            "type": "boolean",
            "description": "On: contacts are delivered and charged as a separate event, only for stores where a contact was found. Off: a cheap preview run. You still see every store, its social accounts, ad pixels and opportunity score, plus hasWhatsapp / hasEmail flags, without the contact details.",
            "default": true
          },
          "includeSearchLeads": {
            "title": "Include stores found only in search",
            "type": "boolean",
            "description": "Some stores do not accept automated visits. When on, they are still delivered from their search result (name, description, any phone, social account or registration number shown there), marked source: search and verified: false. Salla stores on their own domain are confirmed through public DNS records. These leads have no pixel audit or opportunity score.",
            "default": true
          },
          "maxStores": {
            "title": "Max stores",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of store leads to deliver. You are only charged for delivered leads.",
            "default": 50
          },
          "maxSearchPagesPerQuery": {
            "title": "Search depth",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Google result pages per keyword (about 100 results each). Raise it for broad niches.",
            "default": 1
          },
          "onlyNonAdvertisers": {
            "title": "Only stores with no ad pixels",
            "type": "boolean",
            "description": "Keep only stores that run no Meta, TikTok, Snapchat, Google Ads or X pixel. Best list for agencies selling ad management.",
            "default": false
          },
          "minOpportunityScore": {
            "title": "Minimum opportunity score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "0 to 100. Higher means the store is missing more marketing basics (pixels, analytics, social links, WhatsApp).",
            "default": 0
          },
          "requireContact": {
            "title": "Only stores with a contact",
            "type": "boolean",
            "description": "Keep only stores where at least one WhatsApp, phone or email was found.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Stores analyzed in parallel.",
            "default": 10
          },
          "useResidentialFallback": {
            "title": "Retry blocked stores with Residential proxy",
            "type": "boolean",
            "description": "Stores that refuse the first visit are retried once through a Saudi residential connection (capped at maxStores attempts per run), so you get the full store data instead of a search-only result. Included in the price. On by default.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy used for search pages and for opening storefronts. Stores that cannot be opened are skipped, or delivered as search-only leads when 'Include stores found only in search' is on.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}