Skip to main content
onlyfanskit is the typed surface behind the hosted REST API. Default integration path: connect an account on the platform, then call /v1/accounts/{id}/{resource}/{method} with your API key.
Install the package when you want types and IDE autocomplete while building request bodies, or when you run code on onlyfanskit infrastructure that executes the client directly:

Resource layout

The client is organized as of.<resource>.<method>(...). Each maps to one OnlyFans API call:

What’s covered

Account & identity

users, subscriptions, security, helpers, sessions, referrals, streaks

Content

posts, comments, media, stories, highlights, streams, bookmarks, labels

Messaging

messages, chats, notifications

Money

earnings, payments, payouts, chargebacks, dataExports

Growth & promo

campaigns, trialLinks, promotions, lists, schedules, following, social

Support & metadata

tickets, reports, releaseForms, discovery, iso, pages

Raw paths

On the hosted API, the same call is GET /v1/accounts/{id}/... or the generic SDK passthrough documented in API reference. See Connecting the client for how sessions relate to the platform.