ofapisv1

Guides & Docs

Everything we've written about working with the OnlyFans REST API — grouped by what you're trying to do. 91 guides and counting.

Quickstarts

quickstart
OnlyFans API Node.js Quickstart — Fetch Examples

Call the OnlyFans API from Node.js/JavaScript. Bearer auth, fetch the creator profile, list chats, and send a DM with native fetch — copy-paste ready.

quickstart
OnlyFans API Python Quickstart

Call the OnlyFans API from Python. Authenticate with a Bearer token, fetch the creator profile, list chats, and send a message — copy-paste examples.

quickstart
OnlyFans API with C# (.NET) — Quickstart

Call the OnlyFans API from C#. Set the Bearer header, read /me, list chats and send messages with HttpClient and System.Net.Http — copy-paste examples.

quickstart
OnlyFans API with curl — Quickstart

Call the OnlyFans API with curl. Set the Bearer header, hit /me, list chats and send messages from the command line, piping JSON through jq.

quickstart
OnlyFans API with Go (Golang) — Quickstart

Call the OnlyFans API from Go. Authenticate with a Bearer token and read chats or send messages using net/http — copy-paste examples, no SDK needed.

quickstart
OnlyFans API with Java — Quickstart

Call the OnlyFans API from Java. Set the Bearer header, read /me, list chats and send messages with java.net.http.HttpClient — copy-paste examples.

quickstart
OnlyFans API with PHP — Quickstart & Examples

Call the OnlyFans API from PHP with ofapis. Authenticate with a Bearer token and read chats or send messages using curl or Guzzle — copy-paste examples.

quickstart
OnlyFans API with Ruby — Quickstart

Call the OnlyFans API from Ruby. Set the Bearer header, read /me, list chats and send messages with Net::HTTP or Faraday — copy-paste examples.

quickstart
OnlyFans API with Rust — Quickstart

Call the OnlyFans API from Rust. Set the Bearer header, read /me, list chats and send messages with reqwest and tokio — copy-paste async examples.

Capabilities

capability
OnlyFans Chat API — List Chats & Build an Inbox

List a creator's OnlyFans chats over REST and build a unified inbox. Paginate conversations globally or per linked account, then read and reply.

capability
OnlyFans Creator Profile & User API

Read the authenticated OnlyFans creator profile and look up any user by id or username over REST. The base layer for dashboards and CRMs.

capability
OnlyFans Earnings API — Aggregate Revenue Reads

Compute OnlyFans revenue with the ofapis onlyfans earnings api: aggregate tips, PPV unlocks, and subscription events from message and notification reads.

capability
OnlyFans Fan Segments API — Lists & Targeting

Group OnlyFans subscribers into segments over REST. Create fan lists, add or remove fans, and target each segment with messaging and mass DMs.

capability
OnlyFans Fans API — Fan Records, Activity & Spend

Fetch a single fan's record over REST with the OnlyFans fans api. Resolve a fan by id or handle, then join activity and lifetime spend into one profile.

capability
OnlyFans Lists API — Fan Lists & Collections

Read and manage OnlyFans fan lists over REST with the OnlyFans lists api. Enumerate members, add or remove fans, and address sends to a list by id.

capability
OnlyFans Mass DM API — Bulk Messaging

Send personalised mass DMs to all subscribers or a fan segment with one OnlyFans API call. Preview recipient count and credit cost before you trigger.

capability
OnlyFans Media Upload API — Push Files to the Vault

Upload photos and videos to an OnlyFans vault over REST with the ofapis onlyfans media upload api, then attach the returned media id to messages and posts.

capability
OnlyFans Messaging API — Send & Read DMs

Read and send OnlyFans direct messages over a clean REST API. List chats, fetch message history, and send DMs with a single Bearer-authed call.

capability
OnlyFans Notifications API — Read Alerts & Mentions

Poll a creator's OnlyFans notifications, unread counts and mentions over a clean REST API. Bearer-authed, one credit per call, global or per-account.

capability
OnlyFans Posts API — Schedule & List Feed Posts

Schedule and list OnlyFans feed posts over REST with the OnlyFans posts api. Attach vault media and queue posts through the scheduled endpoint.

