Temu API Python Client

Extract Temu data with our Temu API Python client. Get programmatic access to ratings, images, product titles, reviews, sales counts, prices, and more using simple Python code. Start free, no credit card required.

Trusted by industry leaders all over the world

Integrate our Temu API

The Apify API client for Python is the official library that allows you to use Temu API in Python, providing convenience functions and automatic retries on errors. Get started with simple pip installation and robust error handling built-in.

Python

Python

JavaScript

JavaScript

HTTP

HTTP

MCP

MCP

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4# Replace '<YOUR_API_TOKEN>' with your token.
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7# Prepare the Actor input
8run_input = { "searchUrls": ["https://www.temu.com/search_result.html?search_key=men%20suits&search_method=user&refer_page_el_sn=200010&srch_enter_source=top_search_entrance_10005&_x_vst_scene=adg&_x_ns_irclickid=UP1y4-XAxxyKTPnQCnwESXeyUkswOK35kz3v180&_x_ads_account=18350&_x_ads_id=1583288&_x_ns_iradname=Temu%20Product%20Ad&_x_ns_iradsize=&_x_ns_prodsku=&_x_ns_irmptype=mediapartner&_x_ns_sharedid=252467&_x_ns_ts=1740939886861&_x_ns_randint=7425832&_x_ns_adtype=PRODUCT_CATALOG&_x_ns_irmpgroupname=%22kz%22&_x_ads_channel=impact&_x_ns_mp_value2=&_x_ns_mp_value3=&_x_ns_irmpname=DMS%20CD%20(Netherlands)%20B.V.&_x_ns_irpid=1934383&_x_sessn_id=ud8cc78a0e&refer_page_name=home&refer_page_id=10005_1740943727711_lkx6avedi6&refer_page_sn=10005"] }
9
10# Run the Actor and wait for it to finish
11run = client.actor("piotrv1001/temu-listings-scraper").call(run_input=run_input)
12
13# Fetch and print Actor results from the run's dataset (if there are any)
14print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
15for item in client.dataset(run["defaultDatasetId"]).iterate_items():
16 print(item)
17
18# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

Get data with Temu API Python client

Use our Python API client to extract Temu product data by providing an array of Temu product page URLs. The API returns structured data, including product titles, prices, original prices, discount percentages, ratings, total reviews, sales counts, images, video URLs, store IDs, and product URLs.

Input

{
"searchUrls": [
"<https://www.temu.com/search_result.html?search_key=men%20suits&search_method=user&refer_page_el_sn=200010&srch_enter_source=top_search_entrance_10005&_x_vst_scene=adg&_x_ns_irclickid=UP1y4-XAxxyKTPnQCnwESXeyUkswOK35kz3v180&_x_ads_account=18350&_x_ads_id=1583288&_x_ns_iradname=Temu%20Product%20Ad&_x_ns_iradsize=&_x_ns_prodsku=&_x_ns_irmptype=mediapartner&_x_ns_sharedid=252467&_x_ns_ts=1740939886861&_x_ns_randint=7425832&_x_ns_adtype=PRODUCT_CATALOG&_x_ns_irmpgroupname=%22kz%22&_x_ads_channel=impact&_x_ns_mp_value2=&_x_ns_mp_value3=&_x_ns_irmpname=DMS%20CD%20(Netherlands)%20B.V.&_x_ns_irpid=1934383&_x_sessn_id=ud8cc78a0e&refer_page_name=home&refer_page_id=10005_1740943727711_lkx6avedi6&refer_page_sn=10005>"
]
}

Output

