# Temu Product Intelligence API (`soilair/temu-product-intelligence-api`) Actor

Search Temu products by keyword and extract current prices, original prices, product IDs, images, and product URLs with strict relevance filtering.

- **URL**: https://apify.com/soilair/temu-product-intelligence-api.md
- **Developed by:** [Salih Can Kurnaz](https://apify.com/soilair) (community)
- **Categories:** E-commerce
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.50 / 1,000 product results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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

Search Temu products by keyword and get structured, strict-relevance product results for price intelligence, product research, catalog analysis, and automation.

> This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Temu.

### What you get

Each returned product can include:

- search query
- Temu product ID
- product title
- current USD price
- original USD price when available
- image URL when available
- Temu product URL
- strict query relevance score

Generic recommendation cards that do not match the requested query concepts are filtered out.

### Input

```json
{
  "queries": [
    "wireless earbuds",
    "car phone mount"
  ],
  "maxResultsPerQuery": 15
}
```

`queries` accepts 1–10 search keywords. `maxResultsPerQuery` accepts 1–50 products per query.

Temu result yield varies by keyword, session, and current marketplace ranking. A query can legitimately return fewer rows than the requested maximum.

### Output example

```json
{
  "query": "wireless earbuds",
  "productId": "601099545078319",
  "title": "Wireless Bluetooth Earbuds with Charging Case",
  "price": 28.3,
  "currency": "USD",
  "originalPrice": 31.16,
  "imageUrl": "https://...",
  "productUrl": "https://www.temu.com/...",
  "queryRelevanceScore": 1.0
}
```

Operational browser, proxy, retry, and parser diagnostics are kept out of the normal Dataset output.

### Pricing

This Actor uses pay-per-event pricing and includes platform usage in the event prices.

- **Search query:** $0.020 per processed keyword.
- **Product result (primary event):**
  - FREE: $0.0050/result ($5.00 per 1,000)
  - BRONZE: $0.0048/result
  - SILVER: $0.0046/result
  - GOLD: $0.0045/result
  - PLATINUM: $0.0045/result
  - DIAMOND: $0.0045/result
- **Actor start:** $0.00005 per GB of allocated memory, as applied by Apify's synthetic Actor-start event.

The effective cost per returned product varies with result yield because every processed search query also has a fixed query event.

### Spending limits

The Actor respects `ACTOR_MAX_TOTAL_CHARGE_USD` before starting browser work. It conservatively reserves:

`Actor-start cost + $0.020 query fee + maxResultsPerQuery × FREE product-result price`

for every query it accepts.

If the run budget cannot cover all requested queries at that worst-case bound, only the number of queries that fit is processed. The run summary reports `requestedQueries`, `allowedQueries`, and `budgetBoundApplied`.

With the default `maxResultsPerQuery: 15`, the minimum run-charge setting supports at least one query at the default 2 GB memory allocation.

### Reliability design

The Actor uses:

- Chromium rendering
- Apify US Residential Proxy
- one bounded fresh residential-session retry for blocked or empty queries
- strict query-concept relevance filtering
- current/original price recovery from rendered product-card text
- captured JSON as an additional price fallback
- duplicate suppression by product ID
- per-query Dataset persistence and billing after results are available

### Data notes

Temu is a dynamic marketplace. Product ranking, availability, prices, discounts, and page behavior can change between runs, accounts, regions, and sessions.

The Actor reports public listing data observed at run time. It does not guarantee stock availability, checkout price, seller fulfillment, or future pricing.

# Actor input Schema

## `queries` (type: `array`):

Enter 1–10 Temu product search keywords. Each query is processed independently.

## `maxResultsPerQuery` (type: `integer`):

Maximum number of strict-relevance products returned for each query. Higher limits may require a higher maximum run charge.

## `diagnosticMode` (type: `boolean`):

Enable additional fetch/parser diagnostics in the private PoC summary. This does not enable a browser or proxy.

## `proxyCountry` (type: `string`):

Internal fixed proxy country code. This production candidate currently uses US residential sessions.

## `browserWaitMs` (type: `integer`):

Milliseconds to wait after DOM content is loaded before product extraction in this private benchmark.

## `scrollSteps` (type: `integer`):

Number of bounded viewport scroll steps used to trigger lazy-loaded product cards.

## `maxQueryAttempts` (type: `integer`):

Maximum fresh residential browser sessions attempted for a query when the first attempt is blocked, empty, or fails to navigate.

## `preflightAttempts` (type: `integer`):

Best-effort browser proxy preflight attempts. Query execution is not aborted solely because preflight fails.

## Actor input object example

```json
{
  "queries": [
    "wireless earbuds"
  ],
  "maxResultsPerQuery": 15,
  "diagnosticMode": false,
  "proxyCountry": "US",
  "browserWaitMs": 3500,
  "scrollSteps": 2,
  "maxQueryAttempts": 2,
  "preflightAttempts": 3
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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("soilair/temu-product-intelligence-api").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("soilair/temu-product-intelligence-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).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 soilair/temu-product-intelligence-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,soilair/temu-product-intelligence-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/rzfrdtzRcAlq84AHy/builds/FZfwyzK4lWhUocFFR/openapi.json
