{
  "description": "Collect public Shopee shop profiles, item details, category trees and mall shops across eight markets.",
  "properties": {
    "categoryId": {
      "description": "Numeric category ID from categoryTree mode, or a category name. Leave blank for the whole tree (mode=categoryTree).",
      "editor": "textfield",
      "title": "Category ID or name",
      "type": "string"
    },
    "includeChildren": {
      "default": true,
      "description": "Include child categories (mode=categoryTree). When categoryId is blank, false returns only top-level categories.",
      "prefill": false,
      "title": "Include child categories",
      "type": "boolean"
    },
    "includeFeaturedItem": {
      "default": true,
      "description": "Add the featured product card published on the shop page; on itemByUrl, merge it when the item matches.",
      "prefill": false,
      "title": "Include featured product",
      "type": "boolean"
    },
    "includeShopCategories": {
      "default": false,
      "description": "Add the shop's own category list to the shop record (mode=shopProfile).",
      "prefill": false,
      "title": "Include shop categories",
      "type": "boolean"
    },
    "itemUrl": {
      "description": "Full item URL, -i.<shopid>.<itemid>, shopid.itemid, or /product/<shopid>/<itemid> (mode=itemByUrl).",
      "editor": "textfield",
      "title": "Item URL",
      "type": "string"
    },
    "market": {
      "description": "Shopee market. Used for categoryTree, mallShops and bare IDs; a full URL keeps its own market.",
      "editor": "select",
      "enum": [
        "MY",
        "SG",
        "PH",
        "TH",
        "VN",
        "ID",
        "BR",
        "TW"
      ],
      "enumTitles": [
        "Malaysia (shopee.com.my)",
        "Singapore (shopee.sg)",
        "Philippines (shopee.ph)",
        "Thailand (shopee.co.th)",
        "Vietnam (shopee.vn)",
        "Indonesia (shopee.co.id)",
        "Brazil (shopee.com.br)",
        "Taiwan (shopee.tw)"
      ],
      "prefill": "MY",
      "title": "Market",
      "type": "string"
    },
    "maxItems": {
      "default": 50,
      "description": "Hard cap on emitted records. Use 500 for a complete category tree.",
      "maximum": 500,
      "minimum": 1,
      "prefill": 1,
      "title": "Max records",
      "type": "integer"
    },
    "mode": {
      "default": "shopProfile",
      "description": "What to collect.",
      "editor": "select",
      "enumSuggestedValues": [
        "shopProfile",
        "itemByUrl",
        "categoryTree",
        "mallShops"
      ],
      "prefill": "shopProfile",
      "title": "Mode",
      "type": "string"
    },
    "shopUrl": {
      "description": "Shop username, numeric shop ID, /shop/<id> path, or full Shopee shop URL (mode=shopProfile).",
      "editor": "textfield",
      "prefill": "watsons.my",
      "title": "Shop URL or username",
      "type": "string"
    }
  },
  "required": [
    "mode"
  ],
  "schemaVersion": 1,
  "title": "Shopee Scraper Input",
  "type": "object"
}
