💬

Manyvids API reference

Generated from the SDK source (v0.8.0) by bun run build:docs

Access: loader.SDK.Manyvids (or loader.SDK.Platforms.manyvids / loader.SDK.get_platform("manyvids")).

Every method has the signature (params, ctx). Pass the plugin instance as ctx, or bind once with const api = Manyvids.bind(this) and call api.Namespace.method(params). All methods reject with an SdkError (see core).

Namespaces

NamespaceDescriptionMethods
AccountThe authenticated account ("me")8
UsersOther users: profiles and the social graph11
CreatorsCreator ranks, awards, wishlists6
MessagesDirect messages4
MediaMedia uploads1
ContentVideos14
StoreCart, store items, custom offers10
SubscriptionsVIP clubs / fanclubs5
FeedSocial feed and broadcasts9
LiveLive streaming7
NotificationsActivity notifications6
AnalyticsTraffic reports3
EarningsRevenue ledger16
PromotionsDiscounts and promo popups8
ContestsContests and awards7
DiscoverySite-wide browsing and search12
ChatConversations, platform-neutral (the shape every chat-capable platform shares)6

Account

The authenticated account ("me")

Account.get_me(params, ctx)

Identity + geolocation of the current session (works logged in or not; check isLoggedIn). user.userId is the account's legacy user ID.

ParamType
params{}

Returns Promise<ResponseAuthViewer>

Account.get_identity(params, ctx)

Identity of the current account as seen by the notifications service (GUID, legacy ID, display name).

ParamType
params{}

Returns Promise<ResponseNotificationMyDetails>

Account.get_auth_token(params, ctx)

Short-lived API auth token of the current session.

ParamType
params{}

Returns Promise<ResponseAuthToken>

Account.get_csrf_token(params, ctx)

The site CSRF token ("mvtoken") of the logged-in session — required by legacy www.manyvids.com endpoints (analytics day-range reports, mass discounts). Methods that need it fetch it automatically when omitted.

ParamType
params{}

Returns Promise<string>

Account.get_consent(params, ctx)

ParamType
params{ consent_type: "privacy" | "marketing"; }

Returns Promise<ResponseConsentRecord>

Account.get_searchability(params, ctx)

Whether the account's profile is discoverable in search.

ParamType
params{}

Returns Promise<ResponseBannerSearchability>

Account.get_services_status(params?, ctx)

Which paid services the account has switched on (custom vids, fan club, video bundles).

ParamType
params?{ user_id?: string | number; }

Returns Promise<ResponseServicesStatus>

Account.list_wishlist(params, ctx)

The account's own wishlist items (across creators).

ParamType
params{}

Returns Promise<unknown[]>

Users

Other users: profiles and the social graph

Users.get_profile(params, ctx)

Public profile of a user by legacy ID or handle.

ParamType
params{ user_id: string | number; }

Returns Promise<ResponseUserPageNew>

Users.get_profile_details(params, ctx)

Fuller profile: the API profile, plus urlHandle when it was looked up by handle. Pass whichever of user_id/handle is known.

ParamType
params{ user_id?: string | number; handle?: string; }

Returns Promise<Partial<ResponseUserPage> & Partial<ResponseUserPageNew>>

Users.get_journey_profile(params, ctx)

Journey profile summary (portrait, content preference, premium status).

ParamType
params{ guid: string; }

Returns Promise<ResponseJourneyProfile>

Users.get_social_stats(params, ctx)

Follower/following counts and their privacy settings.

ParamType
params{ user_id: string | number; }

Returns Promise<{ counts: { Followers: number; Following: number; }; handle: string; privacy: { Followers: UserPrivacy; Following: UserPrivacy; }; stageName: string; userId: string; }>

Users.get_following_status(params, ctx)

Batch-checks whether the current account follows each given user.

ParamType
params{ user_ids: (string | number)[]; }

Returns Promise<{ following: boolean; userid: number; }[]>

Users.is_following(params, ctx)

Whether the current account follows a user. Asks the batch endpoint the site uses (Users.get_following_status); to check many users, call that once instead.

ParamType
params{ user_id: string | number; }

Returns Promise<boolean>

Users.follow(params, ctx)

ParamType
params{ user_id: string | number; }

Returns Promise<boolean>

Users.unfollow(params, ctx)

ParamType
params{ user_id: string | number; }

Returns Promise<boolean>

Users.list_following(params, ctx)

Accounts a user follows (GraphQL; filterable by account type, paginated).

ParamType
paramsListConnectionsParams

Returns Promise<Page<any>>

Users.list_followers(params, ctx)

Accounts following a user (GraphQL; filterable by account type, paginated). type_filter defaults to "MEMBER".