capability
OnlyFans PPV API — Send Priced Messages & Unlocks

Send and track pay-per-view content over REST with the ofapis onlyfans ppv api: priced messages, locked media, preview thumbnails, and per-fan unlock reads.

capability
OnlyFans Scheduling API — Schedule Posts & Messages

Programmatically schedule OnlyFans posts and messages over REST. Create and delete scheduled items, read counters, and automate your content calendar.

capability
OnlyFans Statistics API — Account Metrics Over REST

Build OnlyFans account statistics over REST with the OnlyFans statistics api. Derive subscriber counts, activity and revenue from clean JSON endpoints.

capability
OnlyFans Subscribers API — List Fans & Following

Fetch a creator's OnlyFans subscribers and following list over REST. Paginated, Bearer-authed, one credit per call — build CRMs, segments and dashboards.

capability
OnlyFans Tips API — Read Tips & Attribute to Fans

Read tips received on OnlyFans with the ofapis onlyfans tips api: flag tip messages, pull tip notifications, and attribute each tip to the fan who sent it.

capability
OnlyFans Tracking Links & Attribution API

Attribute OnlyFans traffic by source with the OnlyFans tracking links api approach: your own UTM links plus subscriber and notification deltas over REST.

capability
OnlyFans Transactions API — Read Payment History

Reconstruct an OnlyFans payment history over REST with the ofapis onlyfans transactions api: notification events plus per-message PPV, tip, and price fields.

capability
OnlyFans Vault & Media API — Upload and List Media

Work with the OnlyFans vault over REST: list vault media items and upload photos or videos programmatically, then attach them to posts and messages.

Integrations

integration
Connect OnlyFans to Claude & ChatGPT (Tool Use)

Give Claude or ChatGPT access to OnlyFans data via ofapis. Expose endpoints as tools/functions so an AI assistant can read chats and send messages.

integration
OnlyFans API for ChatGPT (Custom GPT Actions)

Build a Custom GPT for OnlyFans: import the ofapis OpenAPI spec as a GPT Action and ChatGPT can read chats, segment fans and send DMs.

integration
OnlyFans API for Claude (MCP)

Give Claude Desktop and Claude Code access to OnlyFans via ofapis. Wrap the REST API as MCP tools and Claude can read chats, segment fans and send DMs.

integration
OnlyFans API for Manus (Autonomous Agents)

Drive OnlyFans from Manus AI agents. ofapis is a REST API with an OpenAPI spec, so Manus can plan and run chats, segments and DMs with a Bearer token.

integration
OnlyFans API MCP Server for Claude & ChatGPT

Use the OnlyFans API from AI agents: ofapis is a REST API with a full OpenAPI spec, so it plugs into MCP bridges and GPT Actions for Claude, ChatGPT and Manus.

integration
OnlyFans API Postman Collection

Use the OnlyFans API in Postman: import the ofapis OpenAPI spec into a collection, set a Bearer token variable, and run every endpoint from the request builder.

integration
OnlyFans Discord Bot

Build an OnlyFans Discord bot with ofapis: push signed webhook notifications through a Discord Webhook URL, and have your bot call the API from slash commands.

integration
OnlyFans Slack Integration

Build an OnlyFans Slack integration with ofapis: pipe signed webhook events into a channel via Incoming Webhooks, and run slash commands that call the API.

integration
OnlyFans Telegram Bot

Build an OnlyFans Telegram bot with ofapis: relay signed webhook events into a chat via sendMessage, and turn Telegram commands into live API calls.

integration
Use the OnlyFans API with Airtable

Sync OnlyFans fans into an Airtable base — use an automation Run script action or the Scripting extension with fetch and a Bearer token. No plugin needed.

integration
Use the OnlyFans API with Google Sheets

Pull OnlyFans subscribers and earnings into a sheet. Use Google Apps Script UrlFetchApp with a Bearer token to call ofapis — onlyfans google sheets, no add-on.

integration
Use the OnlyFans API with Make.com

Connect OnlyFans to Make.com using ofapis. Call any endpoint from Make's HTTP module with a Bearer token — automate DMs, scheduling and segments, no code.

integration
Use the OnlyFans API with n8n