[
{
"_fromStrapi": true,
"id": "601099769178067",
"price": 176,
"title": "2pcs Men's Suit Fashion Set Jacket Suit and Trousers Elegant Business Casual Banquet Party",
"rating": 4.7,
"storeId": 634418212822033,
"currency": "PLN",
"imageUrl": "<https://img.kwcdn.com/product/fancy/4b9f58cb-9d38-4d66-9a6e-d4be3e179647.jpg>",
"videoUrl": "<https://goods-vod.kwcdn.com/goods-video/b99e09f76414cc6c3aafc51a034430731169f12d.f30.mp4>",
"productUrl": "<https://www.temu.com/goods.html?_bg_fs=1&goods_id=601099769178067&top_gallery_url=https%3A%2F%2Fimg.kwcdn.com%2Fproduct%2Ffancy%2F4b9f58cb-9d38-4d66-9a6e-d4be3e179647.jpg&spec_id=16080&spec_gallery_id=26154&refer_page_sn=10009&refer_source=0&freesia_scene=2&_oak_freesia_scene=2&_oak_rec_ext_1=MTc2MDA&_oak_gallery_order=1363536076%2C541980147%2C1802818236%2C579012224%2C886054914&spec_ids=16080%2C3002%2C16091&_oak_mp_inf=ENPP3ZGn1ogBGiAwNjAzMDY1MzgxOTE0MjJjOTgzNzU4OTUyMDU0M2UyMiDejtfC1TI%3D&search_key=men%20suits>",
"salesCount": "7.4K+",
"description": "2pcs mens suit fashion set jacket suit and trousers elegant business casual banquet party",
"totalReviews": "437",
"originalPrice": 196.69,
"additionalImages": [
"<https://img.kwcdn.com/product/fancy/4b9f58cb-9d38-4d66-9a6e-d4be3e179647.jpg>",
"<https://img.kwcdn.com/product/fancy/da7dd1b0-2479-4cb4-b808-ea9027e279b0.jpg>",
"<https://img.kwcdn.com/product/fancy/3f690c9d-a63e-4a84-a7a3-936a27a26173.jpg>"
],
"discountPercentage": 1
},
{
"_fromStrapi": true,
"id": "601099952001588",
"price": 241.9,
"title": "[Lightweight Design] Men's 3pcs Formal Suit Set - Solid Color, Includes Lapel Blazer, Vest, and Dress Pants - Ideal for Business Events, Graduations, Weddings, and Parties",
"rating": 4.7,
"storeId": 634418218128554,
"currency": "PLN",
"imageUrl": "<https://img.kwcdn.com/product/fancy/9873815e-3e00-4845-a34e-adbe89bccf0c.jpg>",
"videoUrl": null,
"productUrl": "<https://www.temu.com/goods.html?_bg_fs=1&goods_id=601099952001588&top_gallery_url=https%3A%2F%2Fimg.kwcdn.com%2Fproduct%2Ffancy%2F9873815e-3e00-4845-a34e-adbe89bccf0c.jpg&spec_id=3002&spec_gallery_id=37302&refer_page_sn=10009&refer_source=0&freesia_scene=2&_oak_freesia_scene=2&_oak_rec_ext_1=MjQxOTA&_oak_gallery_order=835560970%2C1242704124%2C1401190163%2C34598280%2C910782200&spec_ids=3002%2C16091&_oak_mp_inf=ELSk9Oin1ogBGiAwNjAzMDY1MzgxOTE0MjJjOTgzNzU4OTUyMDU0M2UyMiDejtfC1TI%3D&search_key=men%20suits>",
"salesCount": "1.2K+",
"description": "lightweight design mens 3pcs formal suit set solid color lapel vest and dress pants ideal for business events graduations weddings and parties",
"totalReviews": "52",
"originalPrice": 304.63,
"additionalImages": [
"<https://img.kwcdn.com/product/fancy/9873815e-3e00-4845-a34e-adbe89bccf0c.jpg>",
"<https://img.kwcdn.com/product/fancy/33277889-a371-4682-af19-0d89cdb671c1.jpg>"
],
"discountPercentage": null
}
]

How to use Temu API

Sign up for Apify account01

Creating an account is quick and free — no credit card required. Your account gives you access to more than 5,000 scrapers and APIs.

Get started for free
Install Apify Python client02

Install the Apify Python client using pip: pip install apify-client. This package provides a simple interface to interact with Temu API from your Python applications.

Get your Apify API token03

Go to settings in the Apify console and navigate to the “API & Integrations” tab. There, create a new token and save it for later.

Integrate Temu API04

Navigate to the Temu API page and click on the API dropdown menu in the top right corner. In the dropdown menu, you can see API clients, API endpoints, and more. Use the provided Python code examples to integrate Temu API into your Python application.

Open Temu Python API
Get your Temu data via API05

The Temu API returns structured JSON data that works perfectly with pandas, NumPy, and other Python data analysis libraries.

Why use Apify?

Never get blocked

Every plan (free included) comes with Apify Proxy, which is great for avoiding blocking and giving you access to geo-specific content.

Customers love us

We truly care about the satisfaction of our users and thanks to that we're one of the best-rated data extraction platforms on both G2 and Capterra.

Monitor your runs

With our latest monitoring features, you always have immediate access to valuable insights on the status of your web scraping tasks.

Export to various formats

Your datasets can be exported to any format that suits your data workflow, including Excel, CSV, JSON, XML, HTML table, JSONL, and RSS.

Integrate Apify to your workflow

You can integrate your Apify runs with platforms such as Zapier, Make, Keboola, Google Drive, or GitHub. Connect with practically any cloud service or web app.

Large developer community

Apify is built by developers, so you'll be in good hands if you have any technical questions. Our Discord server is always here to help!

Frequently asked questions

No, Temu does not provide an official Python API client for public use. However, our Temu Listings Scraper provides a reliable alternative by extracting structured product data directly from Temu product pages, giving you access to the same information you would get from an official Python API client.

Yes, you can try the Temu Python API client for free! Apify offers free credits for new users to test the Python API client before committing to a paid plan. The Python API client is priced at just $1.20 per 1,000 products, making it an affordable solution for extracting Temu data.

With the Temu Python API client, you can extract comprehensive product data including product IDs, titles, descriptions, current prices, original prices, discount percentages, currency, sales counts, ratings, total reviews, main product images, additional images, video URLs, store IDs, and direct product URLs. This data is perfect for price tracking, market research, and competitor analysis.

Getting started with our Temu Python API is easy — simply create a free Apify account, get your API token, and start using the Temu API in Python, JavaScript, CLI, cURL, OpenAPI, or MCP.

Get started with Temu API Python client today

Get your first Temu data in Python in less than 5 minutes. No credit card required. No commitment. Cancel anytime.