ParamType
paramsListConnectionsParams

Returns Promise<Page<any>>

Users.list_following_by_guid(params, ctx)

Accounts a user follows, by GUID (REST endpoint; includes follow dates and whether each follows back).

ParamType
params{ guid: string; }

Returns Promise<Page<{ avatar: string; followDate: string; handle: string; id: string; isFollowedBy: boolean; legacyId: string; occupation: string; profilePic: string; profileQuote: string; profileUrl: string; stageName: string; status: string; userType: string; }>>

Creators

Creator ranks, awards, wishlists

Creators.get_club_rank(params, ctx)

Club leaderboard rank of a creator.

ParamType
params{ user_id: string | number; }

Returns Promise<number>

Creators.get_rank(params, ctx)

Club rank and merchant rank of a creator.

ParamType
params{ user_id: string | number; }

Returns Promise<{ clubRank: number; merchantRank: number; }>

Creators.list_achievements(params, ctx)

Award/contest achievement badges of a creator.

ParamType
params{ user_id: string | number; }

Returns Promise<{ awardId: number; awardTitle: string; creatorAvatar: string; creatorEntryDescription: string; creatorEntryImage: string; creatorId: number; creatorName: string; creatorStageName: string; winner: number; }[]>

Creators.get_wishlist(params, ctx)

Public wishlist of a creator.

ParamType
params{ user_id: string | number; first?: number; sort?: string; }

Returns Promise<{ categories: number[]; description: string; id: string; items: { edges: { cursor: string; node: GraphQLWishlistItem; wishlistAddons: unknown[]; wishlistSize: string; }[]; pageInfo: GraphQLPageInfo; }; perks: unknown[]; }>

Creators.get_view_counts(params, ctx)

Profile view counts for several creators at once.

ParamType
params{ user_ids: (string | number)[]; }

Returns Promise<{ id: string; localId: string; profileViewsCount: number; }[]>

Creators.get_live_rewards(params, ctx)

Live-show reward info for several creators at once.

ParamType
params{ user_ids: (string | number)[]; }

Returns Promise<{ id: string; liveRewards: unknown[]; }[]>

Messages

Direct messages

Messages.list_conversations(params?, ctx)

One page of inbox conversations, newest first.

ParamType
params?{ read_filter?: "ALL" | "UNREAD"; continuation_token?: string; }

Returns Promise<ResponseUserMessages>

Messages.list_all_conversations(params?, ctx)

Every inbox conversation (follows continuationToken until exhausted).

ParamType
params?{ read_filter?: "ALL" | "UNREAD"; max_pages?: number; }

Returns Promise<[{ message: string; roomKey: string; lastUpdated: string; readStatus: boolean; senderId: string; userRoomStatus: ["ACTIVE"]; roomPartnerDisplayName: string; roomPartnerAvatarUrl: string; roomPartnerId: string; roomPartnerType: ["user"]; roomPartnerDeleted: boolean; roomPartnerPremium: boolean; isFollowing: boolean; }]>

Messages.get_conversation(params, ctx)

Message history with one user. A conversation that doesn't exist yet resolves with { message: 'NOT_ROOM_MEMBER' } rather than throwing.

ParamType
params{ partner_id: string | number; }

Returns Promise<ResponseRoomMessages | ResponseRoomNoMessages>

Messages.send_message(params, ctx)

Sends a direct message, optionally pay-to-open and with media. Media is either already-uploaded attachments (see Media.upload_files) or local files to upload first. Throws REJECTED with ManyVids' reason code (e.g. "NO_MESSAGE_PRIVILEGE").

ParamType
params{ recipient_id: string | number; message: string; price?: string | number; attachments?: ManyvidsAttachments; files?: FileList | UploadSource[]; }

Returns Promise<{ success: unknown; }>

Media

Media uploads

Media.upload_files(params, ctx)

Uploads images/videos to ManyVids' message-attachment storage and returns the file keys to pass to Messages.send_message as attachments. Files: File objects (as on_activation gets them) or handles.

ParamType
params{ files: FileList | UploadSource[]; }

Returns Promise<ManyvidsUploadResult>

Content

Videos

Content.get_video(params, ctx)

Full detail of one video.

ParamType
params{ video_id: string | number; }

Returns Promise<ResponseStoreVideo>

Content.list_videos(params, ctx)

A creator's public video catalog.

ParamType
paramsListingParams

Returns Promise<ResponseStoreVideos>

Content.list_videos_creator_view(params, ctx)

The creator's own view of their catalog (includes pagination.totalWithoutFilters).

ParamType
paramsListingParams & { bundle?: boolean; vertical?: boolean; }

Returns Promise<ResponseStoreVideosCreatorView>

Content.get_video_bundle(params, ctx)