Connect OnlyFans to n8n with ofapis. Call any endpoint from the n8n HTTP Request node with a Bearer token — self-hosted, code-optional automation.

integration
Use the OnlyFans API with Pipedream

Connect OnlyFans to Pipedream with ofapis: call any endpoint from an HTTP or Node.js code step with a Bearer token in event-driven workflows.

integration
Use the OnlyFans API with Power Automate

Connect OnlyFans to Power Automate with ofapis: use the HTTP action with a Bearer token in scheduled or triggered flows. No custom connector needed.

integration
Use the OnlyFans API with Zapier

Connect OnlyFans to Zapier with ofapis. Use Webhooks by Zapier → Custom Request to call any ofapis endpoint with a Bearer token — automate without code.

Solutions

solution
Build an OnlyFans Analytics Dashboard with the API

Build an analytics dashboard for OnlyFans: pull subscribers, chats and notifications over REST, compute growth and engagement, and refresh it on a schedule.

solution
Build an OnlyFans CRM With the ofapis API

Build a CRM on top of OnlyFans: pull chats and fan data, segment subscribers, and send targeted messages — all from one REST API billed per call.

solution
Build an OnlyFans Scheduling Tool with the API

Build an OnlyFans scheduling tool: queue posts and messages via the scheduling API, handle timezones and reschedules, and drive a content calendar over REST.

solution
Build OnlyFans Chatter Software with the API

Build OnlyFans chatter software: a unified inbox, chat assignment and canned replies for chat teams — all over a REST API, billed per call not per seat.

solution
How to Build an OnlyFans Chatbot with the API

Build an OnlyFans chatbot: read incoming DMs via webhooks, generate a reply, and send it back over REST. Architecture, endpoints and a worked example.

solution
How to Build an OnlyFans CRM with the API

Build a CRM for OnlyFans creators: sync subscribers, track spend and chats, and trigger targeted DMs — all over a REST API. Architecture, endpoints and code.

solution
OnlyFans Agency — The Complete Operations Guide

How to run an OnlyFans agency at scale: manage many creators, automate chats and mass DMs, keep accounts safe, and see the numbers — one API, one bill.

solution
OnlyFans Agency Automation API — Manage a Roster

Automate an OnlyFans agency: one token, many creators. Scoped calls per account for chats, mass DMs, scheduling and segments — billed per call.

solution
OnlyFans Agency Software — Powered by the API

Run an OnlyFans agency on one platform: manage many creators, automate mass DMs and chats, and keep accounts safe on a metered REST API. For OFM operators.

solution
OnlyFans Auto Reply Bot — Webhook-Driven Replies

Build an OnlyFans auto reply bot: catch inbound DMs with a signed webhook, read the thread, match a rule or model, and reply over REST. Loop and endpoints.

solution
OnlyFans Automation — The Complete Guide

OnlyFans automation end to end: what you can automate, how to do it with a REST API or no-code tools, and how to keep accounts safe. A practical guide.

solution
OnlyFans Automation API — What You Can Build

Automate OnlyFans workflows over REST: messaging, mass DMs, scheduling, fan segments and media. One token, per-call billing, agency multi-account.

solution
OnlyFans Chatbot API — Build Auto-Reply Bots

Power an OnlyFans chatbot with a REST API: receive new-message webhooks, read chat context, and send replies. Connect your own AI or rules engine.

solution
OnlyFans Fan Retention — Detect Churn & Win Back

Automate OnlyFans fan retention: snapshot subscribers to detect churn and inactivity, segment at-risk fans, then send a win-back mass DM. Data flow and build.

solution
OnlyFans Mass Message Tool — Segment, Preview, Send

Build an OnlyFans mass message tool on ofapis: pick a fan segment, preview recipient count and credit cost, then trigger one dispatch and track the run.

solution
OnlyFans Multi Account Management with the API

OnlyFans multi account management over one REST API: address a roster by accountId, isolate each session and proxy, and bill one token across every creator.

solution
OnlyFans PPV Automation — Scheduled Sends

Automate OnlyFans PPV: send priced messages to a segment on a schedule or a trigger, then track purchases. Endpoints, a send sequence and a build outline.

solution
OnlyFans Revenue Analytics with the API

