{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopee Reviews Scraper",
    "description": "Shopee Reviews Scraper SD - Shopee Reviews Scraper is a tool that extracts Shopee shop and product reviews in 11 markets: star rating, comment, photos, videos, variation, detailed ratings, seller reply, author and date, with star and media filters.",
    "version": "1.0",
    "x-build-id": "7XkDB3TF9nWqJHcJF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~shopee-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-shopee-reviews-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-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-shopee-reviews-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-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-shopee-reviews-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 shops or products",
            "type": "array",
            "description": "One per line: a shop URL (https://shopee.sg/aforapothecary or https://shopee.sg/shop/30431123), a product URL (https://shopee.sg/product/30431123/5411010692 or the long ...-i.30431123.5411010692 link), a bare shop username (aforapothecary) or shop ID (30431123). Bare names and IDs use the Market below; URLs keep their own market.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Market (for bare usernames and IDs)",
            "enum": [
              "sg",
              "my",
              "id",
              "ph",
              "th",
              "vn",
              "tw",
              "br",
              "mx",
              "co",
              "cl"
            ],
            "type": "string",
            "description": "Shopee market of bare usernames / shop IDs. URLs always use the market of their own domain.",
            "default": "sg"
          },
          "maxReviewsPerShop": {
            "title": "Max reviews per shop",
            "minimum": 1,
            "maximum": 6000,
            "type": "integer",
            "description": "How many of a shop's newest reviews to return for each shop line. Shopee serves up to 1,000 per star filter; above that the Actor reads each star level separately (up to about 5,000 per shop). Example: 100",
            "default": 100
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 6000,
            "type": "integer",
            "description": "How many reviews of the product to return for each product line. They are taken from the newest reviews of the product's shop (up to about 5,000 reviews are searched). Example: 100",
            "default": 100
          },
          "starRatings": {
            "title": "Star ratings",
            "type": "array",
            "description": "Only reviews with these star ratings (Shopee filters them). Empty = all stars.",
            "items": {
              "type": "string",
              "enum": [
                "5",
                "4",
                "3",
                "2",
                "1"
              ],
              "enumTitles": [
                "5 stars",
                "4 stars",
                "3 stars",
                "2 stars",
                "1 star"
              ]
            },
            "default": []
          },
          "contentFilter": {
            "title": "Content filter",
            "enum": [
              "all",
              "withComments",
              "withMedia"
            ],
            "type": "string",
            "description": "Keep all reviews, only reviews with a written comment, or only reviews with photos or videos (applied by the Actor to every review it reads).",
            "default": "all"
          },
          "sellerReplies": {
            "title": "Seller replies",
            "enum": [
              "all",
              "withReply",
              "withoutReply"
            ],
            "type": "string",
            "description": "All reviews, only reviews the seller answered (the reply is in shopReply), or only unanswered reviews. Shopee filters these itself.",
            "default": "all"
          },
          "onlyWithText": {
            "title": "Only reviews with text",
            "type": "boolean",
            "description": "Same as Content filter = With a written comment (applied by the Actor).",
            "default": false
          },
          "onlyWithMedia": {
            "title": "Only reviews with photos or videos",
            "type": "boolean",
            "description": "Same as Content filter = With photos or videos (applied by the Actor).",
            "default": false
          },
          "reviewsSince": {
            "title": "Reviews since",
            "type": "string",
            "description": "Only reviews written on or after this date (YYYY-MM-DD), or a relative period such as \"30 days\". Shopee lists the newest first, so the Actor stops reading a shop at the first older review."
          },
          "includeShopSummary": {
            "title": "Add a shop summary row",
            "type": "boolean",
            "description": "Adds one row per shop (recordType \"shopSummary\") with the shop's name, rating, good / normal / bad rating counts, followers, number of products and response rate.",
            "default": false
          },
          "maxItems": {
            "title": "Max rows in total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stops the whole run after this many rows. Example: 100",
            "default": 100
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 300,
            "maximum": 10000,
            "type": "integer",
            "description": "Pause between two requests of one session. 1000 ms is polite and fast enough (about 50 reviews per second of waiting).",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Shops / products in parallel",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many shops or products of the list are read at the same time, each with its own session and IP. Default 3, 1-5. One shop's review pages are still read in order (each page needs the previous page's offset).",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy (default). With the default the Actor uses a residential IP in each shop's own country (shop pages only load from there); pick another country or your own proxies to override that.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}