@superagnt/tiktok-data 2.0.4 → 2.0.5
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/index.js +14 -13
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -7,7 +7,8 @@ import { homedir as _homedir } from 'node:os'
|
|
|
7
7
|
import { join as _join } from 'node:path'
|
|
8
8
|
import { existsSync as _existsSync, readFileSync as _readFileSync } from 'node:fs'
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// SUPERAGNT_API_URL overrides the API origin (QA/staging); customers never set it.
|
|
11
|
+
const BASE_URL = (process.env.SUPERAGNT_API_URL || 'https://api.superagnt.com') + '/v1/data/tiktok'
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
// ── Auth Module (inlined) ────────────────────────────────────────────────────
|
|
@@ -107,7 +108,7 @@ export default function register(api) {
|
|
|
107
108
|
"video_id"
|
|
108
109
|
]
|
|
109
110
|
},
|
|
110
|
-
execute: async (input) => {
|
|
111
|
+
execute: async (_toolCallId, input) => {
|
|
111
112
|
const key = ensureApiKey()
|
|
112
113
|
const params = parseToolInput(input)
|
|
113
114
|
return callSuperagnt(key, 'GET', '/video/details', params)
|
|
@@ -129,7 +130,7 @@ export default function register(api) {
|
|
|
129
130
|
"video_id"
|
|
130
131
|
]
|
|
131
132
|
},
|
|
132
|
-
execute: async (input) => {
|
|
133
|
+
execute: async (_toolCallId, input) => {
|
|
133
134
|
const key = ensureApiKey()
|
|
134
135
|
const params = parseToolInput(input)
|
|
135
136
|
return callSuperagnt(key, 'POST', '/video/details', undefined, params)
|
|
@@ -151,7 +152,7 @@ export default function register(api) {
|
|
|
151
152
|
"username"
|
|
152
153
|
]
|
|
153
154
|
},
|
|
154
|
-
execute: async (input) => {
|
|
155
|
+
execute: async (_toolCallId, input) => {
|
|
155
156
|
const key = ensureApiKey()
|
|
156
157
|
const params = parseToolInput(input)
|
|
157
158
|
return callSuperagnt(key, 'GET', '/user/videos', params)
|
|
@@ -173,7 +174,7 @@ export default function register(api) {
|
|
|
173
174
|
"username"
|
|
174
175
|
]
|
|
175
176
|
},
|
|
176
|
-
execute: async (input) => {
|
|
177
|
+
execute: async (_toolCallId, input) => {
|
|
177
178
|
const key = ensureApiKey()
|
|
178
179
|
const params = parseToolInput(input)
|
|
179
180
|
return callSuperagnt(key, 'POST', '/user/videos', undefined, params)
|
|
@@ -200,7 +201,7 @@ export default function register(api) {
|
|
|
200
201
|
"username"
|
|
201
202
|
]
|
|
202
203
|
},
|
|
203
|
-
execute: async (input) => {
|
|
204
|
+
execute: async (_toolCallId, input) => {
|
|
204
205
|
const key = ensureApiKey()
|
|
205
206
|
const params = parseToolInput(input)
|
|
206
207
|
return callSuperagnt(key, 'GET', '/collection/', params)
|
|
@@ -232,7 +233,7 @@ export default function register(api) {
|
|
|
232
233
|
"secondary_id"
|
|
233
234
|
]
|
|
234
235
|
},
|
|
235
|
-
execute: async (input) => {
|
|
236
|
+
execute: async (_toolCallId, input) => {
|
|
236
237
|
const key = ensureApiKey()
|
|
237
238
|
const params = parseToolInput(input)
|
|
238
239
|
return callSuperagnt(key, 'GET', '/user/videos/continuation', params)
|
|
@@ -254,7 +255,7 @@ export default function register(api) {
|
|
|
254
255
|
"username"
|
|
255
256
|
]
|
|
256
257
|
},
|
|
257
|
-
execute: async (input) => {
|
|
258
|
+
execute: async (_toolCallId, input) => {
|
|
258
259
|
const key = ensureApiKey()
|
|
259
260
|
const params = parseToolInput(input)
|
|
260
261
|
return callSuperagnt(key, 'GET', '/user/details', params)
|
|
@@ -276,7 +277,7 @@ export default function register(api) {
|
|
|
276
277
|
"username"
|
|
277
278
|
]
|
|
278
279
|
},
|
|
279
|
-
execute: async (input) => {
|
|
280
|
+
execute: async (_toolCallId, input) => {
|
|
280
281
|
const key = ensureApiKey()
|
|
281
282
|
const params = parseToolInput(input)
|
|
282
283
|
return callSuperagnt(key, 'POST', '/user/details', undefined, params)
|
|
@@ -298,7 +299,7 @@ export default function register(api) {
|
|
|
298
299
|
"query"
|
|
299
300
|
]
|
|
300
301
|
},
|
|
301
|
-
execute: async (input) => {
|
|
302
|
+
execute: async (_toolCallId, input) => {
|
|
302
303
|
const key = ensureApiKey()
|
|
303
304
|
const params = parseToolInput(input)
|
|
304
305
|
return callSuperagnt(key, 'GET', '/search/accounts/query', params)
|
|
@@ -320,7 +321,7 @@ export default function register(api) {
|
|
|
320
321
|
"query"
|
|
321
322
|
]
|
|
322
323
|
},
|
|
323
|
-
execute: async (input) => {
|
|
324
|
+
execute: async (_toolCallId, input) => {
|
|
324
325
|
const key = ensureApiKey()
|
|
325
326
|
const params = parseToolInput(input)
|
|
326
327
|
return callSuperagnt(key, 'POST', '/search/accounts/query', undefined, params)
|
|
@@ -342,7 +343,7 @@ export default function register(api) {
|
|
|
342
343
|
"query"
|
|
343
344
|
]
|
|
344
345
|
},
|
|
345
|
-
execute: async (input) => {
|
|
346
|
+
execute: async (_toolCallId, input) => {
|
|
346
347
|
const key = ensureApiKey()
|
|
347
348
|
const params = parseToolInput(input)
|
|
348
349
|
return callSuperagnt(key, 'GET', '/search/general/query', params)
|
|
@@ -364,7 +365,7 @@ export default function register(api) {
|
|
|
364
365
|
"query"
|
|
365
366
|
]
|
|
366
367
|
},
|
|
367
|
-
execute: async (input) => {
|
|
368
|
+
execute: async (_toolCallId, input) => {
|
|
368
369
|
const key = ensureApiKey()
|
|
369
370
|
const params = parseToolInput(input)
|
|
370
371
|
return callSuperagnt(key, 'POST', '/search/general/query', undefined, params)
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "tiktok-data",
|
|
3
3
|
"name": "TikTok Data",
|
|
4
4
|
"description": "Unified access to video details, creator profiles, and search across accounts and videos. Built for LLMs and automation — not one-off scraping.",
|
|
5
|
-
"version": "2.0.
|
|
5
|
+
"version": "2.0.5",
|
|
6
6
|
"contracts": {
|
|
7
7
|
"tools": [
|
|
8
8
|
"superagnt_tiktok_Video_Details_get",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superagnt/tiktok-data",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Unified access to video details, creator profiles, and search across accounts and videos. Built for LLMs and automation — not one-off scraping.",
|
|
6
6
|
"main": "index.js",
|