scrapebadger 0.50.0 → 0.51.1
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 +8 -10
- package/dist/index.d.ts +8 -10
- 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
|
@@ -6491,6 +6491,8 @@ interface TikTokVideoMeta {
|
|
|
6491
6491
|
download_addr?: string | null;
|
|
6492
6492
|
/** clean MP4 */
|
|
6493
6493
|
download_no_watermark_addr?: string | null;
|
|
6494
|
+
/** Required CDN headers from video detail; use with its matching media URLs. */
|
|
6495
|
+
media_headers?: Record<string, string> | null;
|
|
6494
6496
|
has_watermark?: boolean | null;
|
|
6495
6497
|
volume_loudness?: number | null;
|
|
6496
6498
|
volume_peak?: number | null;
|
|
@@ -7066,6 +7068,8 @@ interface TikTokRelatedParams {
|
|
|
7066
7068
|
region?: string;
|
|
7067
7069
|
/** Number of items to return (1-50) */
|
|
7068
7070
|
count?: number;
|
|
7071
|
+
/** Opaque continuation cursor; expires after 15 minutes. */
|
|
7072
|
+
cursor?: string;
|
|
7069
7073
|
}
|
|
7070
7074
|
/** Options for the transcript endpoint. */
|
|
7071
7075
|
interface TikTokTranscriptParams {
|
|
@@ -7122,7 +7126,7 @@ interface TikTokTrendingVideosParams {
|
|
|
7122
7126
|
interface TikTokTrendingParams {
|
|
7123
7127
|
/** Content region (ISO 3166-1 alpha-2, default "US") */
|
|
7124
7128
|
region?: string;
|
|
7125
|
-
/**
|
|
7129
|
+
/** Historical windows are unavailable; omit this parameter. */
|
|
7126
7130
|
period?: number;
|
|
7127
7131
|
/** Number of items to return (1-50) */
|
|
7128
7132
|
count?: number;
|
|
@@ -7204,9 +7208,7 @@ declare class UsersClient {
|
|
|
7204
7208
|
/**
|
|
7205
7209
|
* Get a TikTok user's followers (best-effort; often guest-gated).
|
|
7206
7210
|
*
|
|
7207
|
-
*
|
|
7208
|
-
* Kept for forward-compatibility — the endpoint may be re-enabled when
|
|
7209
|
-
* session-based access is supported.
|
|
7211
|
+
* Public data is available without a TikTok account. Hidden lists return 403.
|
|
7210
7212
|
*
|
|
7211
7213
|
* @param username - The user's @handle.
|
|
7212
7214
|
* @param options - Optional parameters (region, count, cursor).
|
|
@@ -7216,9 +7218,7 @@ declare class UsersClient {
|
|
|
7216
7218
|
/**
|
|
7217
7219
|
* Get accounts a TikTok user follows (best-effort).
|
|
7218
7220
|
*
|
|
7219
|
-
*
|
|
7220
|
-
* Kept for forward-compatibility — the endpoint may be re-enabled when
|
|
7221
|
-
* session-based access is supported.
|
|
7221
|
+
* Public data is available without a TikTok account. Hidden lists return 403.
|
|
7222
7222
|
*
|
|
7223
7223
|
* @param username - The user's @handle.
|
|
7224
7224
|
* @param options - Optional parameters (region, count, cursor).
|
|
@@ -7228,9 +7228,7 @@ declare class UsersClient {
|
|
|
7228
7228
|
/**
|
|
7229
7229
|
* Get a TikTok user's liked videos (only if their Liked tab is public).
|
|
7230
7230
|
*
|
|
7231
|
-
*
|
|
7232
|
-
* Kept for forward-compatibility — the endpoint may be re-enabled when
|
|
7233
|
-
* session-based access is supported.
|
|
7231
|
+
* Public data is available without a TikTok account. Hidden lists return 403.
|
|
7234
7232
|
*
|
|
7235
7233
|
* @param username - The user's @handle.
|
|
7236
7234
|
* @param options - Optional parameters (region, count).
|
package/dist/index.d.ts
CHANGED
|
@@ -6491,6 +6491,8 @@ interface TikTokVideoMeta {
|
|
|
6491
6491
|
download_addr?: string | null;
|
|
6492
6492
|
/** clean MP4 */
|
|
6493
6493
|
download_no_watermark_addr?: string | null;
|
|
6494
|
+
/** Required CDN headers from video detail; use with its matching media URLs. */
|
|
6495
|
+
media_headers?: Record<string, string> | null;
|
|
6494
6496
|
has_watermark?: boolean | null;
|
|
6495
6497
|
volume_loudness?: number | null;
|
|
6496
6498
|
volume_peak?: number | null;
|
|
@@ -7066,6 +7068,8 @@ interface TikTokRelatedParams {
|
|
|
7066
7068
|
region?: string;
|
|
7067
7069
|
/** Number of items to return (1-50) */
|
|
7068
7070
|
count?: number;
|
|
7071
|
+
/** Opaque continuation cursor; expires after 15 minutes. */
|
|
7072
|
+
cursor?: string;
|
|
7069
7073
|
}
|
|
7070
7074
|
/** Options for the transcript endpoint. */
|
|
7071
7075
|
interface TikTokTranscriptParams {
|
|
@@ -7122,7 +7126,7 @@ interface TikTokTrendingVideosParams {
|
|
|
7122
7126
|
interface TikTokTrendingParams {
|
|
7123
7127
|
/** Content region (ISO 3166-1 alpha-2, default "US") */
|
|
7124
7128
|
region?: string;
|
|
7125
|
-
/**
|
|
7129
|
+
/** Historical windows are unavailable; omit this parameter. */
|
|
7126
7130
|
period?: number;
|
|
7127
7131
|
/** Number of items to return (1-50) */
|
|
7128
7132
|
count?: number;
|
|
@@ -7204,9 +7208,7 @@ declare class UsersClient {
|
|
|
7204
7208
|
/**
|
|
7205
7209
|
* Get a TikTok user's followers (best-effort; often guest-gated).
|
|
7206
7210
|
*
|
|
7207
|
-
*
|
|
7208
|
-
* Kept for forward-compatibility — the endpoint may be re-enabled when
|
|
7209
|
-
* session-based access is supported.
|
|
7211
|
+
* Public data is available without a TikTok account. Hidden lists return 403.
|
|
7210
7212
|
*
|
|
7211
7213
|
* @param username - The user's @handle.
|
|
7212
7214
|
* @param options - Optional parameters (region, count, cursor).
|
|
@@ -7216,9 +7218,7 @@ declare class UsersClient {
|
|
|
7216
7218
|
/**
|
|
7217
7219
|
* Get accounts a TikTok user follows (best-effort).
|
|
7218
7220
|
*
|
|
7219
|
-
*
|
|
7220
|
-
* Kept for forward-compatibility — the endpoint may be re-enabled when
|
|
7221
|
-
* session-based access is supported.
|
|
7221
|
+
* Public data is available without a TikTok account. Hidden lists return 403.
|
|
7222
7222
|
*
|
|
7223
7223
|
* @param username - The user's @handle.
|
|
7224
7224
|
* @param options - Optional parameters (region, count, cursor).
|
|
@@ -7228,9 +7228,7 @@ declare class UsersClient {
|
|
|
7228
7228
|
/**
|
|
7229
7229
|
* Get a TikTok user's liked videos (only if their Liked tab is public).
|
|
7230
7230
|
*
|
|
7231
|
-
*
|
|
7232
|
-
* Kept for forward-compatibility — the endpoint may be re-enabled when
|
|
7233
|
-
* session-based access is supported.
|
|
7231
|
+
* Public data is available without a TikTok account. Hidden lists return 403.
|
|
7234
7232
|
*
|
|
7235
7233
|
* @param username - The user's @handle.
|
|
7236
7234
|
* @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
|
/**
|