ParamType
params{ creator_id: string | number; }

Returns Promise<ResponseVideoBundle>

Content.get_videos_viewer_state(params, ctx)

Viewer-specific state (liked/purchased/subscribed) across a creator's catalog.

ParamType
params{ creator_id: string | number; }

Returns Promise<ResponseVideosViewerState>

Content.get_video_viewer_state(params, ctx)

Viewer-specific state (liked/in-cart/downloadable) of one video.

ParamType
params{ video_id: string | number; }

Returns Promise<ResponseVideoViewerState>

Content.get_video_like_count(params, ctx)

ParamType
params{ video_id: string | number; }

Returns Promise<number>

Content.get_video_share_count(params, ctx)

ParamType
params{ video_id: string | number; }

Returns Promise<number>

Content.get_video_views(params, ctx)

View counts of several videos at once.

ParamType
params{ video_ids: (string | number)[]; }

Returns Promise<{ id: string; localId: string; views: number; }[]>

Content.get_video_access(params, ctx)

Which of the given videos the current account can watch (e.g. purchased).

ParamType
params{ video_ids: (string | number)[]; }

Returns Promise<string[]>

Content.list_video_comments(params, ctx)

One page of comments on a video, newest first.

ParamType
params{ video_id: string | number; page?: number; }

Returns Promise<ResponseVideoComments>

Content.list_video_tags(params, ctx)

Tags used across a creator's videos, with usage counts.

ParamType
params{ creator_id: string | number; }

Returns Promise<ResponseVideoTags>

Content.list_video_recommendations(params, ctx)

Related videos shown on a video's watch page.

ParamType
params{ video_id: string | number; orientation?: "VERTICAL" | "HORIZONTAL"; }

Returns Promise<{ edges: { cursor: string; node: { __typename: "Video"; communityId: number; creator: { displayName: string; id: string; localId: string; urlHandle: string; }; duration: string; id: string; is3D: boolean; isAiGenerated: boolean; likes: number; localId: string; price: { promoRate: number; }; screenshot: GraphQLImage; slug: string; teaser: { media: GraphQLImage; }; thumbnail: GraphQLImage; title: string; views: number; winnerOf: unknown; }; }[]; pageInfo: GraphQLPageInfo; }>

Content.list_video_store_items(params, ctx)

Store items featured/worn in a video.

ParamType
params{ video_id: string | number; }

Returns Promise<{ category: string; creator: { id: string; localId: string; }; extraOptions: unknown; id: string; initialQuantity: number; isFeaturedInWishlistEvent: boolean; isSfw: boolean; localId: string; quantity: number; selectableSizes: unknown; shipping: unknown; slug: string; thumbnail: GraphQLImage; title: string; wishlistedByViewer: boolean; wornIn: unknown[]; }[]>

Store

Cart, store items, custom offers

Store.get_cart(params, ctx)

ParamType
params{}

Returns Promise<ResponseCart>

Store.count_cart_items(params, ctx)

ParamType
params{}

Returns Promise<ResponseCartItemsCount>

Store.list_countries(params, ctx)

ParamType
params{}

Returns Promise<ResponseStoreCountries>

Store.list_blocked_commenters(params, ctx)

Members blocked from commenting on the account's store.

ParamType
params{}

Returns Promise<ResponseBlockedCommenters>

Store.list_custom_comments(params, ctx)

Comments on a creator's custom-video offer.

ParamType
params{ creator_id: string | number; page?: number; }

Returns Promise<ResponseCustomComments>

Store.get_custom_offer(params, ctx)

A creator's custom video order options (packages, extras, delivery times).

ParamType
params{ creator_id: string | number; }

Returns Promise<ResponseCustomOffer>

Store.list_items(params, ctx)

A creator's public store items.

ParamType
paramsListingParams

Returns Promise<ResponseStoreItems>

Store.list_items_creator_view(params, ctx)

The creator's own view of their store items (includes pagination.totalWithoutFilters).

ParamType
paramsListingParams

Returns Promise<ResponseStoreItemsCreatorView>

Store.get_item(params, ctx)

ParamType
params{ item_id: string | number; }

Returns Promise<ResponseStoreItem>

Store.list_item_categories(params, ctx)

ParamType
params{ creator_id: string | number; }

Returns Promise<ResponseStoreItemCategories>

Subscriptions

VIP clubs / fanclubs

Subscriptions.get_settings(params, ctx)

A creator's club pricing/settings.

ParamType
params{ user_id: string | number; }

Returns Promise<ResponseClubSettings>

Subscriptions.get_info(params, ctx)

A creator's club blurb/stats.

ParamType
params{ user_id: string | number; }

Returns Promise<ResponseClubInfo>

