{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopee Scraper",
    "description": "⚡ From $0.10/1K — No-Login 8-Country Shopee Scraper (VN, ID, TH, PH, MY, SG, TW, BR): Exact Unrounded Sold Count, Live Prices, Stock, Vouchers, Official Shops, Shopee Live Bag & Affiliate Commission Links. MCP-ready. Zero cookies.",
    "version": "2.0",
    "x-build-id": "qDhHaZK91pmYVik8D"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nghianguyen2~shopee-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nghianguyen2-shopee-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/nghianguyen2~shopee-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nghianguyen2-shopee-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/nghianguyen2~shopee-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nghianguyen2-shopee-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": {
          "action": {
            "title": "1. Extraction Mode (13 Shopee Modes)",
            "enum": [
              "auto_start_urls",
              "product_detail",
              "batch_products",
              "product_categories",
              "hot_picks_bestsellers",
              "daily_discover_feed",
              "search_keywords",
              "shop_profile",
              "live_bag_items",
              "live_discover_rooms",
              "live_stream_info",
              "live_host_status",
              "affiliate_link_generator"
            ],
            "type": "string",
            "description": "Choose which Shopee extraction mode to run. 'auto_start_urls' automatically detects Shopee product URLs, shop IDs, and Shopee Live session IDs.",
            "default": "auto_start_urls"
          },
          "country": {
            "title": "2. Shopee Country Marketplace (8 Countries)",
            "enum": [
              "vn",
              "id",
              "th",
              "ph",
              "my",
              "sg",
              "tw",
              "br"
            ],
            "type": "string",
            "description": "Select the target Shopee marketplace (or auto-detected from URL domain).",
            "default": "vn"
          },
          "startUrls": {
            "title": "3. Start URLs / Product URLs / shop_id.item_id Pairs",
            "type": "array",
            "description": "Paste Shopee product URLs (e.g. https://shopee.vn/product/37251933/41412722725 or https://shopee.vn/...-i.37251933.41412722725), shop_id/item_id pairs ('37251933/41412722725'), or Shopee Live session URLs.",
            "default": [
              "https://shopee.vn/product/37251933/41412722725",
              "https://shopee.vn/product/37251933/23289211015"
            ],
            "items": {
              "type": "string"
            }
          },
          "productUrl": {
            "title": "4. Single Product URL (for product_detail / product_categories)",
            "type": "string",
            "description": "Shopee product URL or shop_id/item_id pair.",
            "default": "https://shopee.vn/product/37251933/41412722725"
          },
          "shopId": {
            "title": "5. Shop ID (for shop_profile / live_host_status / product_detail)",
            "type": "string",
            "description": "Numeric Shopee shop_id (e.g. 37251933 for Unilever Official Mall).",
            "default": "37251933"
          },
          "itemId": {
            "title": "6. Item ID (optional if productUrl is provided)",
            "type": "string",
            "description": "Numeric Shopee item_id (e.g. 41412722725).",
            "default": "41412722725"
          },
          "keyword": {
            "title": "7. Search Keyword (for search_keywords)",
            "type": "string",
            "description": "Keyword for Shopee search autocomplete, top item IDs, and ads revenue / PC2 USD scores.",
            "default": "iphone"
          },
          "presetKey": {
            "title": "8. Category Preset (for hot_picks_bestsellers)",
            "enum": [
              "beauty_hair",
              "beauty_skin",
              "home_living",
              "kitchen_appliance",
              "tools_hardware",
              "sports_outdoor"
            ],
            "type": "string",
            "description": "Category vertical preset for Shopee Hot Picks bestsellers.",
            "default": "beauty_hair"
          },
          "sessionId": {
            "title": "9. Shopee Live Session ID (for live_bag_items / live_stream_info)",
            "type": "string",
            "description": "Numeric Shopee Live session_id or share URL (leave default to use active country seed session).",
            "default": "44060946"
          },
          "affiliateId": {
            "title": "10. Shopee Affiliate ID (for affiliate_link_generator & commission)",
            "type": "string",
            "description": "Your Shopee Affiliate ID (e.g. 17321010010) to embed into generated Universal & Deep Tracking Links.",
            "default": "17321010010"
          },
          "maxItems": {
            "title": "11. Max Items to Extract",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of items to return (1 - 50).",
            "default": 10
          },
          "rapidapiKey": {
            "title": "12. Optional RapidAPI Key (High-Throughput Cloud Gateway)",
            "type": "string",
            "description": "Optional RapidAPI key from https://rapidapi.com/Techssss/api/shopee-e-commerce-live-affiliate-intelligence for dedicated edge routing."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}