@scrapecreators/cli 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -186,7 +186,7 @@ export const tiktokShopApis = {
|
|
|
186
186
|
method: "GET",
|
|
187
187
|
description:
|
|
188
188
|
"Get the products from a TikTok Shop. This endpoint costs 1 credit per request. Use the cursor from the response to paginate through results.",
|
|
189
|
-
fullDescription: "Lists all products from a specific TikTok Shop store by its URL. Returns an array of product objects each with `title`, `cover` images, `url`, `price` info, `sold_count`, `review_count`, and `rating`. Paginate with `cursor` from the previous response; filter by region.",
|
|
189
|
+
fullDescription: "Lists all products from a specific TikTok Shop store by its URL. Returns an array of product objects each with `title`, `cover` images, `url`, `price` info, `sold_count`, `review_count`, and `rating`. Paginate with `cursor` from the previous response; filter by region; use `sort_by=top` for best-selling products or `sort_by=new_releases` for newest products.",
|
|
190
190
|
path: "/v1/tiktok/shop/products",
|
|
191
191
|
params: [
|
|
192
192
|
{
|
|
@@ -205,6 +205,15 @@ export const tiktokShopApis = {
|
|
|
205
205
|
"Cursor parameter from the previous response to retrieve the next page of products. Omit for the first page.",
|
|
206
206
|
placeholder: "",
|
|
207
207
|
},
|
|
208
|
+
{
|
|
209
|
+
name: "sort_by",
|
|
210
|
+
type: "select",
|
|
211
|
+
required: false,
|
|
212
|
+
options: ["top", "new_releases"],
|
|
213
|
+
placeholder: "top",
|
|
214
|
+
description:
|
|
215
|
+
"Sort products by best-selling items (`top`) or newest products (`new_releases`). Defaults to `top`.",
|
|
216
|
+
},
|
|
208
217
|
{
|
|
209
218
|
name: "region",
|
|
210
219
|
type: "select",
|