Subscriptions.list_trending(params?, ctx)

Trending clubs.

ParamType
params?{ limit?: number; }

Returns Promise<any[]>

Subscriptions.list_leaderboard(params?, ctx)

Club creators ranked (leaderboard).

ParamType
params?{ first?: number; }

Returns Promise<{ node: { clubRank: number; id: string; localId: string; }; }[]>

Subscriptions.list_directory(params, ctx)

Club creators directory (avatar, portrait, VIP blurb).

ParamType
params{}

Returns Promise<{ node: { avatar: GraphQLImage; club: { vipBlurb: string; }; clubRank: number; displayName: string; id: string; isAICreator: boolean; isCreatorPlus: boolean; localId: string; portrait: GraphQLImage; urlHandle: string; }; }[]>

Feed

Social feed and broadcasts

Feed.list_posts(params?, ctx)

One page of the social feed.

ParamType
params?{ category?: string; desired_count?: number; target_user_id?: string | number; next?: string; }

Returns Promise<ResponseFeed>

ParamType
params?{ limit?: number; }

Returns Promise<ResponseTrendingPosts>

Feed.like_post(params, ctx)

ParamType
params{ post_id: string; }

Returns Promise<boolean>

Feed.unlike_post(params, ctx)

ParamType
params{ post_id: string; }

Returns Promise<boolean>

Feed.share_post(params, ctx)

ParamType
params{ post_id: string; }

Returns Promise<boolean>

Feed.record_post_view(params, ctx)

Increments a post's view counter.

ParamType
params{ post_id: string; }

Returns Promise<true>

Feed.list_broadcast_rooms(params, ctx)

ParamType
params{}

Returns Promise<ResponseFeedBroadcastRooms>

Feed.count_unread_broadcasts(params, ctx)

ParamType
params{}

Returns Promise<number>

Feed.get_broadcast_quota(params, ctx)

Remaining weekly broadcast quota of the account.

ParamType
params{}

Returns Promise<ResponseFeedBroadcastQuota>

Live

Live streaming

Live.list_creators(params?, ctx)

ParamType
params?{ limit?: number; sort_by?: string; status?: string; }

Returns Promise<ResponseLiveCreators>

Live.get_popular(params?, ctx)

ParamType
params?{ period?: string; }

Returns Promise<ResponsePopularLiveCreator>

Live.get_schedule(params, ctx)

ParamType
params{ creator_id: string | number; limit?: number; }

Returns Promise<ResponseLiveSchedule>

Live.get_ranking(params, ctx)

ParamType
params{ creator_id: string | number; }

Returns Promise<ResponseLiveRanking>

Live.list_token_packages(params, ctx)

Purchasable live-token packages and active promotions.

ParamType
params{}

Returns Promise<ResponseLiveTokenPurchasePackages>

Live.list_leaderboard(params, ctx)

ParamType
params{}

Returns Promise<{ node: { avatar: GraphQLImage; displayName: string; id: string; liveCover: GraphQLImage; liveSessionType: string; liveStatus: string; urlHandle: string; }; position: number; }[]>

Live.list_upcoming_shows(params?, ctx)

ParamType
params?{ first?: number; unique_creators?: boolean; one_show_per_day_per_creator?: boolean; creator_tier_filter?: boolean; max_days?: number; }

Returns Promise<{ edges: { node: { creator: { avatar: GraphQLImage; displayName: string; id: string; live: { id: string; liveStatus: string; sessionType: string; }; localId: string; urlHandle: string; }; description: string; id: string; image: GraphQLImage; isSubscribed: boolean; localId: string; startDatetime: string; title: string; }; }[]; pageInfo: GraphQLPageInfo; }>

Notifications

Activity notifications

Notifications.list_all(params, ctx)

All activity notifications (follows, sales, comments, ...), grouped.

ParamType
params{}

Returns Promise<ResponseNotifications>

Notifications.list_subscription_activity(params, ctx)

Notifications from subscription (club/VIP) activity.

ParamType
params{}

Returns Promise<ResponseFanclubNotifications>

Notifications.list_sales(params, ctx)

Sale notifications (the "Sales" tab of the notification panel). Only empty answers have been recorded, so Items is untyped.

ParamType
params{}

Returns Promise<ResponseFanclubNotifications>

Notifications.list_follow_group(params, ctx)

The users behind a grouped "FOLLOW" notification.

ParamType
params{ group_id: string; user_key: string; }

Returns Promise<ResponseNotificationFollowers>

Notifications.mark_read(params, ctx)

ParamType
params{ notifications: { groupId: string; userKey: string; }[]; }

Returns Promise<true>

Notifications.get_badge_counts(params, ctx)

