scrapebadger 0.49.0 → 0.51.0
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.
- package/dist/index.d.cts +22 -15
- package/dist/index.d.ts +22 -15
- package/dist/index.js +6 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -335,10 +335,12 @@ interface VintedItemSummary {
|
|
|
335
335
|
*/
|
|
336
336
|
seller_country_code: string | null;
|
|
337
337
|
/**
|
|
338
|
-
* Visual similarity to the query image,
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
*
|
|
338
|
+
* Visual similarity to the query image, on Vinted's own unbounded scale --
|
|
339
|
+
* it read 0-1 in Sep 2026 and ~36-44 since, and can change again without
|
|
340
|
+
* notice. ORDINAL ONLY: rank against the other items in the same response,
|
|
341
|
+
* never against a fixed threshold and never across responses. Populated
|
|
342
|
+
* only by `searchByImage`, and only on the calls where Vinted returns a
|
|
343
|
+
* ranking; null otherwise. A null says nothing about the item.
|
|
342
344
|
*/
|
|
343
345
|
similarity_score: number | null;
|
|
344
346
|
}
|
|
@@ -360,9 +362,18 @@ interface VintedItemDetail extends VintedItemSummary {
|
|
|
360
362
|
category: string[];
|
|
361
363
|
/**
|
|
362
364
|
* Vinted's relative "listed" label, localized (e.g. "Il y a une semaine").
|
|
363
|
-
* Not an ISO timestamp
|
|
365
|
+
* Not an ISO timestamp — some markets render it without a number at all
|
|
366
|
+
* ("godziny"), so it cannot be parsed into a date. Use `uploaded_at`.
|
|
364
367
|
*/
|
|
365
368
|
upload_date: string;
|
|
369
|
+
/**
|
|
370
|
+
* Approximate absolute upload time, ISO 8601 UTC (e.g.
|
|
371
|
+
* "2026-09-23T11:28:44Z"), derived from the earliest photo Vinted
|
|
372
|
+
* timestamps. A lower bound on age: replacing a photo after listing moves
|
|
373
|
+
* it forward. Null when Vinted stamps no photo. Item detail only — search
|
|
374
|
+
* and image search responses carry no photo timestamps.
|
|
375
|
+
*/
|
|
376
|
+
uploaded_at: string | null;
|
|
366
377
|
/** Whether the item can be purchased */
|
|
367
378
|
can_buy: boolean;
|
|
368
379
|
/** Whether instant buy is enabled */
|
|
@@ -7055,6 +7066,8 @@ interface TikTokRelatedParams {
|
|
|
7055
7066
|
region?: string;
|
|
7056
7067
|
/** Number of items to return (1-50) */
|
|
7057
7068
|
count?: number;
|
|
7069
|
+
/** Opaque continuation cursor; expires after 15 minutes. */
|
|
7070
|
+
cursor?: string;
|
|
7058
7071
|
}
|
|
7059
7072
|
/** Options for the transcript endpoint. */
|
|
7060
7073
|
interface TikTokTranscriptParams {
|
|
@@ -7111,7 +7124,7 @@ interface TikTokTrendingVideosParams {
|
|
|
7111
7124
|
interface TikTokTrendingParams {
|
|
7112
7125
|
/** Content region (ISO 3166-1 alpha-2, default "US") */
|
|
7113
7126
|
region?: string;
|
|
7114
|
-
/**
|
|
7127
|
+
/** Historical windows are unavailable; omit this parameter. */
|
|
7115
7128
|
period?: number;
|
|
7116
7129
|
/** Number of items to return (1-50) */
|
|
7117
7130
|
count?: number;
|
|
@@ -7193,9 +7206,7 @@ declare class UsersClient {
|
|
|
7193
7206
|
/**
|
|
7194
7207
|
* Get a TikTok user's followers (best-effort; often guest-gated).
|
|
7195
7208
|
*
|
|
7196
|
-
*
|
|
7197
|
-
* Kept for forward-compatibility — the endpoint may be re-enabled when
|
|
7198
|
-
* session-based access is supported.
|
|
7209
|
+
* Public data is available without a TikTok account. Hidden lists return 403.
|
|
7199
7210
|
*
|
|
7200
7211
|
* @param username - The user's @handle.
|
|
7201
7212
|
* @param options - Optional parameters (region, count, cursor).
|
|
@@ -7205,9 +7216,7 @@ declare class UsersClient {
|
|
|
7205
7216
|
/**
|
|
7206
7217
|
* Get accounts a TikTok user follows (best-effort).
|
|
7207
7218
|
*
|
|
7208
|
-
*
|
|
7209
|
-
* Kept for forward-compatibility — the endpoint may be re-enabled when
|
|
7210
|
-
* session-based access is supported.
|
|
7219
|
+
* Public data is available without a TikTok account. Hidden lists return 403.
|
|
7211
7220
|
*
|
|
7212
7221
|
* @param username - The user's @handle.
|
|
7213
7222
|
* @param options - Optional parameters (region, count, cursor).
|
|
@@ -7217,9 +7226,7 @@ declare class UsersClient {
|
|
|
7217
7226
|
/**
|
|
7218
7227
|
* Get a TikTok user's liked videos (only if their Liked tab is public).
|
|
7219
7228
|
*
|
|
7220
|
-
*
|
|
7221
|
-
* Kept for forward-compatibility — the endpoint may be re-enabled when
|
|
7222
|
-
* session-based access is supported.
|
|
7229
|
+
* Public data is available without a TikTok account. Hidden lists return 403.
|
|
7223
7230
|
*
|
|
7224
7231
|
* @param username - The user's @handle.
|
|
7225
7232
|
* @param options - Optional parameters (region, count).
|
package/dist/index.d.ts
CHANGED
|
@@ -335,10 +335,12 @@ interface VintedItemSummary {
|
|
|
335
335
|
*/
|
|
336
336
|
seller_country_code: string | null;
|
|
337
337
|
/**
|
|
338
|
-
* Visual similarity to the query image,
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
*
|
|
338
|
+
* Visual similarity to the query image, on Vinted's own unbounded scale --
|
|
339
|
+
* it read 0-1 in Sep 2026 and ~36-44 since, and can change again without
|
|
340
|
+
* notice. ORDINAL ONLY: rank against the other items in the same response,
|
|
341
|
+
* never against a fixed threshold and never across responses. Populated
|
|
342
|
+
* only by `searchByImage`, and only on the calls where Vinted returns a
|
|
343
|
+
* ranking; null otherwise. A null says nothing about the item.
|
|
342
344
|
*/
|
|
343
345
|
similarity_score: number | null;
|
|
344
346
|
}
|
|
@@ -360,9 +362,18 @@ interface VintedItemDetail extends VintedItemSummary {
|
|
|
360
362
|
category: string[];
|
|
361
363
|
/**
|
|
362
364
|
* Vinted's relative "listed" label, localized (e.g. "Il y a une semaine").
|
|
363
|
-
* Not an ISO timestamp
|
|
365
|
+
* Not an ISO timestamp — some markets render it without a number at all
|
|
366
|
+
* ("godziny"), so it cannot be parsed into a date. Use `uploaded_at`.
|
|
364
367
|
*/
|
|
365
368
|
upload_date: string;
|
|
369
|
+
/**
|
|
370
|
+
* Approximate absolute upload time, ISO 8601 UTC (e.g.
|
|
371
|
+
* "2026-09-23T11:28:44Z"), derived from the earliest photo Vinted
|
|
372
|
+
* timestamps. A lower bound on age: replacing a photo after listing moves
|
|
373
|
+
* it forward. Null when Vinted stamps no photo. Item detail only — search
|
|
374
|
+
* and image search responses carry no photo timestamps.
|
|
375
|
+
*/
|
|
376
|
+
uploaded_at: string | null;
|
|
366
377
|
/** Whether the item can be purchased */
|
|
367
378
|
can_buy: boolean;
|
|
368
379
|
/** Whether instant buy is enabled */
|
|
@@ -7055,6 +7066,8 @@ interface TikTokRelatedParams {
|
|
|
7055
7066
|
region?: string;
|
|
7056
7067
|
/** Number of items to return (1-50) */
|
|
7057
7068
|
count?: number;
|
|
7069
|
+
/** Opaque continuation cursor; expires after 15 minutes. */
|
|
7070
|
+
cursor?: string;
|
|
7058
7071
|
}
|
|
7059
7072
|
/** Options for the transcript endpoint. */
|
|
7060
7073
|
interface TikTokTranscriptParams {
|
|
@@ -7111,7 +7124,7 @@ interface TikTokTrendingVideosParams {
|
|
|
7111
7124
|
interface TikTokTrendingParams {
|
|
7112
7125
|
/** Content region (ISO 3166-1 alpha-2, default "US") */
|
|
7113
7126
|
region?: string;
|
|
7114
|
-
/**
|
|
7127
|
+
/** Historical windows are unavailable; omit this parameter. */
|
|
7115
7128
|
period?: number;
|
|
7116
7129
|
/** Number of items to return (1-50) */
|
|
7117
7130
|
count?: number;
|
|
@@ -7193,9 +7206,7 @@ declare class UsersClient {
|
|
|
7193
7206
|
/**
|
|
7194
7207
|
* Get a TikTok user's followers (best-effort; often guest-gated).
|
|
7195
7208
|
*
|
|
7196
|
-
*
|
|
7197
|
-
* Kept for forward-compatibility — the endpoint may be re-enabled when
|
|
7198
|
-
* session-based access is supported.
|
|
7209
|
+
* Public data is available without a TikTok account. Hidden lists return 403.
|
|
7199
7210
|
*
|
|
7200
7211
|
* @param username - The user's @handle.
|
|
7201
7212
|
* @param options - Optional parameters (region, count, cursor).
|
|
@@ -7205,9 +7216,7 @@ declare class UsersClient {
|
|
|
7205
7216
|
/**
|
|
7206
7217
|
* Get accounts a TikTok user follows (best-effort).
|
|
7207
7218
|
*
|
|
7208
|
-
*
|
|
7209
|
-
* Kept for forward-compatibility — the endpoint may be re-enabled when
|
|
7210
|
-
* session-based access is supported.
|
|
7219
|
+
* Public data is available without a TikTok account. Hidden lists return 403.
|
|
7211
7220
|
*
|
|
7212
7221
|
* @param username - The user's @handle.
|
|
7213
7222
|
* @param options - Optional parameters (region, count, cursor).
|
|
@@ -7217,9 +7226,7 @@ declare class UsersClient {
|
|
|
7217
7226
|
/**
|
|
7218
7227
|
* Get a TikTok user's liked videos (only if their Liked tab is public).
|
|
7219
7228
|
*
|
|
7220
|
-
*
|
|
7221
|
-
* Kept for forward-compatibility — the endpoint may be re-enabled when
|
|
7222
|
-
* session-based access is supported.
|
|
7229
|
+
* Public data is available without a TikTok account. Hidden lists return 403.
|
|
7223
7230
|
*
|
|
7224
7231
|
* @param username - The user's @handle.
|
|
7225
7232
|
* @param options - Optional parameters (region, count).
|
package/dist/index.js
CHANGED
|
@@ -5305,9 +5305,7 @@ var UsersClient5 = class {
|
|
|
5305
5305
|
/**
|
|
5306
5306
|
* Get a TikTok user's followers (best-effort; often guest-gated).
|
|
5307
5307
|
*
|
|
5308
|
-
*
|
|
5309
|
-
* Kept for forward-compatibility — the endpoint may be re-enabled when
|
|
5310
|
-
* session-based access is supported.
|
|
5308
|
+
* Public data is available without a TikTok account. Hidden lists return 403.
|
|
5311
5309
|
*
|
|
5312
5310
|
* @param username - The user's @handle.
|
|
5313
5311
|
* @param options - Optional parameters (region, count, cursor).
|
|
@@ -5321,9 +5319,7 @@ var UsersClient5 = class {
|
|
|
5321
5319
|
/**
|
|
5322
5320
|
* Get accounts a TikTok user follows (best-effort).
|
|
5323
5321
|
*
|
|
5324
|
-
*
|
|
5325
|
-
* Kept for forward-compatibility — the endpoint may be re-enabled when
|
|
5326
|
-
* session-based access is supported.
|
|
5322
|
+
* Public data is available without a TikTok account. Hidden lists return 403.
|
|
5327
5323
|
*
|
|
5328
5324
|
* @param username - The user's @handle.
|
|
5329
5325
|
* @param options - Optional parameters (region, count, cursor).
|
|
@@ -5337,9 +5333,7 @@ var UsersClient5 = class {
|
|
|
5337
5333
|
/**
|
|
5338
5334
|
* Get a TikTok user's liked videos (only if their Liked tab is public).
|
|
5339
5335
|
*
|
|
5340
|
-
*
|
|
5341
|
-
* Kept for forward-compatibility — the endpoint may be re-enabled when
|
|
5342
|
-
* session-based access is supported.
|
|
5336
|
+
* Public data is available without a TikTok account. Hidden lists return 403.
|
|
5343
5337
|
*
|
|
5344
5338
|
* @param username - The user's @handle.
|
|
5345
5339
|
* @param options - Optional parameters (region, count).
|
|
@@ -5347,7 +5341,7 @@ var UsersClient5 = class {
|
|
|
5347
5341
|
*/
|
|
5348
5342
|
async liked(username, options = {}) {
|
|
5349
5343
|
return this.client.request(`/v1/tiktok/users/${username}/liked`, {
|
|
5350
|
-
params: { region: options.region, count: options.count }
|
|
5344
|
+
params: { region: options.region, count: options.count, cursor: options.cursor }
|
|
5351
5345
|
});
|
|
5352
5346
|
}
|
|
5353
5347
|
/**
|
|
@@ -5359,7 +5353,7 @@ var UsersClient5 = class {
|
|
|
5359
5353
|
*/
|
|
5360
5354
|
async reposts(username, options = {}) {
|
|
5361
5355
|
return this.client.request(`/v1/tiktok/users/${username}/reposts`, {
|
|
5362
|
-
params: { region: options.region, count: options.count }
|
|
5356
|
+
params: { region: options.region, count: options.count, cursor: options.cursor }
|
|
5363
5357
|
});
|
|
5364
5358
|
}
|
|
5365
5359
|
};
|
|
@@ -5421,7 +5415,7 @@ var VideosClient2 = class {
|
|
|
5421
5415
|
*/
|
|
5422
5416
|
async related(videoId, options = {}) {
|
|
5423
5417
|
return this.client.request(`/v1/tiktok/videos/${videoId}/related`, {
|
|
5424
|
-
params: { region: options.region, count: options.count }
|
|
5418
|
+
params: { region: options.region, count: options.count, cursor: options.cursor }
|
|
5425
5419
|
});
|
|
5426
5420
|
}
|
|
5427
5421
|
/**
|