# Temu Product Scraper (`axlymxp/temu-product-scraper`) Actor

Scrape Temu's live product feed — title, current & original price, discount, image, sales count and product URL — via a reverse-engineered anti-content signer. Product-detail mode enriches any Temu product ID or URL with title, description and category. Pay only for the results you get.

- **URL**: https://apify.com/axlymxp/temu-product-scraper.md
- **Developed by:** [axly](https://apify.com/axlymxp) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 83.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 dataset items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Temu Product Scraper

Scrape **Temu** product data reliably. This actor reverse-engineers Temu's
`anti-content` request signer and reproduces it in pure Python, so after a
one-time stealth-browser bootstrap it fetches products over plain HTTP — fast
and lightweight.

### What you get

Two modes:

| Mode                                  | What it does                                                       |
| ------------------------------------- | ------------------------------------------------------------------ |
| **Product feed** (`products`)         | Collects Temu's homepage product feed with full data.              |
| **Product detail** (`product_detail`) | Enriches a list of product IDs / URLs with server-rendered detail. |

#### Output fields

**Product feed** rows:

| Field                            | Description                                   |
| -------------------------------- | --------------------------------------------- |
| `goods_id`                       | Temu product ID                               |
| `title`                          | Product title                                 |
| `price`                          | Current price (float, in the chosen currency) |
| `market_price`                   | Original / strike-through price               |
| `price_str` / `market_price_str` | Formatted price strings                       |
| `currency`                       | Currency code                                 |
| `discount_text`                  | Discount label (when present)                 |
| `sales_tip`                      | Sales indicator (e.g. "28 sold")              |
| `image`                          | Product image URL                             |
| `url`                            | Product page URL                              |
| `source`                         | `plp_feed`                                    |

**Product detail** rows:

| Field                     | Description                                                        |
| ------------------------- | ------------------------------------------------------------------ |
| `goods_id`                | Product ID                                                         |
| `title`                   | Product title                                                      |
| `description`             | Product description                                                |
| `category`                | Category breadcrumb (e.g. `patio > lawn & garden > outdoor carts`) |
| `keywords`                | Raw category keywords                                              |
| `image`                   | OpenGraph image                                                    |
| `url`                     | Canonical product URL                                              |
| `login_or_captcha_walled` | `true` if Temu blocked that page (retried automatically)           |
| `source`                  | `pdp_ssr`                                                          |

### Example input

```json
{
    "mode": "products",
    "maxItems": 100,
    "region": "211",
    "currency": "USD",
    "language": "en",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": ["RESIDENTIAL"]
    }
}
````

Product detail:

```json
{
    "mode": "product_detail",
    "goodsIds": [
        "605981362750070",
        "https://www.temu.com/goods.html?goods_id=601099651743804"
    ]
}
```

### Input parameters

- **mode** — `products` (feed) or `product_detail`.
- **maxItems** — max unique products in feed mode. Temu rotates the feed, so
  very large runs plateau (~40–160 unique products per session).
- **goodsIds** — product IDs or URLs for detail mode.
- **region / currency / language** — locale (defaults: `211` / `USD` / `en`).
- **headless** — run the one-time bootstrap browser headless (default `true`).
- **proxyConfiguration** — proxy settings; residential proxies recommended.

### How it works

1. A stealth browser loads `temu.com` once to harvest a live `anti-content`
   seed and session cookies.
2. The feed is then fetched via `curl_cffi` with a **pure-Python** `anti-content`
   minted per request — no browser round-trips.
3. Detail mode reuses the same browser to read Temu's server-rendered product
   metadata.

### Scheduling & webhooks

Run on a schedule and connect webhooks to push new products to your systems as
soon as a run finishes. Use the dataset API/exports (JSON, CSV, Excel) to
integrate downstream.

### Use with AI assistants (MCP)

Prefer to query Temu live from Claude, Cursor or your own agent? Pair this actor
with **Temu MCP Server**, which exposes Temu product search and detail as MCP
tools an AI assistant can call directly.

### Limitations

- Temu gates keyword **search**, **category** browsing and full **product
  detail** (price/gallery/reviews) behind login/captcha. This actor delivers the
  homepage product feed (full data) and SEO-level product detail. It does not
  log into Temu accounts.
- The feed is a rotating recommendation set, so the number of *unique* products
  per session is limited by Temu.

### FAQ

**Do I need to provide cookies or tokens?** No — the actor bootstraps its own
session.

**Why residential proxies?** Temu is aggressively anti-bot; residential proxies
make the one-time bootstrap far more reliable.

**Are prices accurate?** Prices come directly from Temu's feed API and are
normalized to the chosen currency.

# Actor input Schema

## `mode` (type: `string`):

What to scrape. 'Product feed' collects Temu's homepage product feed (full data). 'Product detail' enriches given product IDs/URLs with server-rendered detail (title, description, category, canonical URL).

## `maxItems` (type: `integer`):

Maximum number of unique products to collect in 'Product feed' mode. Temu rotates the feed, so very large collections plateau (~40-160 unique per session).

## `goodsIds` (type: `array`):

For 'Product detail' mode: a list of Temu goods\_id values or product URLs (goods.html?goods\_id=...).

## `region` (type: `string`):

Temu region code (211 = US).

## `currency` (type: `string`):

Currency code for prices (e.g. USD, EUR, GBP). Must match the region.

## `language` (type: `string`):

Language code for titles and descriptions (e.g. en).

## `headless` (type: `boolean`):

Run the one-time session bootstrap browser in headless mode. Disable if the bootstrap is being blocked.

## `proxyConfiguration` (type: `object`):

Proxy settings. Residential proxies are recommended for reliability.

## Actor input object example

```json
{
  "mode": "products",
  "maxItems": 100,
  "goodsIds": [],
  "region": "211",
  "currency": "USD",
  "language": "en",
  "headless": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("axlymxp/temu-product-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("axlymxp/temu-product-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call axlymxp/temu-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=axlymxp/temu-product-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Temu Product Scraper",
        "description": "Scrape Temu's live product feed — title, current & original price, discount, image, sales count and product URL — via a reverse-engineered anti-content signer. Product-detail mode enriches any Temu product ID or URL with title, description and category. Pay only for the results you get.",
        "version": "0.1",
        "x-build-id": "ikbERFhLbBoJa6yCW"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/axlymxp~temu-product-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-axlymxp-temu-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/axlymxp~temu-product-scraper/runs": {
            "post": {
                "operationId": "runs-sync-axlymxp-temu-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/axlymxp~temu-product-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-axlymxp-temu-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",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Scrape mode",
                        "enum": [
                            "products",
                            "product_detail"
                        ],
                        "type": "string",
                        "description": "What to scrape. 'Product feed' collects Temu's homepage product feed (full data). 'Product detail' enriches given product IDs/URLs with server-rendered detail (title, description, category, canonical URL).",
                        "default": "products"
                    },
                    "maxItems": {
                        "title": "Max products (feed mode)",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of unique products to collect in 'Product feed' mode. Temu rotates the feed, so very large collections plateau (~40-160 unique per session).",
                        "default": 100
                    },
                    "goodsIds": {
                        "title": "Product IDs or URLs (detail mode)",
                        "type": "array",
                        "description": "For 'Product detail' mode: a list of Temu goods_id values or product URLs (goods.html?goods_id=...).",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "region": {
                        "title": "Region code",
                        "type": "string",
                        "description": "Temu region code (211 = US).",
                        "default": "211"
                    },
                    "currency": {
                        "title": "Currency",
                        "type": "string",
                        "description": "Currency code for prices (e.g. USD, EUR, GBP). Must match the region.",
                        "default": "USD"
                    },
                    "language": {
                        "title": "Language",
                        "type": "string",
                        "description": "Language code for titles and descriptions (e.g. en).",
                        "default": "en"
                    },
                    "headless": {
                        "title": "Headless browser bootstrap",
                        "type": "boolean",
                        "description": "Run the one-time session bootstrap browser in headless mode. Disable if the bootstrap is being blocked.",
                        "default": true
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy settings. Residential proxies are recommended for reliability.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "US"
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