Unread inbox/notification counts shown in the site nav.

ParamType
params{}

Returns Promise<ResponseNotifyMe>

Analytics

Traffic reports

Analytics.get_profile_views_by_day(params, ctx)

Profile page views per day (sparse, MM-DD keys without year — hence the one-year maximum range).

ParamType
paramsDayRangeParams

Returns Promise<ResponseViewsByDay>

Analytics.get_video_views_by_day(params, ctx)

Video page views per day across the whole catalog (sparse, MM-DD keys). Distinct from each video's lifetime view counter.

ParamType
paramsDayRangeParams

Returns Promise<ResponseViewsByDay>

Analytics.get_profile_views_by_month(params, ctx)

Profile views of one calendar month, keyed by day of month (sparse).

ParamType
params{ year: string | number; month: string | number; }

Returns Promise<ResponseProfileViewsByMonth>

Earnings

Revenue ledger

Earnings.list_transactions(params, ctx)

Sales/tips/fees ledger (newest first), parsed from the "View my earnings" page. Works in the browser and on the server.

The page covers the current pay period only: rows leave it once paid out. For older sales use Earnings.get_sales_by_day. Rows here have the buyer, video ID, rating and promo code.

ParamType
params{}

Returns Promise<EarningsTransaction[]>

Earnings.get_balance(params?, ctx)

Unpaid balance and the next payout's amount (decimal strings).

ParamType
params?OwnIdParams

Returns Promise<ResponsePayeeEarnings>

Earnings.get_sales_by_month(params, ctx)

Sales totals of each month of a year, split by category (videos, store, club, ...). Twelve rows, empty months included: use it to find which months have sales before reading them with get_sales_by_day.

ParamType
paramsOwnIdParams & { year: string | number; }

Returns Promise<(SalesBreakdown & { month: number; })[]>

Earnings.get_sales_by_day(params, ctx)

One month of sales: per-day totals (days without sales are left out) and every sale with its buyer, amount, type and time. Goes back to the account's first sale, so this is the way to read sales history. Items carry the video title but no video ID.

ParamType
paramsOwnIdParams & { year: string | number; month: string | number; }

Returns Promise<ResponseSalesDaily>

Earnings.list_recent_sales(params?, ctx)

The dashboard's "recent sales" list, newest first. Unlike get_sales_by_day, rows have the sale ID, video ID, review rating and promo code; payout fees show up as negative Bonus rows.

ParamType
params?OwnIdParams & { filter?: "all" | "vids" | "store" | "services"; }

Returns Promise<RecentSaleItem[]>

Earnings.list_payouts(params, ctx)

Payouts of a year (pay period, method, amount, fee).

ParamType
paramsOwnIdParams & { year: string | number; }

Returns Promise<PayoutItem[]>

Earnings.get_monthly_rankings(params, ctx)

Sales rank of each month of a year, and the years with rankings. rank/total are null for months the account wasn't ranked.

ParamType
paramsOwnIdParams & { year: string | number; }

Returns Promise<ResponseRankingsMonthly>

Earnings.get_daily_rankings(params, ctx)

Sales rank per day of a month. Only empty answers have been recorded, so the item shape is unknown.

ParamType
paramsOwnIdParams & { year: string | number; month: string | number; }

Returns Promise<ResponseRankingsDaily>

Earnings.get_token_earnings(params?, ctx)

Live-show tokens converted to money.

ParamType
params?OwnIdParams

Returns Promise<ResponseTokenEarnings>

Earnings.list_services_sold(params, ctx)

Subscriptions sold of one service category, with active/expired totals.

ParamType
paramsOwnIdParams & { category: string; expiration?: string; }

Returns Promise<ResponseServicesSold>

Earnings.list_pending_custom_vids(params?, ctx)

Custom video orders not delivered yet.

ParamType
params?OwnIdParams

Returns Promise<unknown[]>

Earnings.get_summary(params?, ctx)

Dashboard headline numbers: new followers and the unpaid balance (in cents).

ParamType
params?OwnIdParams

Returns Promise<ResponseTopKpis>

Earnings.get_recent_chart(params?, ctx)

Daily earnings of the current and the previous month (the dashboard chart).

ParamType
params?OwnIdParams

Returns Promise<ResponseDashboardEarnings>

Earnings.get_sources(params?, ctx)

Earnings split by source (Vids, Custom Vids, Tips, Club, ...).

ParamType
params?OwnIdParams

Returns Promise<ResponseEarningsSources>

Earnings.list_top_members(params?, ctx)

The members who spent the most. Only empty answers have been recorded, so the member shape is unknown.

ParamType
params?OwnIdParams

Returns Promise<ResponseTopMembers>

Earnings.get_subscription_summary(params?, ctx)

