{"openapi":"3.1.0","info":{"title":"Temu Regional Products Prices and Variants (x402 & MCP)","version":"0.1.0","description":"Temu product listings, prices, ratings, sold counts, images and SKU variants across regional storefronts, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402 on Base. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://ai.opendata.best"}],"paths":{"/s/temu-com/v1/search":{"post":{"operationId":"temu_com_search","summary":"Temu Regional Products Prices and Variants: Discover Temu products across search, channels and categories","description":"Temu product rows via serpDiscover, categorySearch, channelSearch, homeDiscover, seoSearch or regions. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["temu-com","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Auto selects a mode from the product, category or keyword target you enter; keywords run serpDiscover while keywordSearch is temporarily unavailable. Choose homeDiscover or regions explicitly; they need no target. Selecting keywordSearch or channelSearch, both temporarily unavailable, stops the run at once without charging results: use serpDiscover for keywords, homeDiscover for live products, or seoPdp with product IDs.","default":"auto","enum":["auto","serpDiscover","keywordSearch","categorySearch","channelSearch","homeDiscover","seoSearch","regions"]},"query":{"type":"string","description":"One search phrase for serpDiscover or seoSearch. keywordSearch is temporarily unavailable."},"keyword":{"type":"string","description":"Alternative field name for query."},"keywords":{"type":"array","items":{"type":"string"},"description":"Search phrases to collect in the selected search mode. maxResults applies separately to each phrase."},"categoryUrl":{"type":"string","description":"A full Temu category link containing -o3-<ID>.html.","pattern":"^(https?://)?([a-z0-9-]+\\.)*temu\\.com(/.*)?$"},"categorySlug":{"type":"string","description":"The category name from its URL, such as cables-adapters. Use it with optId when you know both."},"optId":{"type":"string","description":"Category identifier from its Temu URL, such as 2643 for cables-adapters."},"catId":{"type":"string","description":"Alternative field name for optId."},"bucket":{"type":"string","description":"Catalog group for selecting a category or filtering category metadata in regions mode."},"channel":{"type":"string","description":"Channel for channelSearch, which is temporarily unavailable. Use homeDiscover for live products or seoPdp instead.","enum":["","best-sellers","full-star","new-in","lightning-deals","clearance"]},"region":{"type":"string","description":"Temu region code, such as us, uk, de, fr, au or ph. The Actor uses us when no region is entered; availability can vary by mode.","pattern":"^[a-zA-Z]{2,6}$"},"sort":{"type":"string","description":"Requested listing order: default, sales, new, price_asc, price_desc or rating. The source may not honor every sort option."},"minPrice":{"type":"number","description":"Requested minimum listing price. Filtering depends on the source page."},"maxPrice":{"type":"number","description":"Requested maximum listing price. Filtering depends on the source page."},"refine":{"type":"string","description":"A known Temu filter string. Leave empty if you do not have one."},"currency":{"type":"string","description":"Optional currency hint, such as USD, PHP or EUR. It does not convert prices or guarantee that the source uses this currency."},"browseCountry":{"type":"string","description":"Country selection used instead of region when supplied. For example, US selects us, GB selects uk, and PH selects ph."},"expandVariants":{"type":"boolean","description":"Return available SKU variants as separately billed rows after their parent product. Off by default; product and variant rows share maxResults.","default":false},"enrichDetails":{"type":"boolean","description":"Add available product-page details to listing or discovery rows, up to enrichLimit. Off by default; missing details remain empty or absent.","default":false},"page":{"type":"integer","description":"Starting page for keyword, channel or category listings, counted from 1.","default":1,"minimum":1,"maximum":100},"maxPages":{"type":"integer","description":"Maximum number of listing pages or home recommendation batches to request. The row allowance can stop collection earlier.","default":1,"minimum":1,"maximum":20},"maxResults":{"type":"integer","description":"Maximum rows per keyword, product ID or single target; product and variant rows share the allowance. Default 70, collected in parts of 70 for larger requests, subject to the spending limit and Free-plan limits of 200 rows per run and 10 runs; no-target example runs use a one-row cap.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"mode":"serpDiscover","query":"usb cable","region":"us","maxResults":10}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_temu_com"},"example":{"jobId":"job_temu-com_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"goodsId":"example_goodsId","skuId":"example_skuId","type":"example_type","title":"example_title","productTitle":"example_productTitle","price":"example_price"}],"meta":{"site":"temu-com","endpoint":"search","maxResults":10,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":30000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/temu-com/v1/products":{"post":{"operationId":"temu_com_products","summary":"Temu Regional Products Prices and Variants: Temu product details and variants by goodsIds or URL","description":"Product and optional SKU variant rows via login-free seoPdp or full productDetail. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["temu-com","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Auto selects a mode from the product, category or keyword target you enter; keywords run serpDiscover while keywordSearch is temporarily unavailable. Choose homeDiscover or regions explicitly; they need no target. Selecting keywordSearch or channelSearch, both temporarily unavailable, stops the run at once without charging results: use serpDiscover for keywords, homeDiscover for live products, or seoPdp with product IDs.","default":"seoPdp","enum":["seoPdp","productDetail"]},"goodsIds":{"type":"array","items":{"type":"string"},"description":"Product IDs to collect with seoPdp, or seed product IDs for serpDiscover. Each ID has its own maxResults allowance."},"goodsId":{"type":"string","description":"The numeric product ID from a Temu product link, such as 601102486859949.","pattern":"^\\s*\\d{6,20}\\s*$"},"productUrl":{"type":"string","description":"A Temu product link containing goods_id= or -g-<ID>.html. Clear the sample link when searching by keyword or category. Next to goodsIds, a link you entered is collected as one more product ID; the untouched sample link is ignored.","pattern":"^(https?://)?([a-z0-9-]+\\.)*temu\\.com(/.*)?$"},"region":{"type":"string","description":"Temu region code, such as us, uk, de, fr, au or ph. The Actor uses us when no region is entered; availability can vary by mode.","pattern":"^[a-zA-Z]{2,6}$"},"currency":{"type":"string","description":"Optional currency hint, such as USD, PHP or EUR. It does not convert prices or guarantee that the source uses this currency."},"expandVariants":{"type":"boolean","description":"Return available SKU variants as separately billed rows after their parent product. Off by default; product and variant rows share maxResults.","default":false},"enrichDetails":{"type":"boolean","description":"Add available product-page details to listing or discovery rows, up to enrichLimit. Off by default; missing details remain empty or absent.","default":false},"maxResults":{"type":"integer","description":"Maximum rows per keyword, product ID or single target; product and variant rows share the allowance. Default 70, collected in parts of 70 for larger requests, subject to the spending limit and Free-plan limits of 200 rows per run and 10 runs; no-target example runs use a one-row cap.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"mode":"seoPdp","goodsIds":["601102486859949"],"region":"us","maxResults":10}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_temu_com"},"example":{"jobId":"job_temu-com_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"goodsId":"example_goodsId","skuId":"example_skuId","type":"example_type","title":"example_title","productTitle":"example_productTitle","price":"example_price"}],"meta":{"site":"temu-com","endpoint":"products","maxResults":10,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":30000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/temu-com/v1/health":{"get":{"operationId":"temu_com_health","summary":"Temu Regional Products Prices and Variants: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["temu-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_temu_com":{"type":"object","properties":{"goodsId":{"type":["string","null"],"title":"Goods ID"},"skuId":{"type":["string","null"],"title":"SKU ID"},"type":{"type":["string","null"],"title":"Row type"},"title":{"type":["string","null"],"title":"Title"},"productTitle":{"type":["string","null"],"title":"Parent product"},"price":{"type":["string","null"],"title":"Price"},"salePrice":{"type":["string","null"],"title":"Sale price"},"currency":{"type":["string","null"],"title":"Currency"},"region":{"type":["string","null"],"title":"Region"},"mode":{"type":["string","null"],"title":"Mode"},"url":{"type":["string","null"],"format":"uri","title":"URL"}},"additionalProperties":true},"Response_temu_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_temu_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}}}