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.

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

GET /statistics/overview
GET /payouts/transactions
GET /payouts/balances
GET /payouts/invoices

Fan Intelligence

GET /stats/fans/top
GET /stats/fans
GET /stats/reach

Subscriber Management

GET /subscribers/top
GET /subscribers/recent

Messaging

POST /messages/send
GET /messages/queue

Content

GET /content/performance
GET /media/stats

Account

GET /models
GET /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.

Terminal curl
# Authenticated request example
curl -X GET \
  "https://api.ofapi.dev/api/v1/onlyfans/models" \
  -H "X-API-Key: your_api_key_here"
Security note: Store your API key in an environment variable such as 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