Subscriber summaries (fan club, memberships). Only null answers have been recorded.

ParamType
params?OwnIdParams

Returns Promise<ResponseDashboardSubscriptions>

Promotions

Discounts and promo popups

Promotions.list_discounts(params?, ctx)

The account's videos (or store items) with their current and scheduled discounts.

ParamType
params?{ type?: "store" | "video"; }

Returns Promise<CreatorDiscountItem[]>

Promotions.set_discount(params, ctx)

Puts a percentage discount on videos or store items, the way the creator dashboard does. Takes any whole percentage 1-99 (0 removes the discount), absolute times (Date, ISO string or epoch ms) and needs no CSRF token.

Throws REJECTED when a non-zero rate reached no item. Items whose sale price would fall under ManyVids' minimum come back in belowMinimumPrice.

ParamType
params{ ids: (string | number)[]; rate: number; ends_at?: string | number | Date; starts_at?: string | number | Date; type?: "store" | "video"; }

Returns Promise<ResponseSetCreatorDiscount>

Promotions.create_promo_code(params, ctx)

Creates a promo code buyers enter at checkout. ManyVids picks the code.

ParamType
params{ title: string; discount: number; applies_to?: Partial<{ vids: boolean; vidBundle: boolean; customVid: boolean; store: boolean; club: boolean; tokens: boolean; }>; already_on_sale?: boolean; active?: boolean; starts_at?: string | number | Date; ends_at?: string | number | Date; }

Returns Promise<ResponseCreatePromoCode>

Promotions.delete_promo_code(params, ctx)

ParamType
params{ promo_code_id: string | number; }

Returns Promise<true>

Promotions.create_mv_link(params, ctx)

Creates an MV link: a purchase link for one or more of the account's videos, to hand to a buyer.

ParamType
params{ video_ids: (string | number)[]; }

Returns Promise<ResponseCreateMvLink>

Promotions.delete_mv_link(params, ctx)

Revokes an MV link.

ParamType
params{ link_id: string | number; }

Returns Promise<{ message: string; }>

Promotions.set_mass_discount(params, ctx)

Puts a timed percentage discount on one or more of the account's videos through the legacy www endpoint. Prefer Promotions.set_discount: it takes any percentage and absolute times, and needs no CSRF token. Sends a multipart body (works in both runtimes).

Throws REJECTED when ManyVids applied the discount to no video — its endpoint answers with the same "success" message either way, so an empty allIds is the only reliable failure signal.

ParamType
params{ video_ids: (string | number)[]; discount: DiscountPercent; end_date: string; end_time: string; start_date?: string; start_time?: string; mvtoken?: string; }

Returns Promise<ResponseSaveMassDiscounts>

Promotions.get_popup(params, ctx)

The currently active marketing popup (contests, promos), if any.

ParamType
params{}

Returns Promise<{ content: { bannerType: string; buttonLabel: string; image: { url: string; }; redirectUrl: string; subTitle: string; title: string; }; endDate: string; startDate: string; }>

Contests

Contests and awards

Contests.get_status(params, ctx)

The currently running contest.

ParamType
params{}

Returns Promise<ResponseContestStatus>

Contests.get_contest(params, ctx)

ParamType
params{ contest_id: string | number; include_top_3_voters?: boolean; page?: number; participants_limit?: number; }

Returns Promise<ResponseContestPrivate>

Contests.get_participant(params, ctx)

A participant's standing in a contest. Throws REJECTED when not found.

ParamType
params{ contest_id: string | number; stage_name: string; }

Returns Promise<ContestParticipant>

Contests.list_award_winners(params, ctx)

ParamType
params{ award_id: string | number; }

Returns Promise<ResponseContestAwardWinners>

Contests.list_recent_votes(params, ctx)

The 50 most recent votes of a contest.

ParamType
params{ contest_id: string | number; }

Returns Promise<ResponseContestLastFiftyVotes>

Contests.has_voted_club(params, ctx)

ParamType
params{ club_id: string; }

Returns Promise<boolean>

Contests.record_club_view(params, ctx)

Records a view of the current club contest banner.

ParamType
params{}

Returns Promise<true>

Discovery

Site-wide browsing and search

ParamType
params?{ content_pref?: string; }

Returns Promise<{ communityId: number; creator: { avatar: GraphQLImage; displayName: string; hasGeoblock: boolean; id: string; isAICreator: boolean; isCreatorPlus: boolean; localId: string; urlHandle: string; }; duration: string; id: string; likes: number; localId: string; price: GraphQLPrice; screenshot: GraphQLImage; slug: string; teaser: { media: GraphQLImage; }; thumbnail: GraphQLImage; title: string; tokenRewards: number; views: number; }[]>

