{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopee Brazil Scraper - Flash Sales, Shops, Reviews (No Login)",
    "description": "Shopee Brazil without login: today's and tomorrow's flash sales with units sold and stock, shop reputation with the featured product's sales, shop reviews by stars, product details with stock per variation, keyword suggestions and official shops. From $0.30 per 1,000.",
    "version": "1.0",
    "x-build-id": "057kdcekgr2mQauCd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pomlabs~shopee-brazil-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pomlabs-shopee-brazil-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/pomlabs~shopee-brazil-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pomlabs-shopee-brazil-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/pomlabs~shopee-brazil-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pomlabs-shopee-brazil-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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "auto",
              "flash_sales",
              "discover",
              "shop",
              "shop_reviews",
              "product",
              "keywords",
              "official_shops",
              "search",
              "reviews"
            ],
            "type": "string",
            "description": "auto (default): each query picks its mode: a product link -> product, a shop link or id -> shop, a word or nothing -> today's flash sales filtered by it. flash_sales: today's and tomorrow's flash sales (queries optional: keywords to filter by name). discover: the 'Daily discover' shelf (60 products). shop: shop profile and reputation (shop link, username or id). shop_reviews: reviews of a shop. product: product details from a product link. keywords: search suggestions for a keyword. official_shops: the directory of official shops (queries optional: name filter). search: keyword search, 20 products per page (Maxresults 20-100), price, discount, likes, shop; sold and stock where Shopee shows them. Order is Shopee's relevancy. reviews: same as shop_reviews.",
            "default": "auto"
          },
          "queries": {
            "title": "Queries",
            "type": "array",
            "description": "One per line: shop links, usernames or ids (shop, shop_reviews), product links (product), keywords (keywords; or a name filter for flash_sales and official_shops). Up to 50.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results per query",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many rows for each query (reviews: up to 2,000 per shop).",
            "default": 50
          },
          "session": {
            "title": "Flash sale session",
            "enum": [
              "all",
              "current",
              "next"
            ],
            "type": "string",
            "description": "flash_sales: the session running now, the next one, or both.",
            "default": "all"
          },
          "reviewStars": {
            "title": "Review stars",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "shop_reviews: only reviews with this many stars (1 to 5); 0 = all.",
            "default": 0
          },
          "includeCouponsAndCategories": {
            "title": "Shop coupons and categories",
            "type": "boolean",
            "description": "shop: also the shop's active coupons and its categories with item counts.",
            "default": true
          },
          "country": {
            "title": "Country / marketplace",
            "enum": [
              "BR"
            ],
            "type": "string",
            "description": "Shopee marketplace. Only BR (shopee.com.br) is read; links keep their own country.",
            "default": "BR"
          },
          "searchTerms": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search (up to 5), with mode search or auto. 20 products per page, up to 5 pages. Served by a reserve door with an hourly limit; when it is busy the run says so.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Shopee links: product pages, shops (shopee.com.br/<shop>), shop ids. Same as Queries.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max products",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Stop after this many rows per query. Same as Max results."
          },
          "enrichProducts": {
            "title": "Fetch full product details",
            "type": "boolean",
            "description": "Product links always return the full product page (description, images, variations, brand, categories).",
            "default": false
          },
          "includeShopAndReviews": {
            "title": "Shop name, rating and review count",
            "type": "boolean",
            "description": "Rows carry the shop id and link; the shop profile and rating come from mode shop.",
            "default": true
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "relevancy",
              "sales",
              "latest",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Accepted; keyword search comes in Shopee's relevancy order (the filters minPrice, maxPrice, minRating and the others are applied on the rows).",
            "default": "relevancy"
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Keep rows with price at least this (BRL), on flash_sales and discover rows, which carry a price."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Keep rows with price at most this (BRL), on flash_sales and discover rows."
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep rows rated at least this (0-5), on flash_sales and discover rows."
          },
          "preferredSellerOnly": {
            "title": "Preferred sellers only",
            "type": "boolean",
            "description": "Keep rows from Preferred sellers (flash_sales and discover rows).",
            "default": false
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Keep rows with free shipping, where the row says it.",
            "default": false
          },
          "codAvailableOnly": {
            "title": "Cash on delivery only",
            "type": "boolean",
            "description": "Keep rows where cash on delivery is offered, when the row says it.",
            "default": false
          },
          "discountedOnly": {
            "title": "Discounted only",
            "type": "boolean",
            "description": "Keep rows with a discount (flash_sales and discover rows).",
            "default": false
          },
          "withVideoOnly": {
            "title": "With product video only",
            "type": "boolean",
            "description": "Keep product rows that have a video.",
            "default": false
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Keep new or used items, where the row says it.",
            "default": "any"
          },
          "shippedFrom": {
            "title": "Shipped from",
            "type": "string",
            "description": "Keep rows whose shop location contains this text (for example São Paulo)."
          },
          "brand": {
            "title": "Brand",
            "type": "string",
            "description": "Keep rows whose brand or name contains this text."
          },
          "maxReviews": {
            "title": "Max reviews per link",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Reviews mode: how many reviews to keep for each shop or product link, newest first.",
            "default": 100
          },
          "starRatings": {
            "title": "Star ratings",
            "type": "array",
            "description": "Reviews mode: keep only these star ratings. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ]
            }
          },
          "reviewsSince": {
            "title": "Reviews since",
            "type": "string",
            "description": "Reviews mode: stop at reviews older than this date (YYYY-MM-DD)."
          },
          "onlyWithText": {
            "title": "Only reviews with text",
            "type": "boolean",
            "description": "Reviews mode: skip reviews with stars but no text.",
            "default": false
          },
          "onlyWithMedia": {
            "title": "Only reviews with photos or video",
            "type": "boolean",
            "description": "Reviews mode: only reviews with a photo or video.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}