Build OnlyFans revenue analytics: collect earnings and transactions over REST, store a ledger, and compute MRR, ARPU and revenue by source on a schedule.

solution
OnlyFans Welcome Message Automation

Automate OnlyFans welcome messages: detect a new subscriber, then auto-send a personalised DM over REST. Detection patterns, endpoints and a build outline.

Guides

guide
How to Authenticate an OnlyFans Account

How OnlyFans API authentication works with ofapis: connect your account once, then call every endpoint with a single Bearer token. Tokens, scoping and safety.

guide
How to Automate OnlyFans DMs With an API

How to automate OnlyFans DMs with ofapis: build a fan segment, send a mass DM with a cost preview, schedule sends, and track each run. Step-by-step with code.

guide
How to Build an OnlyFans Bot (End-to-End Guide)

How to build an OnlyFans bot with ofapis: create a token, connect the account, register a webhook, and auto-reply to fan DMs. Step-by-step with code.

guide
How to Get Your OnlyFans Subscribers List via API

Step-by-step: pull your full OnlyFans subscribers list programmatically with ofapis — get a token, paginate, and export — with curl and Python examples.

guide
How to Schedule OnlyFans Posts Programmatically

Schedule OnlyFans posts with an API: get a token, upload media, then create a scheduled post with a future timestamp. Step-by-step with code.

guide
How to Send OnlyFans Messages With an API

A step-by-step guide to sending OnlyFans messages programmatically: get a token, find the chat, and POST your message — with curl, Python and Node.

guide
OnlyFans API Best Practices (Production Guide)

OnlyFans API best practices for production: idempotency, retry backoff, webhook verification, credit efficiency, pagination, and secret handling with ofapis.

guide
OnlyFans Webhook Events Explained

The OnlyFans webhook events ofapis emits and what each means — messages, subscriptions, tips — with payloads and how to verify and handle them.

Comparisons

Background

info
How Does the OnlyFans API Work?

How does the OnlyFans API work? A concrete walkthrough of the session model, Bearer auth, credit metering, and the REST endpoints ofapis exposes.

info
Is the OnlyFans API Legal? ToS and Responsibility

Is the OnlyFans API legal? An honest, non-legal-advice look at unofficial APIs, OnlyFans' Terms of Service, and where your responsibility as a developer starts.

info
Is the OnlyFans API Safe? Account Risk & Bans

Is using an OnlyFans API safe for your account? How managed providers reduce risk with stable sessions and proxies — and what you control yourself.

info
Is There an OnlyFans API? (2026)

Does OnlyFans have an API? There's no public official API — here's what that means and how developers access OnlyFans data programmatically today.

info
OnlyFans API Authentication — Bearer Tokens

How OnlyFans API authentication works with ofapis: create a scoped Bearer token, send it on every request, and revoke or rotate keys safely.

info
OnlyFans API Cost — The Credit Model Explained

OnlyFans API cost explained: how credit metering works, what a call really costs, and how to estimate your monthly bill before you commit to a plan.

info
OnlyFans API Documentation — Spec & Playground

OnlyFans API documentation for ofapis: the OpenAPI 3.0 spec, the live /docs playground, and how to generate a typed client in any language.

info
OnlyFans API Error Codes & Handling

Every OnlyFans API error code ofapis returns — 401, 402, 424, 429 and more — with the JSON envelope, what each means, and how to handle it in code.

info
OnlyFans API Rate Limits — RPM & 429 Handling

OnlyFans API rate limits explained: requests-per-minute ceilings per plan (60/100/500 rpm), how 429s work, and correct exponential backoff.

info
OnlyFans API Without Scraping — Managed Sessions

Use an OnlyFans API without scraping: a managed session model instead of running your own headless browser. Fewer bans, no proxy fleet, less maintenance.

info
OnlyFans Webhook Setup — Step-by-Step Guide

OnlyFans webhook setup in four steps: register an HTTPS endpoint, verify the signature, handle events idempotently, and monitor delivery health with ofapis.

info
OnlyFans Webhooks — Real-Time Events Over HTTP

Subscribe to OnlyFans events with ofapis webhooks. Get notified on new messages, verify deliveries with a signing secret, and watch delivery health.

Plans & Pricing