ParamType
params{}

Returns Promise<GraphQLLanderCreator[]>

Discovery.list_gifted_creators(params?, ctx)

ParamType
params?{ content_pref?: string; }

Returns Promise<{ edges: { node: GraphQLStoreItem; }[]; totalCount: number; }>

Discovery.list_creators(params?, ctx)

Browse creators (GraphQL directory).

ParamType
params?{ first?: number; }

Returns Promise<{ node: GraphQLLanderCreator; }[]>

Discovery.list_banners(params?, ctx)

Homepage promo banners (e.g. active contest highlights).

ParamType
params?{ banner_type?: string; }

Returns Promise<{ node: { communityId: string; contest: { bonuses: { rank: string; value: string; }[]; endTimestamp: string; id: string; startTimestamp: string; title: string; winningWednesday: boolean; }; creator: { avatar: GraphQLImage; displayName: string; id: string; isAICreator: boolean; localId: string; urlHandle: string; }; participation: { entryDescription: string; entryImage: string; id: string; rank: number; }; position: number; transcodedData: { height: number; url: string; width: number; }[]; video: { id: string; is3D: boolean; teaser: { media: GraphQLImage; }; }; }; }[]>

Discovery.list_top_ranking(params, ctx)

Top-ranking user IDs per category (girl/boy/trans/producer).

ParamType
params{ community_id: string | number; }

Returns Promise<Record<string, unknown>>

Trending search terms.

ParamType
params{}

Returns Promise<string[]>

Discovery.search_creators(params?, ctx)

ParamType
params?{ content_pref?: number; content_type?: string; exclude_user_ids?: (string | number)[]; from?: number; shuffle?: boolean; size?: number; sort?: string; }

Returns Promise<ResponseSearchCreators>

Discovery.search_videos(params, ctx)

Video search by tag (the "Vids" listing).

ParamType
params{ tag_ids: string | number | (string | number)[]; from?: number; size?: number; sort?: string; content_pref?: number; }

Returns Promise<ResponseVideos>

Discovery.search_store_items(params?, ctx)

Store item search (GraphQL).

ParamType
params?{ content_type?: string; first?: number; sort?: string; sale?: string; location?: string; award_years?: number[]; unique_creators?: boolean; shippable?: boolean; sfw_ratio?: number; lander?: boolean; }

Returns Promise<{ edges: { cursor: string; node: GraphQLStoreItem; }[]; pageInfo: GraphQLPageInfo; }>

Discovery.search_tags(params, ctx)

Tag autocomplete. Queries of 2 characters or fewer resolve to [].

ParamType
params{ query: string; }

Returns Promise<ResponseTags | []>

Discovery.get_tags(params, ctx)

Tag names for tag IDs.

ParamType
params{ tag_ids: (string | number)[]; }

Returns Promise<[] | ResponseTagsByIds>

Chat

Conversations, platform-neutral (the shape every chat-capable platform shares)

Chat.get_thread(params, ctx)

The conversation with another user, normalised.

ParamType
params{ partner_id: string; }

Returns Promise<ChatThread>

Chat.send(params, ctx)

Sends a message, optionally with files (File objects, handles, or attachments of a messenger reply — see Media.upload_files).

ParamType
params{ partner_id: string; text: string; files?: any[] | FileList; }

Returns Promise<{ success: unknown; }>

Chat.is_following(params, ctx)

Whether the account follows the other party (null: unknown).

ParamType
params{ partner_id: string; }

Returns Promise<boolean>

Chat.set_following(params, ctx)

Follows (true) or unfollows (false) the other party; resolves once the account is in that state.

ParamType
params{ partner_id: string; follow: boolean; }

Returns Promise<boolean>

Chat.get_own_bio(params, ctx)

The account's own profile bio ('' when unknown) — grounds AI replies.

ParamType
paramsany

Returns Promise<string>

Chat.is_member_type(params)

Whether a profile's user_type is a fan/member (true) or a creator (false); null when unknown.

ParamType
params{ user_type: string; }

Returns boolean

Entities

Stateful helpers built on the namespaces above (new Manyvids.User(obj, this)).

User

A ManyVids user (member or creator) wrapped around whatever raw object an endpoint returned for them — follower edges, search results, profiles all use different field names, which the getters below normalise.

const user = new Manyvids.User({ legacyId: '123' }, this);
await user.init();
if (!user.has_conversation) await user.send_message({ message: 'Hi!' });

new User(obj: Record<string, any>, ctx: RequestContext)

