{
  "openapi": "3.0.1",
  "info": {
    "title": "Ounass Scraper",
    "description": "Scrape Ounass (ounass.ae) - luxury fashion e-commerce for the UAE and GCC. Search or browse by category across Women/Men/Kids, filter by designer, price, colour, and sale status, or fetch full product details (description, sizes, stock, images) by URL.",
    "version": "1.0",
    "x-build-id": "GWrZGNLY7H2o3SKO4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~ounass-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-ounass-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/crawlerbros~ounass-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-ounass-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/crawlerbros~ounass-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-ounass-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byCategory",
              "byProductUrls"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Free-text search, e.g. designer name or product keyword (`dress`, `gucci bag`).",
            "default": "dress"
          },
          "country": {
            "title": "Country / market",
            "enum": [
              "ae",
              "sa",
              "om",
              "kw",
              "bh",
              "qa"
            ],
            "type": "string",
            "description": "Which Ounass market domain to scrape. Prices and currency follow the selected market.",
            "default": "ae"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "ar"
            ],
            "type": "string",
            "description": "Storefront language. Arabic uses each market's Arabic-language domain (e.g. `ar.ounass.ae`) — product names, designer names, and colours come back in Arabic, with the English equivalents still populated in the `*English` fields where available. Applies to all modes (byProductUrls resolves language from each URL's own domain when recognizable).",
            "default": "en"
          },
          "department": {
            "title": "Department (mode=search, byCategory)",
            "enum": [
              "women",
              "men",
              "kids"
            ],
            "type": "string",
            "description": "Product department to search/browse within.",
            "default": "women"
          },
          "category": {
            "title": "Category (mode=byCategory)",
            "enum": [
              "",
              "clothing",
              "bags",
              "shoes",
              "jewellery",
              "accessories",
              "beauty",
              "sale",
              "new-in",
              "pre-loved"
            ],
            "type": "string",
            "description": "Category to browse within the selected department. Not every category exists under every department (e.g. Jewellery/Beauty are women-focused) — the run reports 0 results with a clear status message if the combination doesn't exist.",
            "default": ""
          },
          "subCategory": {
            "title": "Sub-category (mode=byCategory)",
            "type": "string",
            "description": "Optional deeper listing under the selected category, e.g. `dresses` under Clothing, `handbags` under Bags, `sneakers` under Shoes. Free text — spaces are converted to hyphens automatically. Not every sub-category exists under every department/category; the run reports 0 results with a clear status message if the combination doesn't exist."
          },
          "productUrls": {
            "title": "Product URLs (mode=byProductUrls)",
            "type": "array",
            "description": "Full Ounass product page URLs (any market domain), e.g. `https://www.ounass.ae/shop-...-219308301_2709.html`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "designer": {
            "title": "Filter by designer",
            "type": "string",
            "description": "Only keep products whose designer/brand name contains this text (case-insensitive). Applies to all modes."
          },
          "color": {
            "title": "Filter by colour",
            "type": "string",
            "description": "Only keep products whose colour contains this text (case-insensitive), e.g. `black`, `red`."
          },
          "size": {
            "title": "Filter by size",
            "type": "string",
            "description": "Only keep products that offer a matching size (case-insensitive, e.g. `M`, `42`, `One Size`). Applies to all modes."
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Only keep products priced at or above this amount, in the selected market's currency."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Only keep products priced at or below this amount, in the selected market's currency."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "popularity",
              "newness",
              "mostWishlisted",
              "lowestPrice",
              "highestPrice"
            ],
            "type": "string",
            "description": "Sort order for search/category listings.",
            "default": "popularity"
          },
          "minDiscountPercent": {
            "title": "Minimum discount percent",
            "enum": [
              "",
              "10",
              "20",
              "30",
              "40",
              "50",
              "60",
              "70",
              "80"
            ],
            "type": "string",
            "description": "Only keep products discounted by at least this percentage off. Matches Ounass's own \"Discount\" listing filter buckets. Applies to all modes.",
            "default": ""
          },
          "onSaleOnly": {
            "title": "On sale / clearance only",
            "type": "boolean",
            "description": "Only keep products that are on clearance, promotion, or have a discount.",
            "default": false
          },
          "inStockOnly": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Only keep products that are currently in stock.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of products to return.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}