OnlyFans API Documentation
Complete reference for all 17+ endpoints. Authentication guides, Python and JavaScript SDKs, code examples, and integration tutorials for agencies and developers.
Getting Started
API key setup, first call, base URL, authentication flow.
Python SDK
Install via pip, code examples, revenue & fan analytics.
JavaScript SDK
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 http://157.180.79.226:4024/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 \
"http://157.180.79.226:4024/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 |