MemberDescription
obj: Record<string, any>
ctx: RequestContext
empty_messages: booleanWhether there is no conversation with this user yet (set by User#init).
initialized: boolean
process: RequestContext
is_valid: boolean
has_conversation: booleanWhether a conversation with this user exists (inverse of empty_messages).
rating: numberCreator rank, 0 when unknown.
id: anyGUID (without the U# prefix), or '' when only a legacy ID is known.
legacy_id: string | number
display_name: string
handle: string
init() → Promise<User>Checks the conversation state and loads full profile details into User#obj. Throws when the account is disabled.
load_details() → Promise<Record<string, any>>Fetches the fuller profile and merges it into User#obj.
get_journey_profile() → Promise<ResponseJourneyProfile>
list_following(params) → Promise<Page<any>>Accounts this user follows (GraphQL, paginated).
list_following_by_guid() → Promise<Page<{ avatar: string; followDate: string; handle: string; id: string; isFollowedBy: boolean; legacyId: string; occupation: string; profilePic: string; profileQuote: string; profileUrl: string; stageName: string; status: string; userType: string; }>>Accounts this user follows, via the GUID-based REST endpoint.
is_followed() → Promise<boolean>Whether the current account follows this user.
follow() → Promise<boolean>Follows this user unless already followed.
unfollow() → Promise<boolean>Unfollows this user if followed.
send_message(params) → Promise<{ success: unknown; }>

Creator

A creator. Adds social stats, ranks and a stateful follower cursor on top of User.

const creator = new Manyvids.Creator({ legacyId: '123' }, this);
while (!creator.is_finished) {
    for (const follower of await creator.next_followers()) { ... }
}

new Creator(obj: Record<string, any>, ctx: RequestContext)

MemberDescription
followers_public: boolean
following_public: boolean
followers_count: number
following_count: number
is_finished: booleanWhether Creator#next_followers has reached the last page.
followers_cursor: string
load_social_stats() → Promise<{ counts: { Followers: number; Following: number; }; handle: string; privacy: { Followers: UserPrivacy; Following: UserPrivacy; }; stageName: string; userId: string; }>Loads follower/following counts and whether those lists are public.
next_followers(__0) → Promise<any[]>The next page of this creator's followers; sets Creator#is_finished after the last one.
get_club_rank() → Promise<number>Club leaderboard rank.
get_rank() → Promise<{ clubRank: number; merchantRank: number; }>Club rank and merchant rank.
list_achievements() → Promise<{ awardId: number; awardTitle: string; creatorAvatar: string; creatorEntryDescription: string; creatorEntryImage: string; creatorId: number; creatorName: string; creatorStageName: string; winner: number; }[]>
get_wishlist(params) → Promise<{ categories: number[]; description: string; id: string; items: { edges: { cursor: string; node: GraphQLWishlistItem; wishlistAddons: unknown[]; wishlistSize: string; }[]; pageInfo: GraphQLPageInfo; }; perks: unknown[]; }>
obj: Record<string, any>
ctx: RequestContext
empty_messages: booleanWhether there is no conversation with this user yet (set by User#init).
initialized: boolean
process: RequestContext
is_valid: boolean
has_conversation: booleanWhether a conversation with this user exists (inverse of empty_messages).
rating: numberCreator rank, 0 when unknown.
id: anyGUID (without the U# prefix), or '' when only a legacy ID is known.
legacy_id: string | number
display_name: string
handle: string
init() → Promise<Creator>Checks the conversation state and loads full profile details into User#obj. Throws when the account is disabled.
load_details() → Promise<Record<string, any>>Fetches the fuller profile and merges it into User#obj.
get_journey_profile() → Promise<ResponseJourneyProfile>
list_following(params) → Promise<Page<any>>Accounts this user follows (GraphQL, paginated).
list_following_by_guid() → Promise<Page<{ avatar: string; followDate: string; handle: string; id: string; isFollowedBy: boolean; legacyId: string; occupation: string; profilePic: string; profileQuote: string; profileUrl: string; stageName: string; status: string; userType: string; }>>Accounts this user follows, via the GUID-based REST endpoint.
is_followed() → Promise<boolean>Whether the current account follows this user.
follow() → Promise<boolean>Follows this user unless already followed.
unfollow() → Promise<boolean>Unfollows this user if followed.
send_message(params) → Promise<{ success: unknown; }>

TagCrawler

Walks the "Vids" listing of one tag page by page and yields the distinct creators found on each page — a source of creators for audience building.

const crawler = new Manyvids.TagCrawler(tag_id, this);
while (!crawler.is_finished) {
    const creators = await crawler.next_page();
}

new TagCrawler(tag_id: string | number, ctx: RequestContext)

MemberDescription
tag_id: string | number
ctx: RequestContext
current_page: number
total_pages: number
is_finished: boolean
next_page() → Promise<{ id: string | number; guid: string; stageName: string; }[]>