Parse a Temu URL
Turn any Temu URL into its identifiers: what it points at (product, search, store, category, short-link, home or other), plus the goodsId, the selected skuId, storeId, categoryId, search query and the storefront country the URL belongs to — each null when the URL does not carry it. It makes no request to Temu, so it is the free way to turn a pasted link into the goodsId and skuId that /product and /price-check take. Short temu.to links cannot be read without opening them: open the link and pass the full URL. Parsing a URL does not consume a credit.
/resolve-url Utility https://api.fetchlayer.dev/temu/resolve-url Headers
Authorization string required Bearer token — your FetchLayer API key.
Parameters
url string required Any Temu URL.
format string optional json or markdown. (default: json)
Response Fields
resolve-url
Parse a Temu URL
resultType string Always resolved-url.
url string The URL that was parsed.
kind string product, search, store, category, short-link, home or other.
goodsId string The product id, when kind is product.
skuId string The variant the URL selects, when it selects one.
storeId string The store id, when kind is store.
categoryId string The category id, when kind is category.
searchQuery string The search terms, when kind is search. Search results themselves are not available.
market string The storefront country the URL belongs to, when it says — pass it as market.
notes string[] Caveats, such as a short link that has to be opened first.
Request
curl -X POST "https://api.fetchlayer.dev/temu/resolve-url" \
-H "Authorization: Bearer ss-your-key" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.temu.com/uk/some-product-g-607033881415363.html?sku_id=117585735607558"}'Response
{
"resultType": "resolved-url",
"url": "https://www.temu.com/uk/some-product-g-607033881415363.html?sku_id=117585735607558",
"goodsId": "607033881415363",
"skuId": "117585735607558",
"storeId": null,
"categoryId": null,
"searchQuery": null,
"market": "GB",
"kind": "product",
"notes": []
}