@superagnt/instagram-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 +24 -23
- 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/instagram'
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
// ── Auth Module (inlined) ────────────────────────────────────────────────────
|
|
@@ -116,7 +117,7 @@ export default function register(api) {
|
|
|
116
117
|
"query"
|
|
117
118
|
]
|
|
118
119
|
},
|
|
119
|
-
execute: async (input) => {
|
|
120
|
+
execute: async (_toolCallId, input) => {
|
|
120
121
|
const key = ensureApiKey()
|
|
121
122
|
const params = parseToolInput(input)
|
|
122
123
|
return callSuperagnt(key, 'GET', '/search', params)
|
|
@@ -151,7 +152,7 @@ export default function register(api) {
|
|
|
151
152
|
"id"
|
|
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', '/section', params)
|
|
@@ -170,7 +171,7 @@ export default function register(api) {
|
|
|
170
171
|
}
|
|
171
172
|
}
|
|
172
173
|
},
|
|
173
|
-
execute: async (input) => {
|
|
174
|
+
execute: async (_toolCallId, input) => {
|
|
174
175
|
const key = ensureApiKey()
|
|
175
176
|
const params = parseToolInput(input)
|
|
176
177
|
return callSuperagnt(key, 'GET', '/sections', params)
|
|
@@ -200,7 +201,7 @@ export default function register(api) {
|
|
|
200
201
|
"country_code"
|
|
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', '/cities', params)
|
|
@@ -235,7 +236,7 @@ export default function register(api) {
|
|
|
235
236
|
"id"
|
|
236
237
|
]
|
|
237
238
|
},
|
|
238
|
-
execute: async (input) => {
|
|
239
|
+
execute: async (_toolCallId, input) => {
|
|
239
240
|
const key = ensureApiKey()
|
|
240
241
|
const params = parseToolInput(input)
|
|
241
242
|
return callSuperagnt(key, 'GET', '/location-feeds', params)
|
|
@@ -261,7 +262,7 @@ export default function register(api) {
|
|
|
261
262
|
"url"
|
|
262
263
|
]
|
|
263
264
|
},
|
|
264
|
-
execute: async (input) => {
|
|
265
|
+
execute: async (_toolCallId, input) => {
|
|
265
266
|
const key = ensureApiKey()
|
|
266
267
|
const params = parseToolInput(input)
|
|
267
268
|
return callSuperagnt(key, 'GET', '/post-dl', params)
|
|
@@ -287,7 +288,7 @@ export default function register(api) {
|
|
|
287
288
|
"url"
|
|
288
289
|
]
|
|
289
290
|
},
|
|
290
|
-
execute: async (input) => {
|
|
291
|
+
execute: async (_toolCallId, input) => {
|
|
291
292
|
const key = ensureApiKey()
|
|
292
293
|
const params = parseToolInput(input)
|
|
293
294
|
return callSuperagnt(key, 'GET', '/post', params)
|
|
@@ -313,7 +314,7 @@ export default function register(api) {
|
|
|
313
314
|
"id"
|
|
314
315
|
]
|
|
315
316
|
},
|
|
316
|
-
execute: async (input) => {
|
|
317
|
+
execute: async (_toolCallId, input) => {
|
|
317
318
|
const key = ensureApiKey()
|
|
318
319
|
const params = parseToolInput(input)
|
|
319
320
|
return callSuperagnt(key, 'GET', '/related-profiles', params)
|
|
@@ -348,7 +349,7 @@ export default function register(api) {
|
|
|
348
349
|
"id"
|
|
349
350
|
]
|
|
350
351
|
},
|
|
351
|
-
execute: async (input) => {
|
|
352
|
+
execute: async (_toolCallId, input) => {
|
|
352
353
|
const key = ensureApiKey()
|
|
353
354
|
const params = parseToolInput(input)
|
|
354
355
|
return callSuperagnt(key, 'GET', '/reels', params)
|
|
@@ -383,7 +384,7 @@ export default function register(api) {
|
|
|
383
384
|
"id"
|
|
384
385
|
]
|
|
385
386
|
},
|
|
386
|
-
execute: async (input) => {
|
|
387
|
+
execute: async (_toolCallId, input) => {
|
|
387
388
|
const key = ensureApiKey()
|
|
388
389
|
const params = parseToolInput(input)
|
|
389
390
|
return callSuperagnt(key, 'GET', '/user-feeds2', params)
|
|
@@ -422,7 +423,7 @@ export default function register(api) {
|
|
|
422
423
|
"id"
|
|
423
424
|
]
|
|
424
425
|
},
|
|
425
|
-
execute: async (input) => {
|
|
426
|
+
execute: async (_toolCallId, input) => {
|
|
426
427
|
const key = ensureApiKey()
|
|
427
428
|
const params = parseToolInput(input)
|
|
428
429
|
return callSuperagnt(key, 'GET', '/user-feeds', params)
|
|
@@ -448,7 +449,7 @@ export default function register(api) {
|
|
|
448
449
|
"username"
|
|
449
450
|
]
|
|
450
451
|
},
|
|
451
|
-
execute: async (input) => {
|
|
452
|
+
execute: async (_toolCallId, input) => {
|
|
452
453
|
const key = ensureApiKey()
|
|
453
454
|
const params = parseToolInput(input)
|
|
454
455
|
return callSuperagnt(key, 'GET', '/profile2', params)
|
|
@@ -474,7 +475,7 @@ export default function register(api) {
|
|
|
474
475
|
"id"
|
|
475
476
|
]
|
|
476
477
|
},
|
|
477
|
-
execute: async (input) => {
|
|
478
|
+
execute: async (_toolCallId, input) => {
|
|
478
479
|
const key = ensureApiKey()
|
|
479
480
|
const params = parseToolInput(input)
|
|
480
481
|
return callSuperagnt(key, 'GET', '/profile', params)
|
|
@@ -500,7 +501,7 @@ export default function register(api) {
|
|
|
500
501
|
"id"
|
|
501
502
|
]
|
|
502
503
|
},
|
|
503
|
-
execute: async (input) => {
|
|
504
|
+
execute: async (_toolCallId, input) => {
|
|
504
505
|
const key = ensureApiKey()
|
|
505
506
|
const params = parseToolInput(input)
|
|
506
507
|
return callSuperagnt(key, 'GET', '/id-media', params)
|
|
@@ -526,7 +527,7 @@ export default function register(api) {
|
|
|
526
527
|
"id"
|
|
527
528
|
]
|
|
528
529
|
},
|
|
529
|
-
execute: async (input) => {
|
|
530
|
+
execute: async (_toolCallId, input) => {
|
|
530
531
|
const key = ensureApiKey()
|
|
531
532
|
const params = parseToolInput(input)
|
|
532
533
|
return callSuperagnt(key, 'GET', '/id', params)
|
|
@@ -561,7 +562,7 @@ export default function register(api) {
|
|
|
561
562
|
"id"
|
|
562
563
|
]
|
|
563
564
|
},
|
|
564
|
-
execute: async (input) => {
|
|
565
|
+
execute: async (_toolCallId, input) => {
|
|
565
566
|
const key = ensureApiKey()
|
|
566
567
|
const params = parseToolInput(input)
|
|
567
568
|
return callSuperagnt(key, 'GET', '/user-tags', params)
|
|
@@ -591,7 +592,7 @@ export default function register(api) {
|
|
|
591
592
|
"id"
|
|
592
593
|
]
|
|
593
594
|
},
|
|
594
|
-
execute: async (input) => {
|
|
595
|
+
execute: async (_toolCallId, input) => {
|
|
595
596
|
const key = ensureApiKey()
|
|
596
597
|
const params = parseToolInput(input)
|
|
597
598
|
return callSuperagnt(key, 'GET', '/user-reposts', params)
|
|
@@ -621,7 +622,7 @@ export default function register(api) {
|
|
|
621
622
|
"city_id"
|
|
622
623
|
]
|
|
623
624
|
},
|
|
624
|
-
execute: async (input) => {
|
|
625
|
+
execute: async (_toolCallId, input) => {
|
|
625
626
|
const key = ensureApiKey()
|
|
626
627
|
const params = parseToolInput(input)
|
|
627
628
|
return callSuperagnt(key, 'GET', '/locations', params)
|
|
@@ -647,7 +648,7 @@ export default function register(api) {
|
|
|
647
648
|
"id"
|
|
648
649
|
]
|
|
649
650
|
},
|
|
650
|
-
execute: async (input) => {
|
|
651
|
+
execute: async (_toolCallId, input) => {
|
|
651
652
|
const key = ensureApiKey()
|
|
652
653
|
const params = parseToolInput(input)
|
|
653
654
|
return callSuperagnt(key, 'GET', '/location-info', params)
|
|
@@ -673,7 +674,7 @@ export default function register(api) {
|
|
|
673
674
|
"username"
|
|
674
675
|
]
|
|
675
676
|
},
|
|
676
|
-
execute: async (input) => {
|
|
677
|
+
execute: async (_toolCallId, input) => {
|
|
677
678
|
const key = ensureApiKey()
|
|
678
679
|
const params = parseToolInput(input)
|
|
679
680
|
return callSuperagnt(key, 'GET', '/web-profile', params)
|
|
@@ -703,7 +704,7 @@ export default function register(api) {
|
|
|
703
704
|
"id"
|
|
704
705
|
]
|
|
705
706
|
},
|
|
706
|
-
execute: async (input) => {
|
|
707
|
+
execute: async (_toolCallId, input) => {
|
|
707
708
|
const key = ensureApiKey()
|
|
708
709
|
const params = parseToolInput(input)
|
|
709
710
|
return callSuperagnt(key, 'GET', '/music', params)
|
|
@@ -733,7 +734,7 @@ export default function register(api) {
|
|
|
733
734
|
"query"
|
|
734
735
|
]
|
|
735
736
|
},
|
|
736
|
-
execute: async (input) => {
|
|
737
|
+
execute: async (_toolCallId, input) => {
|
|
737
738
|
const key = ensureApiKey()
|
|
738
739
|
const params = parseToolInput(input)
|
|
739
740
|
return callSuperagnt(key, 'GET', '/tag-feeds', params)
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "instagram-data",
|
|
3
3
|
"name": "Instagram Data",
|
|
4
4
|
"description": "Unified access to user profiles, reels, explore, locations, and hashtag media. 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_instagram_Search_users_by_keyword",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superagnt/instagram-data",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Unified access to user profiles, reels, explore, locations, and hashtag media. Built for LLMs and automation — not one-off scraping.",
|
|
6
6
|
"main": "index.js",
|