# 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:** 6 total users, 5 monthly users, 93.2% runs succeeded, 1 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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

Download the OpenAPI definition: https://api.apify.com/v2/actors/3C7cyespKY3I9YbO8/builds/BkkRmqoMzMEov4lvT/openapi.json
