{
  "openapi": "3.0.1",
  "info": {
    "title": "Temu Product Scraper | Prices Sold Global",
    "description": "Scrape Temu (www.temu.com) — keyword search, category & channel PLPs, home discover & PDP across US, UK, EU, Asia & more. Extract goodsId, prices, ratings, sold counts, images. Export Excel/CSV/JSON for e-commerce research & price monitoring.",
    "version": "0.1",
    "x-build-id": "BgYuzd8qWftlTjcmi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~temu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-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/lentic_clockss~temu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-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/lentic_clockss~temu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "homeDiscover",
              "keywordSearch",
              "channelSearch",
              "categorySearch",
              "productDetail",
              "regions"
            ],
            "type": "string",
            "description": "homeDiscover / keywordSearch / channelSearch / categorySearch / productDetail / regions.",
            "default": "homeDiscover"
          },
          "region": {
            "title": "Region path code",
            "type": "string",
            "description": "Temu path prefix: us, uk, de, fr, au, ph, … US often uses bare www root.",
            "default": "us"
          },
          "browseCountry": {
            "title": "Browse country (alias)",
            "type": "string",
            "description": "Optional ISO-2 alias (US→us, GB→uk, PH→ph)."
          },
          "currency": {
            "title": "Currency hint",
            "type": "string",
            "description": "Optional currency override (e.g. USD, PHP, EUR)."
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword for keywordSearch."
          },
          "keyword": {
            "title": "Keyword (alias)",
            "type": "string",
            "description": "Alias of query."
          },
          "keywords": {
            "title": "Keywords (batch)",
            "type": "array",
            "description": "Optional list of keywords.",
            "items": {
              "type": "string"
            }
          },
          "channel": {
            "title": "Channel slug",
            "enum": [
              "",
              "best-sellers",
              "full-star",
              "new-in",
              "lightning-deals",
              "clearance"
            ],
            "type": "string",
            "description": "best-sellers / full-star / new-in / lightning-deals / clearance."
          },
          "categorySlug": {
            "title": "Category slug",
            "type": "string",
            "description": "Temu -o3- slug (e.g. cables-adapters)."
          },
          "optId": {
            "title": "Category optId",
            "type": "string",
            "description": "Temu sitemap optId (e.g. 2643 for cables-adapters)."
          },
          "catId": {
            "title": "Category id (alias)",
            "type": "string",
            "description": "Alias of optId."
          },
          "categoryUrl": {
            "title": "Category URL",
            "type": "string",
            "description": "Full or path category URL containing -o3-{optId}.html."
          },
          "bucket": {
            "title": "Taxonomy bucket",
            "type": "string",
            "description": "Vertical id/bucket for categorySearch or regions filter."
          },
          "productUrl": {
            "title": "Product URL",
            "type": "string",
            "description": "PDP URL containing -g-{goodsId}.html."
          },
          "goodsId": {
            "title": "Goods ID",
            "type": "string",
            "description": "Numeric Temu goodsId."
          },
          "page": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "1-based page for search/channel/category.",
            "default": 1
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap on dataset rows. Free plan capped at 200.",
            "default": 40
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Pagination / scroll-feed rounds (home feed + list page=).",
            "default": 1
          },
          "sort": {
            "title": "Sort",
            "type": "string",
            "description": "default|sales|new|price_asc|price_desc|rating (best-effort query params)."
          },
          "minPrice": {
            "title": "Min price",
            "type": "number",
            "description": "Optional min_price filter."
          },
          "maxPrice": {
            "title": "Max price",
            "type": "number",
            "description": "Optional max_price filter."
          },
          "refine": {
            "title": "Refine / filter blob",
            "type": "string",
            "description": "Opaque filter string when known."
          },
          "enrichDetails": {
            "title": "Enrich with PDP",
            "type": "boolean",
            "description": "For listing modes, fetch PDP for enrichLimit items (contract fields when available).",
            "default": false
          },
          "enrichLimit": {
            "title": "Enrich limit",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Max listing rows to enrich with PDP.",
            "default": 3
          },
          "pageRetry": {
            "title": "Page retry",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Retries when verification/empty (new browser session).",
            "default": 2
          },
          "browserCountryPin": {
            "title": "BD browser country pin",
            "type": "string",
            "description": "Optional TEMU_BROWSER_COUNTRY_PIN override: off|auto|xx. Default worker env is off."
          },
          "workerBaseUrl": {
            "title": "Worker base URL override",
            "type": "string",
            "description": "Optional HTTPS Cloud Run origin (allowlisted)."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}