{
  "openapi": "3.0.1",
  "info": {
    "title": "Temu Scraper 💰 $2.5/1K · Search, Sold Count & Price Alerts",
    "description": "Scrape Temu search without login: price, original price, discount, units sold, rating, reviews, image. Many keywords per run, US/UK/DE/CA stores, filters (removed products are free). Add variants with stock or store info. Monitor mode alerts new products and price drops to Slack, Discord or webhook.",
    "version": "0.1",
    "x-build-id": "TC3JHWZDAIv4lDI2s"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/first-penguin~temu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-first-penguin-temu-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/first-penguin~temu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-first-penguin-temu-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/first-penguin~temu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-first-penguin-temu-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 keywords",
            "type": "array",
            "description": "One keyword per line. Each keyword returns about 20 products (20–32 in our tests). A product found by two keywords is returned once.",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product URLs or goods IDs",
            "type": "array",
            "description": "Temu product links (goods.html?goods_id=… or …-g-<id>.html) or numeric goods IDs. Each comes back with product details (variants, prices, stock, store) and is charged as a product plus product details.",
            "items": {
              "type": "string"
            }
          },
          "market": {
            "title": "Country store",
            "enum": [
              "us",
              "uk",
              "de",
              "ca"
            ],
            "type": "string",
            "description": "Which Temu store to read. Prices come in that store's currency.",
            "default": "us"
          },
          "maxItems": {
            "title": "Max products in total",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The run stops after this many products. Apify free-plan runs are capped at 50 products.",
            "default": 100
          },
          "maxItemsPerSearch": {
            "title": "Max products per keyword",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "Cap per keyword (up to 32). One Temu search returns about 20 products (20–32 in our tests); for more, add more specific keywords.",
            "default": 32
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "top_sales",
              "price_asc",
              "price_desc",
              "rating",
              "discount"
            ],
            "type": "string",
            "description": "Sorts the products found for each keyword (about 20) before the per-keyword cap is applied.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Min price",
            "type": "number",
            "description": "In the store's currency."
          },
          "maxPrice": {
            "title": "Max price",
            "type": "number",
            "description": "In the store's currency."
          },
          "minRating": {
            "title": "Min rating (0–5)",
            "type": "number",
            "description": "Products without a rating are removed."
          },
          "minReviews": {
            "title": "Min reviews",
            "type": "integer",
            "description": "Products without a review count are removed."
          },
          "minSold": {
            "title": "Min units sold",
            "type": "integer",
            "description": "Temu shows sold counts like \"2.1K+\"; this compares with the lower bound (2,100)."
          },
          "minDiscount": {
            "title": "Min discount %",
            "type": "integer",
            "description": "Compared with the original price."
          },
          "includeDetails": {
            "title": "Add product details",
            "type": "boolean",
            "description": "Variants (color, size) with their own price and stock, all images, store ID and name, category path, exact units sold. Charged as product details.",
            "default": false
          },
          "includeSeller": {
            "title": "Add store information",
            "type": "boolean",
            "description": "Store rating, reviews, number of products, units sold, followers and when it joined. Charged per product as store information.",
            "default": false
          },
          "monitor": {
            "title": "Monitor mode (new products and price drops)",
            "type": "boolean",
            "description": "Compares with the previous run that used the same monitor name. The first run returns everything as a baseline; later runs return only new products and price drops. Unchanged products are not returned and not charged.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Use a different name for each keyword list you track.",
            "default": "default"
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "One message per keyword with changes."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "One message per keyword with changes."
          },
          "webhookUrl": {
            "title": "Webhook URL (JSON)",
            "type": "string",
            "description": "Receives temu.search.changed as JSON (Zapier, Make, n8n…)."
          },
          "maxConcurrency": {
            "title": "Keywords at the same time",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many keywords are searched at the same time.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}