creatorriver 0.4.0 → 0.6.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/README.md +8 -1
- package/dist/creatorriver.js +127 -31
- package/package.json +10 -9
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# creatorriver
|
|
2
2
|
|
|
3
|
-
Search
|
|
3
|
+
Search 10M+ YouTube, TikTok and Instagram creators in plain language, every one with a contact email, and run outreach from your terminal or AI agent, using [Creator River](https://www.creatorriver.com). Searching is free; you spend credits when you open a creator, reveal an email (refunded if it bounces) or send more than the free daily emails. 100 credits cost $1, and new accounts get 30 free.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npx creatorriver --help
|
|
@@ -24,12 +24,19 @@ Behind a proxy, set `HTTPS_PROXY` (and `NO_PROXY` for hosts to reach directly).
|
|
|
24
24
|
creatorriver account
|
|
25
25
|
creatorriver campaigns create --brief "Skincare brand looking for US beauty creators" --status active
|
|
26
26
|
creatorriver creators search --query "US beauty creators reviewing skincare" --platforms youtube,tiktok --campaign-id <campaign-id>
|
|
27
|
+
creatorriver searches expand --search-id <search-id> --limit 40
|
|
28
|
+
creatorriver creators browse --platforms youtube --markets us --offset 20 --limit 20
|
|
29
|
+
creatorriver trends videos --platform tiktok --window 24h
|
|
30
|
+
creatorriver trends hashtags --platform tiktok
|
|
27
31
|
creatorriver contacts reveal --campaign-id <campaign-id> --creator-id <creator-id>
|
|
32
|
+
creatorriver contacts reveal-batch --campaign-id <campaign-id> --creator-ids <first-id>,<second-id>
|
|
28
33
|
creatorriver emails send --campaign-id <campaign-id> --creator-id <creator-id> --subject "Partnership" --body "Hi! ..."
|
|
29
34
|
creatorriver conversations get --campaign-id <campaign-id> --creator-id <creator-id>
|
|
30
35
|
creatorriver campaigns status --campaign-id <campaign-id>
|
|
31
36
|
```
|
|
32
37
|
|
|
38
|
+
To find new prospects, pass `--exclude-contacted` to `creators search`, `creators browse` or `creators similar`. Use `--exclude-exported` or `--exclude-uploaded` to also omit past exports or the list uploaded on the website, and `--has-recent-viral` to narrow `creators search` or `creators browse` to creators with a 10x+ breakout video in the last 30 days. Filtered browsing counts toward the search allowance shown by `account` (paging the same filtered list that day with `--offset`, or expanding a same-day search with `searches expand`, uses no extra allowance). Unpaid accounts with less than 0.5 credits drop to 5 searches a day until any purchase. For a follow-up in an existing conversation you can omit `--subject`.
|
|
39
|
+
|
|
33
40
|
Every command prints one line of JSON: `{"ok":true,"data":...}` on stdout, or `{"ok":false,"error":{"code","message","requestId"}}` on stderr with an exit code per error: 1 internal, 2 invalid_input, 3 unauthorized, 4 not_found, 5 conflict, 6 insufficient_credits, 7 rate_limited, 8 network_error, 9 login_pending. Each command's `--help` lists its flags, what it costs and what it needs first. `--input-json '{...}'` passes the whole input as JSON.
|
|
34
41
|
|
|
35
42
|
The same operations are available as an MCP server at `https://www.creatorriver.com/api/mcp` and as a REST API at `https://www.creatorriver.com/api/v1`, both with `Authorization: Bearer <key>`.
|
package/dist/creatorriver.js
CHANGED
|
@@ -150,10 +150,18 @@ var getAccount = defineOperation({
|
|
|
150
150
|
path: "/account",
|
|
151
151
|
kind: "read",
|
|
152
152
|
summary: "Show the credit balance, prices and today\u2019s usage",
|
|
153
|
-
description: "Returns the credit balance, what each paid action costs, the plan, and today\u2019s usage against the daily limits. Free. Call it first to confirm the API key works, and before spending credits.",
|
|
153
|
+
description: "Returns the credit balance, what each paid action costs, the plan, paid status, the maximum results per search, and today\u2019s usage against the daily limits (unpaid accounts with less than 0.5 credits drop to 5 searches a day until any purchase). Free. Call it first to confirm the API key works, and before spending credits.",
|
|
154
154
|
input: z3.object({})
|
|
155
155
|
});
|
|
156
|
+
var accountExclusionFilters = {
|
|
157
|
+
excludeContacted: z3.boolean().optional().describe(
|
|
158
|
+
"Exclude this account\u2019s contacted or do-not-contact creators across all campaigns"
|
|
159
|
+
),
|
|
160
|
+
excludeExported: z3.boolean().optional().describe("Exclude creators this account previously exported"),
|
|
161
|
+
excludeUploaded: z3.boolean().optional().describe("Apply this account\u2019s uploaded prospect exclude list")
|
|
162
|
+
};
|
|
156
163
|
var creatorFilters = {
|
|
164
|
+
...accountExclusionFilters,
|
|
157
165
|
platforms: z3.array(z3.enum(PLATFORMS)).optional().describe("Only creators on these platforms"),
|
|
158
166
|
niches: z3.array(z3.enum(CREATOR_NICHES)).optional().describe(
|
|
159
167
|
"Only creators whose main content is one of these niches. Creators who cover many topics are filed under none, so leave this out for broad lifestyle searches"
|
|
@@ -175,6 +183,9 @@ var creatorFilters = {
|
|
|
175
183
|
).optional().describe(
|
|
176
184
|
"Only creators whose latest post is at most this many days old: 7, 14, 30, 90 or 180"
|
|
177
185
|
),
|
|
186
|
+
hasRecentViral: z3.boolean().optional().describe(
|
|
187
|
+
"Only creators who published at least one 10x+ viral video in the last 30 days"
|
|
188
|
+
),
|
|
178
189
|
minFollowers: count("At least this many followers"),
|
|
179
190
|
maxFollowers: count("At most this many followers"),
|
|
180
191
|
minAvgViews: count("At least this many average views per post"),
|
|
@@ -193,7 +204,7 @@ var searchCreators = defineOperation({
|
|
|
193
204
|
path: "/searches",
|
|
194
205
|
kind: "read",
|
|
195
206
|
summary: "Find creators by description and filters",
|
|
196
|
-
description: "Searches the creator database by meaning: describe the creators you want in plain words (niche, content, audience), and optionally narrow by platform, niche, creator country, audience country, language, size, engagement rate and how recently they posted. To find creators like ones the user already knows, pass their handles or profile links as exampleCreators.
|
|
207
|
+
description: "Searches the creator database by meaning: describe the creators you want in plain words (niche, content, audience), and optionally narrow by platform, niche, creator country, audience country, language, size, engagement rate and how recently they posted. To find creators like ones the user already knows, pass their handles or profile links as exampleCreators. A new search counts toward the daily search allowance and costs no credits. Repeating the same successful search that day uses no extra allowance (see get_account). Results show each creator\u2019s name and account state (identityUnlocked, emailUnlocked, isSaved, campaignMemberships), but no handle or profile link, plus pagination; call expand_search to load more unseen results into the same search. Pass campaignId to rank against that campaign\u2019s brief and record the search in it.",
|
|
197
208
|
input: z3.object({
|
|
198
209
|
query: z3.string().trim().min(1).max(1e3).describe(
|
|
199
210
|
"The creators you want, in plain words: niche, what their content is like, who watches it"
|
|
@@ -213,8 +224,14 @@ var browseCreators = defineOperation({
|
|
|
213
224
|
path: "/creators/browse",
|
|
214
225
|
kind: "read",
|
|
215
226
|
summary: "List the biggest creators matching filters",
|
|
216
|
-
description: "Lists the creators that match the filters, most followed first, with no description to match, as the dashboard\u2019s Discover list does before a search.
|
|
217
|
-
input: z3.object({
|
|
227
|
+
description: "Lists the creators that match the filters, most followed first, with no description to match, as the dashboard\u2019s Discover list does before a search. Browsing costs no credits and respects maxSearchResults (50 unpaid, 100 paid). Pass offset (from pagination.nextOffset) to read further pages. A filtered list uses the daily search allowance; paging through the same filtered list that day, or reading the default unfiltered list, uses no extra allowance. Browse lists stay out of search history. Use it for asks like the biggest beauty creators in the US; use search_creators when the user describes what the content should be about. Results show names and account state (identityUnlocked, emailUnlocked, isSaved, campaignMemberships), but no handles.",
|
|
228
|
+
input: z3.object({
|
|
229
|
+
...creatorFilters,
|
|
230
|
+
offset: z3.number().int().min(0).optional().describe(
|
|
231
|
+
"Skip this many top results to read the next page (default 0). Use pagination.nextOffset from the previous call"
|
|
232
|
+
),
|
|
233
|
+
limit: limit(100, 20)
|
|
234
|
+
})
|
|
218
235
|
});
|
|
219
236
|
var findCreator = defineOperation({
|
|
220
237
|
name: "find_creator",
|
|
@@ -223,7 +240,7 @@ var findCreator = defineOperation({
|
|
|
223
240
|
path: "/creators/lookup",
|
|
224
241
|
kind: "read",
|
|
225
242
|
summary: "Find a creator by handle or profile link",
|
|
226
|
-
description: "Looks up a creator the user names by @handle or profile link, on every platform where that exact handle is in Creator River, and returns their creatorId for get_creator, add_creator or reveal_contact. Free. An empty list means Creator River does not have them.",
|
|
243
|
+
description: "Looks up a creator the user names by @handle or profile link, on every platform where that exact handle is in Creator River, ordered by followers descending, and returns their creatorId, followers and account state (isSaved, identityUnlocked, emailUnlocked, campaignMemberships) for get_creator, add_creator or reveal_contact. Free. An empty list means Creator River does not have them.",
|
|
227
244
|
input: z3.object({
|
|
228
245
|
reference: z3.string().trim().min(1).max(300).describe(
|
|
229
246
|
"An @handle or a profile link, e.g. @mkbhd or https://www.youtube.com/@mkbhd"
|
|
@@ -236,23 +253,17 @@ var findSimilarCreators = defineOperation({
|
|
|
236
253
|
method: "POST",
|
|
237
254
|
path: "/creators/{creatorId}/similar",
|
|
238
255
|
kind: "read",
|
|
239
|
-
summary: "Find creators like one you already have",
|
|
240
|
-
description: "Finds creators whose content
|
|
256
|
+
summary: "Find creators like one or more you already have",
|
|
257
|
+
description: "Finds creators whose content and audience are closest to one seed creator \u2014 or up to five fused seeds via additionalCreatorIds \u2014 defaulting to the seed platform(s) unless platforms is set. Pass the creatorId of a search result, no handle or unlock needed. A new similar search counts toward the daily search allowance and costs no credits (see get_account); paging the same seeds and filters that day uses no extra allowance. With campaignId, creators already in that campaign or excluded from it are left out. Results show names and account state (isSaved, identityUnlocked, emailUnlocked, campaignMemberships) but no handles, each with a matchScore from 0 to 1; the search is kept, so list_searches and get_search can read it again.",
|
|
241
258
|
input: z3.object({
|
|
242
259
|
creatorId: creatorId.describe(
|
|
243
|
-
"The creator to find more like, from search_creators or another result"
|
|
260
|
+
"The primary creator to find more like, from search_creators or another result"
|
|
244
261
|
),
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
"Only creators based in these countries: two-letter codes, e.g. us, gb, jp"
|
|
262
|
+
additionalCreatorIds: z3.array(creatorId).max(4).optional().describe(
|
|
263
|
+
"Up to 4 additional seed creatorIds to average with creatorId so results converge on what they share"
|
|
248
264
|
),
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
),
|
|
252
|
-
minFollowers: count("At least this many followers"),
|
|
253
|
-
maxFollowers: count("At most this many followers"),
|
|
254
|
-
minAvgViews: count("At least this many average views per post"),
|
|
255
|
-
maxAvgViews: count("At most this many average views per post"),
|
|
265
|
+
...creatorFilters,
|
|
266
|
+
campaignId: campaignId.optional().describe("Leave out creators this campaign already has or excluded"),
|
|
256
267
|
limit: limit(100, 20)
|
|
257
268
|
})
|
|
258
269
|
});
|
|
@@ -278,9 +289,24 @@ var getSearch = defineOperation({
|
|
|
278
289
|
path: "/searches/{searchId}",
|
|
279
290
|
kind: "read",
|
|
280
291
|
summary: "Read a past search\u2019s results again",
|
|
281
|
-
description: "Returns a past search
|
|
292
|
+
description: "Returns a past search, its results in rank order with account state (identityUnlocked, emailUnlocked, isSaved, campaignMemberships), and pagination. Free, and does not count against the daily search limit. Call expand_search to append more unseen results.",
|
|
282
293
|
input: z3.object({ searchId })
|
|
283
294
|
});
|
|
295
|
+
var expandSearch = defineOperation({
|
|
296
|
+
name: "expand_search",
|
|
297
|
+
command: ["searches", "expand"],
|
|
298
|
+
method: "POST",
|
|
299
|
+
path: "/searches/{searchId}/more",
|
|
300
|
+
kind: "write",
|
|
301
|
+
summary: "Load more results for a past search",
|
|
302
|
+
description: "Appends unseen creators to a saved search_creators or find_similar_creators search in its original history entry and keeps existing rows in order. Pass limit as the desired total result count, up to maxSearchResults from get_account (50 unpaid, 100 paid). Returns only the newly added results with account state, totalCount and pagination. Expanding a search from today uses no extra daily allowance; expanding an older search counts as one search. Free (no credits). Similar searches saved before reference creators were recorded can be reopened with get_search. Start a new similar search to load more matches for those older searches.",
|
|
303
|
+
input: z3.object({
|
|
304
|
+
searchId,
|
|
305
|
+
limit: z3.number().int().min(1).max(100).describe(
|
|
306
|
+
"Desired cumulative result count for this search, 1-100 (capped by maxSearchResults)"
|
|
307
|
+
)
|
|
308
|
+
})
|
|
309
|
+
});
|
|
284
310
|
var getSearchFilters = defineOperation({
|
|
285
311
|
name: "get_search_filters",
|
|
286
312
|
command: ["searches", "filters"],
|
|
@@ -310,9 +336,9 @@ var exportSearch = defineOperation({
|
|
|
310
336
|
command: ["searches", "export"],
|
|
311
337
|
method: "GET",
|
|
312
338
|
path: "/searches/{searchId}/export",
|
|
313
|
-
kind: "
|
|
339
|
+
kind: "write",
|
|
314
340
|
summary: "Export a search\u2019s results as CSV",
|
|
315
|
-
description: "Returns a search\u2019s results as CSV text, one row per creator in rank order, as the dashboard\u2019s export does: handles and profile links only for unlocked creators, and emails only for ones already revealed.
|
|
341
|
+
description: "Returns a search\u2019s results as CSV text, one row per creator in rank order, as the dashboard\u2019s export does: handles and profile links only for unlocked creators, and emails only for ones already revealed. Exporting costs no credits and records the returned creators as exported for this account. Later searches can omit them with excludeExported. Save csv to a file named filename.",
|
|
316
342
|
input: z3.object({
|
|
317
343
|
searchId,
|
|
318
344
|
scope: z3.enum(["all", "added"]).optional().describe("all results (default), or only the ones added to a campaign")
|
|
@@ -325,7 +351,7 @@ var getCreator = defineOperation({
|
|
|
325
351
|
path: "/creators/{creatorId}",
|
|
326
352
|
kind: "read",
|
|
327
353
|
summary: "Show a creator\u2019s profile",
|
|
328
|
-
description: "Returns a creator\u2019s profile: platform, country, language, followers, views, engagement, topics, audience, recent content, estimated price and whether an email is available. Free. Until you unlock the creator, the handle, profile link and recent video titles and links are hidden. Pass campaignId to also see where the creator stands in that campaign.",
|
|
354
|
+
description: "Returns a creator\u2019s profile: platform, country, language, followers, views, engagement, topics, weighted hashtags, audience, recent content, estimated price, active campaign memberships and whether an email is available. Free. Until you unlock the creator, the handle, profile link and recent video titles and links are hidden. Pass campaignId to also see where the creator stands in that campaign.",
|
|
329
355
|
input: z3.object({
|
|
330
356
|
creatorId,
|
|
331
357
|
campaignId: campaignId.optional().describe("Also show this campaign\u2019s progress with the creator")
|
|
@@ -447,9 +473,23 @@ var revealContact = defineOperation({
|
|
|
447
473
|
path: "/campaigns/{campaignId}/creators/{creatorId}/contact",
|
|
448
474
|
kind: "spend",
|
|
449
475
|
summary: "Reveal a creator\u2019s email for a campaign",
|
|
450
|
-
description: "Returns the creator\u2019s email address so you can contact them in this campaign, adding the creator to the campaign first if needed. Adding unlocks the creator, which costs 0.5 credits the first time for each creator. Revealing costs 0.2 credits the first time for each creator; revealing again, in any campaign, is free.
|
|
476
|
+
description: "Returns the creator\u2019s email address so you can contact them in this campaign, adding the creator to the campaign first if needed. Adding unlocks the creator, which costs 0.5 credits the first time for each creator. Revealing costs 0.2 credits the first time for each creator; revealing again, in any campaign, is free. Use this or reveal_contacts before send_email.",
|
|
451
477
|
input: z3.object({ campaignId, creatorId })
|
|
452
478
|
});
|
|
479
|
+
var revealContacts = defineOperation({
|
|
480
|
+
name: "reveal_contacts",
|
|
481
|
+
command: ["contacts", "reveal-batch"],
|
|
482
|
+
method: "POST",
|
|
483
|
+
path: "/campaigns/{campaignId}/contacts/reveal",
|
|
484
|
+
kind: "spend",
|
|
485
|
+
summary: "Reveal selected creators\u2019 emails for a campaign",
|
|
486
|
+
description: "Reveals emails for up to 10 selected creators in this campaign. Each available contact is added to the campaign. The first unlock costs 0.5 credits and the first email reveal costs 0.2 credits per creator across the account. Check the budget for the whole selection before calling. Read items for each unique creator in input order: successful items include revealedContact, and other items report why the reveal failed. Earlier successes are kept. Retrying reuses previous charges.",
|
|
487
|
+
input: z3.object({
|
|
488
|
+
campaignId,
|
|
489
|
+
creatorIds: z3.array(creatorId).min(1).max(10).describe("1 to 10 selected creator IDs"),
|
|
490
|
+
searchId: searchId.optional().describe("Mark successful additions in this search")
|
|
491
|
+
})
|
|
492
|
+
});
|
|
453
493
|
var sendEmail = defineOperation({
|
|
454
494
|
name: "send_email",
|
|
455
495
|
command: ["emails", "send"],
|
|
@@ -457,12 +497,16 @@ var sendEmail = defineOperation({
|
|
|
457
497
|
path: "/campaigns/{campaignId}/creators/{creatorId}/emails",
|
|
458
498
|
kind: "send",
|
|
459
499
|
summary: "Email a creator",
|
|
460
|
-
description:
|
|
500
|
+
description: 'Sends a plain-text email to the creator\u2019s revealed address (call reveal_contact first). Replies arrive in the conversation (see get_conversation). A later email to the same creator in the same campaign is a follow-up: it joins the creator\u2019s existing email thread, keeps the conversation\u2019s stage, and copies whoever last replied for the creator (a manager, say); leave subject out to reply as "Re: <subject>". Subject and body can carry variables, filled in for this creator when it is sent, so one draft fits every creator: {name} (how to address them, cleaned from the channel name), {handle} (@handle), {platform}, {followers} (e.g. 75K) and {country}. A misspelled variable, or one this creator has no value for, fails the send with a message naming it. The first 100 emails each day are free; after that each costs 0.1 credits, up to the daily limit (see get_account). Sending the same subject and body to the same creator in the same campaign again returns the first send instead of emailing twice; pass a new idempotencyKey to send it again on purpose, for example after a send that failed.',
|
|
461
501
|
input: z3.object({
|
|
462
502
|
campaignId,
|
|
463
503
|
creatorId,
|
|
464
|
-
subject: z3.string().trim().min(1).max(200).describe(
|
|
465
|
-
|
|
504
|
+
subject: z3.string().trim().min(1).max(200).optional().describe(
|
|
505
|
+
"Email subject. Required for the first email; leave it out on a follow-up to reply in the same thread"
|
|
506
|
+
),
|
|
507
|
+
body: z3.string().trim().min(1).max(5e4).describe(
|
|
508
|
+
"Email body, plain text; may use {name}, {handle}, {platform}, {followers} and {country}"
|
|
509
|
+
),
|
|
466
510
|
idempotencyKey: z3.string().trim().min(1).max(200).optional().describe("Retries with the same key never send twice")
|
|
467
511
|
})
|
|
468
512
|
});
|
|
@@ -473,7 +517,7 @@ var getConversation = defineOperation({
|
|
|
473
517
|
path: "/campaigns/{campaignId}/creators/{creatorId}/conversation",
|
|
474
518
|
kind: "read",
|
|
475
519
|
summary: "Read the email conversation with a creator",
|
|
476
|
-
description: "Returns the email thread with a creator in a campaign: its stage, who it is waiting on, the next action and agreed facts, plus every message and event, oldest first. Free. Check it for replies after send_email. The thread is null until the first email is sent.",
|
|
520
|
+
description: "Returns the email thread with a creator in a campaign: its stage, who it is waiting on, the next action and agreed facts, plus every message and event, oldest first. Free. Check it for replies after send_email. An out-of-office or other automatic answer appears as an auto_reply event and leaves the thread waiting on the creator. The thread is null until the first email is sent.",
|
|
477
521
|
input: z3.object({ campaignId, creatorId })
|
|
478
522
|
});
|
|
479
523
|
var price = z3.string().trim().min(1).max(200).optional().describe("Price the creator named or agreed, as said, e.g. $300 per video");
|
|
@@ -542,14 +586,64 @@ var excludeCreator = defineOperation({
|
|
|
542
586
|
searchId: z3.string().trim().min(1).optional().describe("A search to drop the creator from as well")
|
|
543
587
|
})
|
|
544
588
|
});
|
|
589
|
+
var listTrendingVideos = defineOperation({
|
|
590
|
+
name: "list_trending_videos",
|
|
591
|
+
command: ["trends", "videos"],
|
|
592
|
+
method: "GET",
|
|
593
|
+
path: "/trends/videos",
|
|
594
|
+
kind: "read",
|
|
595
|
+
summary: "List recent viral videos across platforms",
|
|
596
|
+
description: "Lists quality-gated viral videos (10x+ above each creator\u2019s baseline views) across YouTube, Instagram and TikTok, deduplicated to one top video per creator by default. Free. Returns video metrics, hashtags, creatorId, creatorName, hasEmail and account access states (identityUnlocked, emailUnlocked, isSaved, campaignMemberships). Source video IDs, creator handles and playback links stay hidden until the creator is unlocked (unlock_creator, add_creator or reveal_contact).",
|
|
597
|
+
input: z3.object({
|
|
598
|
+
platform: z3.enum(PLATFORMS).optional().describe("Limit to youtube, instagram or tiktok"),
|
|
599
|
+
niche: z3.enum(CREATOR_NICHES).optional().describe("Limit to creators in this niche"),
|
|
600
|
+
country: z3.string().trim().length(2).optional().describe("Two-letter creator country code, e.g. US, GB, JP"),
|
|
601
|
+
window: z3.enum(["24h", "7d", "30d"]).optional().describe("Time window: 24h, 7d or 30d (default 30d)"),
|
|
602
|
+
sponsoredOnly: z3.boolean().optional().describe("Only sponsored or ad-disclosed viral videos"),
|
|
603
|
+
contactableOnly: z3.boolean().optional().describe("Only videos from creators with a business email on file"),
|
|
604
|
+
query: z3.string().trim().max(120).optional().describe("Optional keyword or hashtag filter"),
|
|
605
|
+
sort: z3.enum(["quality", "views", "multiplier", "engagement", "newest"]).optional().describe(
|
|
606
|
+
"Sort order: quality (default), views, multiplier, engagement or newest"
|
|
607
|
+
),
|
|
608
|
+
dedupeCreators: z3.boolean().optional().describe("Return at most one top video per creator (default true)"),
|
|
609
|
+
page: z3.number().int().min(1).max(50).optional().describe("Page number, starting at 1"),
|
|
610
|
+
limit: limit(50, 20)
|
|
611
|
+
})
|
|
612
|
+
});
|
|
613
|
+
var listTrendingHashtags = defineOperation({
|
|
614
|
+
name: "list_trending_hashtags",
|
|
615
|
+
command: ["trends", "hashtags"],
|
|
616
|
+
method: "GET",
|
|
617
|
+
path: "/trends/hashtags",
|
|
618
|
+
kind: "read",
|
|
619
|
+
summary: "List rising and popular hashtags across platforms",
|
|
620
|
+
description: "Lists trending hashtags across YouTube, Instagram and TikTok using Creator River\u2019s dual-track trend engine: steady 7-day momentum baselines by default, or live viral-video aggregations when filtering by country, time window, sponsored status or business email availability. Free. Returns each tag, state, creator count, total views, delta, related tags and sample creators with creatorId and hasEmail (no handles until unlocked).",
|
|
621
|
+
input: z3.object({
|
|
622
|
+
platform: z3.enum(PLATFORMS).optional().describe("Limit to youtube, instagram or tiktok"),
|
|
623
|
+
niche: z3.enum(CREATOR_NICHES).optional().describe("Limit to a content niche"),
|
|
624
|
+
country: z3.string().trim().length(2).optional().describe("Two-letter creator country code, e.g. US, GB, DE"),
|
|
625
|
+
window: z3.enum(["24h", "7d", "30d"]).optional().describe(
|
|
626
|
+
"Optional live window (24h, 7d or 30d) for viral hashtag aggregation"
|
|
627
|
+
),
|
|
628
|
+
sponsoredOnly: z3.boolean().optional().describe("Only sponsored viral hashtag activity"),
|
|
629
|
+
contactableOnly: z3.boolean().optional().describe("Only hashtags with creators who have a business email"),
|
|
630
|
+
query: z3.string().trim().max(120).optional().describe("Optional hashtag search filter"),
|
|
631
|
+
sort: z3.enum(["rising", "popular"]).optional().describe("Sort order: rising (default) or popular"),
|
|
632
|
+
page: z3.number().int().min(1).max(50).optional().describe("Page number, starting at 1"),
|
|
633
|
+
limit: limit(50, 20)
|
|
634
|
+
})
|
|
635
|
+
});
|
|
545
636
|
var operations = [
|
|
546
637
|
getAccount,
|
|
547
638
|
searchCreators,
|
|
548
639
|
browseCreators,
|
|
549
640
|
findCreator,
|
|
550
641
|
findSimilarCreators,
|
|
642
|
+
listTrendingVideos,
|
|
643
|
+
listTrendingHashtags,
|
|
551
644
|
listSearches,
|
|
552
645
|
getSearch,
|
|
646
|
+
expandSearch,
|
|
553
647
|
getSearchFilters,
|
|
554
648
|
updateSearch,
|
|
555
649
|
exportSearch,
|
|
@@ -564,6 +658,7 @@ var operations = [
|
|
|
564
658
|
getCampaignStatus,
|
|
565
659
|
addCreator,
|
|
566
660
|
revealContact,
|
|
661
|
+
revealContacts,
|
|
567
662
|
sendEmail,
|
|
568
663
|
getConversation,
|
|
569
664
|
recordReply,
|
|
@@ -575,7 +670,7 @@ var operations = [
|
|
|
575
670
|
import { Command, CommanderError } from "commander";
|
|
576
671
|
|
|
577
672
|
// package.json
|
|
578
|
-
var version = "0.
|
|
673
|
+
var version = "0.6.1";
|
|
579
674
|
|
|
580
675
|
// src/http.ts
|
|
581
676
|
var DEFAULT_API_URL = "https://www.creatorriver.com";
|
|
@@ -799,11 +894,12 @@ async function waitForLogin(endpoint2, io, login, waitSeconds) {
|
|
|
799
894
|
var LOGIN_HINT = "run `creatorriver auth login`";
|
|
800
895
|
var GROUP_DESCRIPTIONS = {
|
|
801
896
|
creators: "Find, inspect, unlock and save creators, and find more like one",
|
|
897
|
+
trends: "List recent viral videos and rising hashtags across platforms",
|
|
802
898
|
campaigns: "Create, change and follow campaigns and the creators in them",
|
|
803
|
-
contacts: "Reveal
|
|
899
|
+
contacts: "Reveal email addresses for one or more selected creators",
|
|
804
900
|
emails: "Send outreach emails",
|
|
805
901
|
conversations: "Read email threads with creators and record their replies",
|
|
806
|
-
searches: "Reopen, rename, archive and export past searches, and list filter values"
|
|
902
|
+
searches: "Reopen, expand, rename, archive and export past searches, and list filter values"
|
|
807
903
|
};
|
|
808
904
|
function forCli(text, operations2) {
|
|
809
905
|
return operations2.reduce(
|
|
@@ -934,7 +1030,7 @@ Exit codes: 0 ok, ${Object.entries(EXIT_CODES).sort(([, a], [, b]) => a - b).map
|
|
|
934
1030
|
"the whole input as a JSON object; flags override its fields"
|
|
935
1031
|
).action(async (options) => {
|
|
936
1032
|
try {
|
|
937
|
-
const parsed = operation.input.safeParse(buildInput(fields, options));
|
|
1033
|
+
const parsed = operation.input.strict().safeParse(buildInput(fields, options));
|
|
938
1034
|
if (!parsed.success) {
|
|
939
1035
|
throw new CliError("invalid_input", "Invalid input", {
|
|
940
1036
|
issues: parsed.error.issues.map((issue) => ({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "creatorriver",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Creator River CLI: search
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"description": "Creator River CLI: search 10M+ YouTube, TikTok and Instagram creators, every one with a contact email, and run outreach from your terminal or AI agent",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"creator-river",
|
|
7
7
|
"influencer-marketing",
|
|
@@ -28,21 +28,22 @@
|
|
|
28
28
|
"registry": "https://registry.npmjs.org/",
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"dev": "tsx src/bin/creatorriver.ts",
|
|
33
|
+
"build": "tsup",
|
|
34
|
+
"prepack": "tsup",
|
|
35
|
+
"type-check": "tsc -p tsconfig.json"
|
|
36
|
+
},
|
|
31
37
|
"dependencies": {
|
|
32
38
|
"commander": "^14.0.3",
|
|
33
39
|
"undici": "^7.18.2",
|
|
34
40
|
"zod": "^4.1.5"
|
|
35
41
|
},
|
|
36
42
|
"devDependencies": {
|
|
37
|
-
"@cde/contract": "
|
|
43
|
+
"@cde/contract": "workspace:*",
|
|
38
44
|
"@types/node": "^20",
|
|
39
45
|
"tsup": "^8.3.6",
|
|
40
46
|
"tsx": "^4.20.3",
|
|
41
47
|
"typescript": "^5"
|
|
42
|
-
},
|
|
43
|
-
"scripts": {
|
|
44
|
-
"dev": "tsx src/bin/creatorriver.ts",
|
|
45
|
-
"build": "tsup",
|
|
46
|
-
"type-check": "tsc -p tsconfig.json"
|
|
47
48
|
}
|
|
48
|
-
}
|
|
49
|
+
}
|