{
  "openapi": "3.0.1",
  "info": {
    "title": "Shein Product Scraper — Prices, Discounts & Product Links",
    "description": "Get priced Shein products by keyword or category URL: current price, original price, discount, currency and Google Shopping link. Price filter and sort. Optional free unpriced cards. MCP-ready.",
    "version": "0.9",
    "x-build-id": "zywIppWXLPukc1F9o"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~shein-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-shein-product-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/khadinakbar~shein-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-shein-product-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/khadinakbar~shein-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-shein-product-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": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords to find Shein products, one result list per keyword (e.g. 'summer dress', 'men hoodie'). Rows come from Google's index of Shein, plus priced Google Shopping cards when Google shows a Shein price. Leave empty if you pass startUrls or goodsIds.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Shein URLs",
            "type": "array",
            "description": "Shein URLs: product pages (…-p-1234567.html), search pages (/pdsearch/…) or category pages. Product URLs are looked up by goods ID in Google's index (up to 25 per run); search and category URLs are searched by their words, like a keyword.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "goodsIds": {
            "title": "Goods IDs",
            "type": "array",
            "description": "Shein numeric goods IDs (the digits after '-p-' in a product URL, e.g. '100123456'). Each ID is looked up in Google's index; up to 25 per run. Rows without a price are free.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country / storefront",
            "enum": [
              "us",
              "uk",
              "au",
              "de",
              "fr",
              "es",
              "it",
              "global"
            ],
            "type": "string",
            "description": "Shein storefront, which sets the product URL host and currency (e.g. 'us' → us.shein.com in USD). Full product records (scrapeProductDetails) are available for 'us' and 'uk' only. Defaults to 'us'.",
            "default": "us"
          },
          "maxItems": {
            "title": "Max items per query/URL",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum rows per keyword or listing URL (1–500, default 10). Google's index gives up to about 10 rows per keyword. Product-URL and goods-ID inputs return one row each.",
            "default": 10
          },
          "scrapeProductDetails": {
            "title": "Full records for priced results ($0.009 each)",
            "type": "boolean",
            "description": "When true, each priced Google Shopping card is turned into a full record: Shein goods ID and link, sale and original price, shipping, stock, images and size/material specs. Billed as product-scraped ($0.009). US and UK storefronts only; elsewhere priced cards stay cards.",
            "default": false
          },
          "includeUnpricedRows": {
            "title": "Also return free unpriced cards",
            "type": "boolean",
            "description": "Off by default: the run returns only priced Shein cards (charged). Turn on to also add free cards from Google's index (goods ID, link, title; no price). Free cards are not charged but make the run slower and cost us a provider call, so they are limited to this switch.",
            "default": false
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Keep only priced cards at or above this price (in the storefront currency). Leave empty for no limit."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Keep only priced cards at or below this price (in the storefront currency). Leave empty for no limit."
          },
          "sortBy": {
            "title": "Sort priced cards",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Order of priced cards within each keyword: Google's relevance order, lowest price first, or highest price first.",
            "default": "relevance"
          },
          "scrapeReviews": {
            "title": "Scrape reviews (unavailable)",
            "type": "boolean",
            "description": "Kept so older inputs still run. Reviews need Shein's own pages, which Shein currently blocks, so no reviews are returned.",
            "default": false
          },
          "maxReviews": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Kept so older inputs still run. Has no effect while reviews are unavailable.",
            "default": 10
          },
          "useUnblocker": {
            "title": "Try the browser route (experimental)",
            "type": "boolean",
            "description": "Opt in to open Shein pages in a browser through Apify Unblocker. Needs at least 1024 MB of memory. Shein currently shows a captcha on every page, so this usually returns nothing extra and costs more platform time. Off by default.",
            "default": false
          },
          "enableCaptchaSolver": {
            "title": "CAPTCHA solver (browser route only)",
            "type": "boolean",
            "description": "Only used with the experimental browser route (useUnblocker). Allows one paid CAPTCHA-solve attempt per run. It has no effect on the default route. Off by default.",
            "default": false
          },
          "useBrightDataSheinProvider": {
            "title": "Managed product API (retired, ignored)",
            "type": "boolean",
            "description": "Retired option. It is ignored; kept so older inputs keep working.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Used only by the experimental browser route (useUnblocker). The default managed route does not open Shein pages and ignores this setting.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}