OnlyFans API Documentation
Complete reference for all 17+ endpoints. Authentication guides, Python and JavaScript integration guides, code examples, and integration tutorials. Battle-tested across 60+ creators and $50M+ in tracked revenue. You probably already know that the agencies pulling ahead are the ones who stop guessing and start measuring. Even if you have never integrated an API before, you will find everything you need to start pulling live data in minutes.
Getting Started
API key setup, first call, base URL, authentication flow.
Python Integration Guide
Install via pip, code examples, revenue & fan analytics.
JavaScript Integration Guide
Native fetch, async/await, Node.js 18+, TypeScript types.
API Reference
All endpoints, parameters, and response schemas.
Endpoint Reference
All endpoints are prefixed with the base URL https://api.ofapi.dev/api/v1/onlyfans.
Authenticated via the X-API-Key header.
Revenue & Earnings
/statistics/overview /payouts/transactions /payouts/balances /payouts/invoices Fan Intelligence
/stats/fans/top /stats/fans /stats/reach Subscriber Management
/subscribers/top /subscribers/recent Messaging
/messages/send /messages/queue Content
/content/performance /media/stats Account
/models /organizations/models Authentication
All API requests must include your API key in the X-API-Key request header. Keys are issued when you sign up — see Getting Started to generate yours. Never expose keys in client-side code or public repositories.
# Authenticated request example
curl -X GET \
"https://api.ofapi.dev/api/v1/onlyfans/models" \
-H "X-API-Key: your_api_key_here" OFAPI_KEY. Never commit it to source control.
Rate Limits
Rate limits are enforced per API key. Exceeding the limit returns a 429 Too Many Requests response with a Retry-After header indicating when you may resume.
| Plan | Rate Limit | Notes |
|---|---|---|
| Starter | 1,000 req / min | Per API key, all endpoints combined |
| Pro | 1,000 req / min | Webhook delivery not counted |
| Enterprise | 5,000 req / min | Dedicated infrastructure, custom limits available |