OnlyFans API Documentation

Complete reference for all 17+ endpoints. Authentication guides, Python and JavaScript SDKs, code examples, and integration tutorials for agencies and developers.

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

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 \
  "http://157.180.79.226:4024/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