product_idsstringwymagane
JSON array of numeric product ID strings (up to 40). Example: '["605731197670167","605714873454696"]'.
https://api.sandbase.ai/v1/api/temu/batch-get-productsBatch fetch product data for multiple product IDs in one call (up to 40). For each product ID, returns both raw API data and a flat normalized DTO. Each product result carries its own status field so single failures don't break the batch. Products are looked up via Temu's catalog search by goods_id.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Batch fetch product data for multiple product IDs in one call (up to 40). For each product ID, returns both raw API data and a flat normalized DTO. Each product result carries its own status field so single failures don't break the batch. Products are looked up via Temu's catalog search by goods_id.
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "temu/batch-get-products", "locale": "en", "include_dto": true, "include_raw": true, "product_ids": "[\"605731197670167\"]"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
product_ids | string | Yes | JSON array of numeric product ID strings (up to 40). Example: '["605731197670167","605714873454696"]'. |
include_dto | boolean | No | If true, include the flat normalized DTO per product. |
include_raw | boolean | No | If true, include the raw API response data per product. |
locale | string | No | Locale/language code for localized results (e.g. 'en', 'it', 'de', 'fr', 'es'). |
Flat $0.03 per call. Failed calls are not charged.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/temu/batch-get-products" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"locale": "en",
"include_dto": true,
"include_raw": true,
"product_ids": "[\"605731197670167\"]"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
product_idsstringwymaganeJSON array of numeric product ID strings (up to 40). Example: '["605731197670167","605714873454696"]'.
localestringLocale/language code for localized results (e.g. 'en', 'it', 'de', 'fr', 'es').
Domyślnie: "en"
include_dtobooleanIf true, include the flat normalized DTO per product.
Domyślnie: true
include_rawbooleanIf true, include the raw API response data per product.
Domyślnie: true
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Temu Batch ProductsTo API Temu | $0.03 za wywołanie | JSON |
Temu | $0.03 za wywołanie | JSON |
Temu | $0.03 za wywołanie | JSON |
Temu | $0.03 za wywołanie | JSON |
Temu | $0.03 za wywołanie | JSON |
Temu | $0.03 za wywołanie | JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/temu/batch-get-products z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.03 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: product_ids (string). Opcjonalne: locale (string), include_dto (boolean) i include_raw (boolean). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).
Nie. Temu Batch Products działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Temu.