creatorriver 0.5.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 +6 -2
- package/dist/creatorriver.js +91 -23
- package/package.json +11 -10
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,6 +24,10 @@ 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>
|
|
28
32
|
creatorriver contacts reveal-batch --campaign-id <campaign-id> --creator-ids <first-id>,<second-id>
|
|
29
33
|
creatorriver emails send --campaign-id <campaign-id> --creator-id <creator-id> --subject "Partnership" --body "Hi! ..."
|
|
@@ -31,7 +35,7 @@ creatorriver conversations get --campaign-id <campaign-id> --creator-id <creator
|
|
|
31
35
|
creatorriver campaigns status --campaign-id <campaign-id>
|
|
32
36
|
```
|
|
33
37
|
|
|
34
|
-
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. Filtered browsing counts toward the search allowance shown by `account
|
|
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`.
|
|
35
39
|
|
|
36
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.
|
|
37
41
|
|
package/dist/creatorriver.js
CHANGED
|
@@ -150,7 +150,7 @@ 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, the maximum results per search, 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
156
|
var accountExclusionFilters = {
|
|
@@ -183,6 +183,9 @@ var creatorFilters = {
|
|
|
183
183
|
).optional().describe(
|
|
184
184
|
"Only creators whose latest post is at most this many days old: 7, 14, 30, 90 or 180"
|
|
185
185
|
),
|
|
186
|
+
hasRecentViral: z3.boolean().optional().describe(
|
|
187
|
+
"Only creators who published at least one 10x+ viral video in the last 30 days"
|
|
188
|
+
),
|
|
186
189
|
minFollowers: count("At least this many followers"),
|
|
187
190
|
maxFollowers: count("At most this many followers"),
|
|
188
191
|
minAvgViews: count("At least this many average views per post"),
|
|
@@ -201,7 +204,7 @@ var searchCreators = defineOperation({
|
|
|
201
204
|
path: "/searches",
|
|
202
205
|
kind: "read",
|
|
203
206
|
summary: "Find creators by description and filters",
|
|
204
|
-
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 but no handle or profile link. Pass campaignId to rank against that campaign\u2019s brief and record the search in it.",
|
|
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.",
|
|
205
208
|
input: z3.object({
|
|
206
209
|
query: z3.string().trim().min(1).max(1e3).describe(
|
|
207
210
|
"The creators you want, in plain words: niche, what their content is like, who watches it"
|
|
@@ -221,8 +224,14 @@ var browseCreators = defineOperation({
|
|
|
221
224
|
path: "/creators/browse",
|
|
222
225
|
kind: "read",
|
|
223
226
|
summary: "List the biggest creators matching filters",
|
|
224
|
-
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. A filtered list uses the daily search allowance
|
|
225
|
-
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
|
+
})
|
|
226
235
|
});
|
|
227
236
|
var findCreator = defineOperation({
|
|
228
237
|
name: "find_creator",
|
|
@@ -231,7 +240,7 @@ var findCreator = defineOperation({
|
|
|
231
240
|
path: "/creators/lookup",
|
|
232
241
|
kind: "read",
|
|
233
242
|
summary: "Find a creator by handle or profile link",
|
|
234
|
-
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.",
|
|
235
244
|
input: z3.object({
|
|
236
245
|
reference: z3.string().trim().min(1).max(300).describe(
|
|
237
246
|
"An @handle or a profile link, e.g. @mkbhd or https://www.youtube.com/@mkbhd"
|
|
@@ -244,24 +253,17 @@ var findSimilarCreators = defineOperation({
|
|
|
244
253
|
method: "POST",
|
|
245
254
|
path: "/creators/{creatorId}/similar",
|
|
246
255
|
kind: "read",
|
|
247
|
-
summary: "Find creators like one you already have",
|
|
248
|
-
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.",
|
|
249
258
|
input: z3.object({
|
|
250
259
|
creatorId: creatorId.describe(
|
|
251
|
-
"The creator to find more like, from search_creators or another result"
|
|
252
|
-
),
|
|
253
|
-
...accountExclusionFilters,
|
|
254
|
-
campaignId: campaignId.optional().describe("Leave out creators this campaign already has or excluded"),
|
|
255
|
-
markets: z3.array(z3.string().trim().min(1)).optional().describe(
|
|
256
|
-
"Only creators based in these countries: two-letter codes, e.g. us, gb, jp"
|
|
260
|
+
"The primary creator to find more like, from search_creators or another result"
|
|
257
261
|
),
|
|
258
|
-
|
|
259
|
-
"
|
|
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"
|
|
260
264
|
),
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
minAvgViews: count("At least this many average views per post"),
|
|
264
|
-
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"),
|
|
265
267
|
limit: limit(100, 20)
|
|
266
268
|
})
|
|
267
269
|
});
|
|
@@ -287,9 +289,24 @@ var getSearch = defineOperation({
|
|
|
287
289
|
path: "/searches/{searchId}",
|
|
288
290
|
kind: "read",
|
|
289
291
|
summary: "Read a past search\u2019s results again",
|
|
290
|
-
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.",
|
|
291
293
|
input: z3.object({ searchId })
|
|
292
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
|
+
});
|
|
293
310
|
var getSearchFilters = defineOperation({
|
|
294
311
|
name: "get_search_filters",
|
|
295
312
|
command: ["searches", "filters"],
|
|
@@ -334,7 +351,7 @@ var getCreator = defineOperation({
|
|
|
334
351
|
path: "/creators/{creatorId}",
|
|
335
352
|
kind: "read",
|
|
336
353
|
summary: "Show a creator\u2019s profile",
|
|
337
|
-
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.",
|
|
338
355
|
input: z3.object({
|
|
339
356
|
creatorId,
|
|
340
357
|
campaignId: campaignId.optional().describe("Also show this campaign\u2019s progress with the creator")
|
|
@@ -569,14 +586,64 @@ var excludeCreator = defineOperation({
|
|
|
569
586
|
searchId: z3.string().trim().min(1).optional().describe("A search to drop the creator from as well")
|
|
570
587
|
})
|
|
571
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
|
+
});
|
|
572
636
|
var operations = [
|
|
573
637
|
getAccount,
|
|
574
638
|
searchCreators,
|
|
575
639
|
browseCreators,
|
|
576
640
|
findCreator,
|
|
577
641
|
findSimilarCreators,
|
|
642
|
+
listTrendingVideos,
|
|
643
|
+
listTrendingHashtags,
|
|
578
644
|
listSearches,
|
|
579
645
|
getSearch,
|
|
646
|
+
expandSearch,
|
|
580
647
|
getSearchFilters,
|
|
581
648
|
updateSearch,
|
|
582
649
|
exportSearch,
|
|
@@ -603,7 +670,7 @@ var operations = [
|
|
|
603
670
|
import { Command, CommanderError } from "commander";
|
|
604
671
|
|
|
605
672
|
// package.json
|
|
606
|
-
var version = "0.
|
|
673
|
+
var version = "0.6.1";
|
|
607
674
|
|
|
608
675
|
// src/http.ts
|
|
609
676
|
var DEFAULT_API_URL = "https://www.creatorriver.com";
|
|
@@ -827,11 +894,12 @@ async function waitForLogin(endpoint2, io, login, waitSeconds) {
|
|
|
827
894
|
var LOGIN_HINT = "run `creatorriver auth login`";
|
|
828
895
|
var GROUP_DESCRIPTIONS = {
|
|
829
896
|
creators: "Find, inspect, unlock and save creators, and find more like one",
|
|
897
|
+
trends: "List recent viral videos and rising hashtags across platforms",
|
|
830
898
|
campaigns: "Create, change and follow campaigns and the creators in them",
|
|
831
899
|
contacts: "Reveal email addresses for one or more selected creators",
|
|
832
900
|
emails: "Send outreach emails",
|
|
833
901
|
conversations: "Read email threads with creators and record their replies",
|
|
834
|
-
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"
|
|
835
903
|
};
|
|
836
904
|
function forCli(text, operations2) {
|
|
837
905
|
return operations2.reduce(
|
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": {
|
|
43
|
+
"@cde/contract": "workspace:*",
|
|
37
44
|
"@types/node": "^20",
|
|
38
45
|
"tsup": "^8.3.6",
|
|
39
46
|
"tsx": "^4.20.3",
|
|
40
|
-
"typescript": "^5"
|
|
41
|
-
"@cde/contract": "0.1.0"
|
|
42
|
-
},
|
|
43
|
-
"scripts": {
|
|
44
|
-
"dev": "tsx src/bin/creatorriver.ts",
|
|
45
|
-
"build": "tsup",
|
|
46
|
-
"type-check": "tsc -p tsconfig.json"
|
|
47
|
+
"typescript": "^5"
|
|
47
48
|
}
|
|
48
|
-
}
|
|
49
|
+
}
|