@superagnt/tiktok-data 2.0.4 → 2.0.6

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/README.md CHANGED
@@ -10,17 +10,11 @@ openclaw plugins install @superagnt/tiktok-data
10
10
 
11
11
  This package is the official **OpenClaw** plugin for **TikTok** social and public data via [superagnt](https://superagnt.com). Pair it with the [documentation](https://superagnt.com/docs) and your superagnt API key.
12
12
 
13
- ## Want the live MCP surface instead?
13
+ ## What this plugin contains
14
14
 
15
- This plugin ships a fixed, baked-in toolset that only needs your
16
- `SUPERAGNT_API_KEY`. For the live workspace tool surface — the full value
17
- layer (data sources plus workspace Postgres, schedules, canvases,
18
- enrichment), growing server-side with no plugin update — install the
19
- primary superagnt plugin instead:
15
+ A fixed, baked-in toolset for the **TikTok** endpoints listed below — nothing else. It authenticates with your `SUPERAGNT_API_KEY` and calls the superagnt REST API directly. It does not add tools for other platforms and does not change after install; new capabilities only arrive through an explicit plugin update.
20
16
 
21
- ```bash
22
- openclaw plugins install @superagnt/superagnt
23
- ```
17
+ Prefer MCP? The `@superagnt/superagnt` plugin connects the workspace MCP server instead, whose tool surface is managed by the user in the dashboard.
24
18
 
25
19
  ## Overview
26
20
 
@@ -63,8 +57,8 @@ Use a single **superagnt API key** (Bearer token). Set `SUPERAGNT_API_KEY` in yo
63
57
 
64
58
  ## Related
65
59
 
66
- - **Skill (curl-oriented):** `clawhub install tiktok-data` on [ClawHub](https://clawhub.ai/superagnt/skills/tiktok-data)
67
- - **All platforms plugin:** `@superagnt/openclaw-agnt-data` if you need LinkedIn, YouTube, TikTok, X, Instagram, Reddit, and Facebook in one package.
60
+ - **Skill (curl-oriented):** `clawhub install superagnt/tiktok-data` on [ClawHub](https://clawhub.ai/superagnt/skills/tiktok-data)
61
+ - **All platforms plugin:** `@superagnt/social-data` if you need LinkedIn, YouTube, TikTok, X, Instagram, Reddit, and Facebook in one package.
68
62
 
69
63
  ## License
70
64
 
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
- const BASE_URL = 'https://api.superagnt.com/v1/data/tiktok'
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)
@@ -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.4",
5
+ "version": "2.0.6",
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.4",
3
+ "version": "2.0.6",
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",