New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tikapi

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tikapi - npm Package Compare versions

Comparing version 3.1.31 to 3.1.41

92

api.d.ts

@@ -291,2 +291,8 @@ /*!

/**
* The TikTok user ID
*/
user_id?: string
/**
* You can optionally choose the proxy country from where the request

@@ -538,2 +544,78 @@ * is being sent by providing an ISO Code (e.g us, ca, gb) — 200+ countries supported

/**
* Get video information (alternative endpoint)
*/
videoV2: (params?: {
/**
* The video ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)
*
* @example
*
* `"7109178205151464746"`
*
*/
id?: string
/**
* You can optionally choose the proxy country from where the request
* is being sent by providing an ISO Code (e.g us, ca, gb) — 200+ countries supported
*
* @example
*
* `"us"`
*
*/
country?: string
/**
* (Optional) Longer sessions. The cookies and IP are preserved through different requests for a longer amount of time. You should include this in order to get different posts on every request.
*/
session_id?: number
} | FormData) => Promise<ResponseObject>;
/**
* Get video information (alternative endpoint)
*/
videoV3: (params?: {
/**
* The video ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)
*
* @example
*
* `"7109178205151464746"`
*
*/
id?: string
/**
* The username of the video author.
*/
username?: string
/**
* You can optionally choose the proxy country from where the request
* is being sent by providing an ISO Code (e.g us, ca, gb) — 200+ countries supported
*
* @example
*
* `"us"`
*
*/
country?: string
/**
* (Optional) Longer sessions. The cookies and IP are preserved through different requests for a longer amount of time. You should include this in order to get different posts on every request.
*/
session_id?: number
} | FormData) => Promise<ResponseObject>;
/**
* Get related posts

@@ -988,5 +1070,5 @@ */

/**
* The starting offset of items list. Returned in every response, should be included in the next request for iteration.<br><br> *(A simple iteration method is already implemented in the Javascript & Python libraries as seen in the request samples)*
* A iteration parameter returned in each response, should be included in the next requests to get the next items.
*/
cursor?: number
nextCursor?: string

@@ -1237,2 +1319,8 @@

/**
* The TikTok user ID
*/
user_id?: string
} | FormData) => Promise<ResponseObject>;

@@ -1239,0 +1327,0 @@

@@ -209,3 +209,4 @@ /**

count: p.count,
cursor: p.cursor
cursor: p.cursor,
user_id: p.user_id
},

@@ -215,3 +216,3 @@ $other:{

...iterationCodeSamples('cursor'),
hideParams: ['session_id']
hideParams: ['session_id', 'user_id']
}

@@ -312,2 +313,43 @@ }

},
videoV2: {
path: "/public/video/v2",
help: "Get video information (alternative endpoint)",
comment: videoLink,
params: {
id: {
...p.videoId,
required: true,
example: exampleVideoId
}
},
$other:{
openapi: {
hide: true,
hideParams: ['session_id']
}
}
},
videoV3: {
path: "/public/video/v3",
help: "Get video information (alternative endpoint)",
comment: videoLink,
params: {
id: {
...p.videoId,
required: true,
example: exampleVideoId
},
username: {
...p.username,
required: true,
help: "The username of the video author."
}
},
$other:{
openapi: {
hide: true,
hideParams: ['session_id']
}
}
},
relatedPosts: {

@@ -534,3 +576,3 @@ path: "/public/related_posts",

},
cursor: p.offset,
nextCursor: p.nextCursor,
session_id:{

@@ -545,3 +587,3 @@ type: "number",

openapi:{
...iterationCodeSamples('cursor'),
...iterationCodeSamples('nextCursor'),
hideParams: ['session_id']

@@ -689,3 +731,3 @@ }

fields:{
security: userSecurity(['view_profile']),
security: userSecurity(['view_analytics']),
tags: [

@@ -879,3 +921,4 @@ "Profile"

cursor: p.cursor,
secUid: p.secUid
secUid: p.secUid,
user_id: p.user_id
},

@@ -888,2 +931,3 @@ $other:{

},
hideParams: ['user_id']
}

@@ -890,0 +934,0 @@ }

@@ -278,2 +278,8 @@ interface FormData {

/**
* The TikTok user ID
*/
user_id?: string
/**
* You can optionally choose the proxy country from where the request

@@ -525,2 +531,78 @@ * is being sent by providing an ISO Code (e.g us, ca, gb) — 200+ countries supported

/**
* Get video information (alternative endpoint)
*/
videoV2: (params?: {
/**
* The video ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)
*
* @example
*
* `"7109178205151464746"`
*
*/
id?: string
/**
* You can optionally choose the proxy country from where the request
* is being sent by providing an ISO Code (e.g us, ca, gb) — 200+ countries supported
*
* @example
*
* `"us"`
*
*/
country?: string
/**
* (Optional) Longer sessions. The cookies and IP are preserved through different requests for a longer amount of time. You should include this in order to get different posts on every request.
*/
session_id?: number
} | FormData) => Promise<ResponseObject>;
/**
* Get video information (alternative endpoint)
*/
videoV3: (params?: {
/**
* The video ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)
*
* @example
*
* `"7109178205151464746"`
*
*/
id?: string
/**
* The username of the video author.
*/
username?: string
/**
* You can optionally choose the proxy country from where the request
* is being sent by providing an ISO Code (e.g us, ca, gb) — 200+ countries supported
*
* @example
*
* `"us"`
*
*/
country?: string
/**
* (Optional) Longer sessions. The cookies and IP are preserved through different requests for a longer amount of time. You should include this in order to get different posts on every request.
*/
session_id?: number
} | FormData) => Promise<ResponseObject>;
/**
* Get related posts

@@ -975,5 +1057,5 @@ */

/**
* The starting offset of items list. Returned in every response, should be included in the next request for iteration.<br><br> *(A simple iteration method is already implemented in the Javascript & Python libraries as seen in the request samples)*
* A iteration parameter returned in each response, should be included in the next requests to get the next items.
*/
cursor?: number
nextCursor?: string

@@ -1224,2 +1306,8 @@

/**
* The TikTok user ID
*/
user_id?: string
} | FormData) => Promise<ResponseObject>;

@@ -1226,0 +1314,0 @@

5

index.js

@@ -21,2 +21,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

const nextItems = function () {
var _a, _b, _c;
if (!(res === null || res === void 0 ? void 0 : res.json)) {

@@ -27,4 +28,4 @@ return null;

if (res.json.hasMore || res.json.has_more) {
nextCursorParams.cursor = res.json.cursor;
nextCursorParams.offset = res.json.cursor;
let currentCursorField = (((_a = res.json) === null || _a === void 0 ? void 0 : _a.cursor) || ((_b = res.json) === null || _b === void 0 ? void 0 : _b.offset) || ((_c = res.json) === null || _c === void 0 ? void 0 : _c.nextCursor));
nextCursorParams = Object.assign(Object.assign({}, nextCursorParams), { cursor: currentCursorField, offset: currentCursorField, nextCursor: currentCursorField });
}

@@ -31,0 +32,0 @@ if (res.json.notice_lists) {

{
"name": "tikapi",
"version": "3.1.31",
"version": "3.1.41",
"description": "A fully managed unofficial TikTok API with OAuth capabilities",

@@ -5,0 +5,0 @@ "main": "./dist/index.cjs",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc