{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopee Products Scraper",
    "description": "Shopee Products Scraper SD - Shopee Products Scraper is a tool that extracts Shopee product details in 11 markets: title, description, variations, images, videos, attributes, categories, brand, shipping flags and shop profile, by product or shop.",
    "version": "1.0",
    "x-build-id": "EFuKrckgjZpszPv1s"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~shopee-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-shopee-products-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/neuro-scraper~shopee-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-shopee-products-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/neuro-scraper~shopee-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-shopee-products-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": {
          "startUrls": {
            "title": "Shopee products or shops",
            "type": "array",
            "description": "One per line: a product URL (https://shopee.sg/product/30431123/5411010692 or the long ...-i.30431123.5411010692 link), '<shopId>/<itemId>', or a shop (https://shopee.sg/aforapothecary, https://shopee.sg/shop/30431123, a bare username). Shop lines return the shop's products (see Max products per shop). Bare values use the Market below.",
            "items": {
              "type": "string"
            }
          },
          "shopIds": {
            "title": "Shop IDs or usernames",
            "type": "array",
            "description": "Optional extra shops by numeric ID (30431123) or username (aforapothecary) - same as shop lines above.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Market (for bare IDs and usernames)",
            "enum": [
              "sg",
              "my",
              "id",
              "ph",
              "th",
              "vn",
              "tw",
              "br",
              "mx",
              "co",
              "cl"
            ],
            "type": "string",
            "description": "Shopee market of bare IDs / usernames. URLs always use the market of their own domain.",
            "default": "sg"
          },
          "maxItems": {
            "title": "Max products in total",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stops the whole run after this many products. Example: 20",
            "default": 20
          },
          "maxProductsPerShop": {
            "title": "Max products per shop",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "For shop lines: how many of the shop's products to return. Products are found through the shop's newest reviews (best sellers first), so products that were never reviewed may be missing. Example: 20",
            "default": 20
          },
          "includeShopDetails": {
            "title": "Add shop details",
            "type": "boolean",
            "description": "Adds the shop's profile to every product (name, rating, rating counts, followers, product count, response rate, badges) and the price, sold count and rating of the shop's featured product. One extra page per shop.",
            "default": true
          },
          "officialShopOnly": {
            "title": "Only products of official (Mall) shops",
            "type": "boolean",
            "description": "Skip products of shops that are not official / Mall shops (applied by the Actor).",
            "default": false
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Keep any, only new or only used products (applied by the Actor).",
            "default": "any"
          },
          "withVideoOnly": {
            "title": "Only products with a video",
            "type": "boolean",
            "description": "Skip products without a product video (applied by the Actor).",
            "default": false
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 300,
            "maximum": 10000,
            "type": "integer",
            "description": "Pause between two requests of one session. Default 1000 ms.",
            "default": 1000
          },
          "freeShippingOnly": {
            "title": "Only free shipping",
            "type": "boolean",
            "description": "Keep only products Shopee marks with free shipping (isFreeShipping).",
            "default": false
          },
          "preferredSellerOnly": {
            "title": "Only Preferred sellers",
            "type": "boolean",
            "description": "Keep only products of Preferred / Preferred+ sellers (isPreferredPlusSeller).",
            "default": false
          },
          "wholesaleOnly": {
            "title": "Only wholesale prices",
            "type": "boolean",
            "description": "Keep only products that offer wholesale (bulk) prices (canUseWholesale).",
            "default": false
          },
          "shippedFrom": {
            "title": "Ships from",
            "type": "array",
            "description": "Keep only products whose shop location contains one of these texts (e.g. Johor, Overseas, Mainland China).",
            "items": {
              "type": "string"
            }
          },
          "brand": {
            "title": "Brand",
            "type": "array",
            "description": "Keep only products of these brands (brand field of the product page, case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "includeReviews": {
            "title": "Add product reviews",
            "type": "boolean",
            "description": "Adds a reviews list to every product: the product's newest reviews from its shop's public review feed (rating, text, variation, photos, date, seller reply). Up to 200 reviews per shop are read once.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many reviews the reviews list of a product holds.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy (default). With the default the Actor uses a residential IP in each product's own country - Shopee only shows product pages to visitors from that country. Pick another country or your own proxies to override.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "SG"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}