{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopee Scraper - Products & Prices in SG, TH, ID, PH",
    "description": "Scrape Shopee products and prices by keyword in Singapore, Thailand, Indonesia and the Philippines. Price, price range, shop, image and link, plus description, brand, images and variations from the product page. Only-new and price tracking. No login. Errors are free.",
    "version": "0.1",
    "x-build-id": "tn68aQzxcZuQ7xOii"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapewise~shopee-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapewise-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/scrapewise~shopee-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapewise-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/scrapewise~shopee-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapewise-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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "What to search on Shopee, one per line, in the language of the country you pick. Search works in Singapore, Thailand, Indonesia and the Philippines. Each term returns up to 'Max products per search' unique products.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "SG",
              "BR",
              "ID",
              "MY",
              "TH",
              "PH",
              "VN",
              "TW"
            ],
            "type": "string",
            "description": "Shopee country for the search terms. Search works in SG, TH, ID and PH; Brazil, Malaysia, Vietnam and Taiwan return a free error row because Shopee now asks visitors there to log in. Prices come in the country's currency (SGD, THB, IDR, PHP). Flash deals and trending products work in every country.",
            "default": "SG"
          },
          "flashDeals": {
            "title": "Flash deals",
            "type": "boolean",
            "description": "Adds the flash sale products running now in the chosen country, with deal price, price before the deal, discount, rating, units sold, stock and when the deal ends. Works in every country, Brazil, Malaysia and Vietnam included. Limited by 'Max products per search, category or shop' (40 by default).",
            "default": false
          },
          "trendingProducts": {
            "title": "Trending products",
            "type": "boolean",
            "description": "Adds up to 100 products trending today in the chosen country, with live price, original price, discount, rating, likes and brand. Works in every country, Brazil, Malaysia and Vietnam included. Limited by 'Max products per search, category or shop' (40 by default): set it to 100 to get them all.",
            "default": false
          },
          "startUrls": {
            "title": "Shopee links",
            "type": "array",
            "description": "Shopee search links (https://shopee.sg/search?keyword=phone%20case) from SG, TH, ID or PH. Price range and price sort in the link are kept. Shop and category links return a free error row: Shopee now asks visitors to log in to browse them.",
            "items": {
              "type": "string"
            }
          },
          "shopIds": {
            "title": "Shops",
            "type": "array",
            "description": "Not available at the moment: Shopee now asks visitors to log in to open a shop's product list, so each shop returns a free error row. Kept so saved inputs and schedules keep working.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerSearch": {
            "title": "Max products per search, category or shop",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Unique products per search term, up to 500.",
            "default": 40
          },
          "maxTotalItems": {
            "title": "Max products for the whole run (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap across all inputs together, for a fixed budget per run. Leave empty or 0 for no run cap. Also accepts 'maxItems'."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "priceAsc",
              "priceDesc",
              "sales",
              "newest"
            ],
            "type": "string",
            "description": "Order of the results. 'Top sales' and 'Newest' are kept for saved inputs and use relevance.",
            "default": "relevance"
          },
          "useMoreSortOrders": {
            "title": "Dig deeper with the other sort orders",
            "type": "boolean",
            "description": "No longer needed: results now go deep in a single order (thousands of products per term). Kept so saved inputs keep working.",
            "default": true
          },
          "minPrice": {
            "title": "Min price (local currency)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products at or above this price, in the currency of the country (for example 10 for SGD 10). Sent to Shopee and checked again on every row."
          },
          "maxPrice": {
            "title": "Max price (local currency)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products at or below this price, in the currency of the country."
          },
          "includeShop": {
            "title": "Include shop details",
            "type": "boolean",
            "description": "Shop name, username and link now come on every row at no cost. The other shop fields (rating, followers, response rate, badges) stay empty: Shopee now shows them only to logged-in buyers.",
            "default": false
          },
          "includeDetails": {
            "title": "Include product page details",
            "type": "boolean",
            "description": "Opens each product page to add the full description, category path, brand, all images, variations (colors, sizes) and attributes. One extra request per product, charged as 'Product page added'.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new products since the last run",
            "type": "boolean",
            "description": "Remembers which products each input already returned (in a key-value store on your account named 'shopee-scraper-state') and delivers only products not seen before. Seen products are not delivered and not charged. With 'Track price changes' on, products whose price moved are delivered too. Delete the store to start over.",
            "default": false
          },
          "trackPriceChanges": {
            "title": "Track price changes",
            "type": "boolean",
            "description": "Compares every product with the previous run of the same input and adds isNewProduct, firstSeenAt, previousPrice, priceChange and isPriceDrop. Schedule the same Task daily to follow prices and discounts. Also accepts 'compareWithPreviousRun'.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy by default. Change it only to use your own proxies.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}