Key Points
- Pagination:
pageStarts from 1;pageSizedefault 20, maximum 100 (recommended ≤50). - Range parameters:
*Begin/*Endappear in pairs (price, rating, reviews, total/weekly/daily sales, listing time), forming the upstream range. - Category:
categoryHomeFront-end category ID,categoryBackendback-end category ID; you can first use Temu category search to get the id. - Managed mode:
isLocal(0=fully managed, 1=semi-managed); for semi-managed, you can useregionto limit the region (multiple values separated by commas). - Listed/delisted:
soldOut(0=listed, 1=delisted). - Tags:
tags/customTagsseparate multiple values with commas. - Sorting:
sortByis a "field-direction" string, such asorder_week-0(weekly sales descending, default),price-0、order_total-0、rating-0。
Script (optional)
Command-line debugging:python scripts/temu_product_query.py '<JSON>'(requires LINKFOXAGENT_API_KEY). See details at the end of references/api.md .
Reference
For the input/output parameter table, see references/api.md。
Resolve authentication and compute power issues
When the following abnormal situations occur, use references/onboarding.md to guide problem resolution:
Abnormal situations
- API Key not configured: the environment variable is not configured
LINKFOX_AGENT_API_KEY, andLINKFOXAGENT_API_KEY。 - Response 401 or 402 status code
- Response indicates insufficient compute power or balance: the message contains "insufficient compute power balance/insufficient billing/insufficient balance/quota exceeded/insufficient balance/package expired/recharge required/please recharge", or content with a similar meaning.
Compute power consumption rules
Billed by dynamic rules: compute power consumed = number of products × 1.8. Billing is based on the number of items returned on this page; going to the next page is essentially sending another request, and it is recalculated based on the number of items returned on the next page.
Important: the service of this skill is dynamically calculated by a multiplier and may consume a large amount of compute power at once. You must remind the user and let the user decide whether to continue.