{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopee Scraper: Product Detail, Search, Shops & Categories",
    "description": "Shopee product detail by link or shop/item id, plus search, shop and category lists on 9 marketplaces (ID, SG, MY, TH, PH, VN, TW, BR, MX): price, discount, price range, rating and count, shop rating, variants, attributes, images, description. No login. Misses free.",
    "version": "0.1",
    "x-build-id": "Mwdgp4GzVKC4mtHjP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~shopee-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-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/hyperbach~shopee-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-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/hyperbach~shopee-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-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": {
          "productUrls": {
            "title": "Product links or shop/item ids",
            "maxItems": 5000,
            "type": "array",
            "description": "Shopee product links in either form (https://shopee.co.id/<name>-i.<shop id>.<item id> or https://shopee.co.id/product/<shop id>/<item id>), or a shop id and an item id as a pair (196846900/11089699432). The link's site sets the marketplace; a bare pair is read on the marketplace below. Each product row reads the product page, the page Shopee shows search engines and the product's card in its shop's search.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search keywords",
            "maxItems": 500,
            "type": "array",
            "description": "Words to search on the marketplace below, one search a line. Each search is read page by page (40 products a page) up to maxItemsPerInput or to the end of Shopee's list.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "shopUrls": {
            "title": "Shop links, names or ids",
            "maxItems": 500,
            "type": "array",
            "description": "Shopee shop links (https://shopee.co.id/<shop name> or https://shopee.co.id/shop/<shop id>), shop names or shop ids. Shopee shows a visitor part of a shop's catalogue: the row of each shop says how many of its products were listed.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category links or ids",
            "maxItems": 500,
            "type": "array",
            "description": "Shopee category links (https://shopee.co.id/<name>-cat.<ids>) or category ids. The category page's products, then the category's search, page by page.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Any Shopee links",
            "maxItems": 5000,
            "type": "array",
            "description": "Any mix of Shopee product, search, shop and category links; each is read by its form.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "marketplace": {
            "title": "Marketplace for ids and keywords",
            "enum": [
              "id",
              "sg",
              "my",
              "th",
              "ph",
              "vn",
              "tw",
              "br",
              "mx"
            ],
            "type": "string",
            "description": "The Shopee site a keyword, a shop name or a shop/item pair is read on. A link keeps its own site. Colombia and Chile are not offered: their sites show no product to a visitor.",
            "default": "id"
          },
          "maxItemsPerInput": {
            "title": "Max products per keyword, shop or category",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most product rows each search, shop or category gives; 0 = as many as Shopee lists. A product link always gives its one row.",
            "default": 0
          },
          "includeDetails": {
            "title": "Read each listed product's pages",
            "type": "boolean",
            "description": "Off: a search, shop or category row carries the list card (price, discount, rating, place, labels). On: each listed product also gets its product page and the page Shopee shows search engines (variants, attributes, rating count, shop metrics, description, images), a few seconds more a row. Product links always read the full product.",
            "default": false
          },
          "sortBy": {
            "title": "Search order",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "sales",
              "latest",
              "relevancy",
              "newest"
            ],
            "type": "string",
            "description": "The order of a keyword's list, as Shopee sorts it. The names other Shopee tools use (relevancy, newest) are read too.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "number",
            "description": "In the marketplace's currency. Sent to Shopee with a search and checked on every row's price; a product under it is left out and not charged."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "In the marketplace's currency. Sent to Shopee with a search and checked on every row's price."
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "0 to 5. A product with no rating, or with a lower one, is left out and not charged."
          },
          "discountedOnly": {
            "title": "Discounted products only",
            "type": "boolean",
            "description": "Keep only products whose card shows a discount.",
            "default": false
          },
          "officialShopOnly": {
            "title": "Official (Mall) shops only",
            "type": "boolean",
            "description": "Keep only products of official shops (Shopee Mall): a keyword is searched in the Mall, and each product's official flag is read from its page.",
            "default": false
          },
          "shippedFrom": {
            "title": "Ships from (place)",
            "type": "string",
            "description": "A place name Shopee's search filter takes, such as DKI Jakarta or Jawa Barat; sent with each search."
          },
          "maxItems": {
            "title": "Max products (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most product rows of the whole run; 0 = no cap beyond your charge limit.",
            "default": 0
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}