REST API · for developers & agencies

The OnlyFans API,
without the browser glue.

Chats, mailings, scheduling and fan segments — one authenticated HTTP API, billed by the call. No scraping rigs to babysit.

api.ofapis.com·Bearer auth·OpenAPI 3.0
request
# your first call
curl https://api.ofapis.com/api/public/v1/me \
  -H "Authorization: Bearer ofapis_sk_…"
response200 OK · −1 credit
{
  "id": 100000001,
  "username": "demo_creator",
  "name": "Demo Creator",
  "subscribers": 12500,
  "chats": 240
}
credits this call: 1p95 latency: 340ms
replaces:headless browsers·cookie juggling·rate-limit retries·session refresh cron
The surface

One namespace, the whole creator workflow

Every route lives under /api/public/v1 and authenticates with a single Bearer token. Here's the shape of it.

core
  • GET/me
  • GET/chats
  • GET/chats/{id}/messages
  • POST/chats/{id}/messages
  • GET/users/by-username/{u}
accounts/{id} · scoped
  • GET/mailings
  • POST/mailings/{id}/trigger
  • GET/scheduled/posts
  • POST/scheduled/posts
  • GET/lists/{id}/users
Full reference in the OpenAPI spec
From zero to first call

Three steps, a few minutes

01

Create a token

Generate a scoped ofapis_sk_ key in the dashboard. Revoke any time.

ofapis_sk_live_8f3a…
02

Link an account

Connect a creator session once. ofapis keeps it alive — no refresh cron on your side.

status: active
03

Call the API

Send Bearer-authed requests. Each successful call meters one credit — failures don't charge.

GET /v1/chats → 200
Why ofapis

Built to be the boring, reliable layer

Wrapped operations

Multi-step actions like mailings and scheduling collapse into single idempotent calls.

Metered by credit

Live usage, a full ledger, monthly resets. You see every debit. Failed calls are free.

Signed webhooks

Subscribe to events, verify with a secret, watch delivery health from the console.

Sessions kept alive

Link a creator account once; we handle the session so your integration just calls.

Multi-account

Agencies link many creators and address each by id under one token and one console.

Real OpenAPI

A complete, browsable spec and a live playground — generate a client in your stack.

Pricing

Pay for calls, not seats

Every plan includes the full API. Credits refill monthly.

Free
$0/mo
  • 250 credits/mo
  • 1 linked account
  • 1,000 rpm
Start free
Starter
$39/mo
  • 30,000 credits/mo
  • 1 linked account
  • 1,500 rpm
Get Starter
most popular
Pro
$159/mo
  • 120,000 credits/mo
  • 5 linked accounts
  • 5,000 rpm
Get Pro
Enterprise
Custom
  • Volume credits
  • Unlimited accounts
  • Custom limits & SLA
Contact us
FAQ

Questions, answered

What counts as a credit?

One successful API call. If a request fails — expired session, upstream error — it isn't charged.

How do I authenticate?

A Bearer token: Authorization: Bearer ofapis_sk_…. Create and revoke keys in the dashboard.

Can I manage multiple creators?

Yes. Link several accounts and address each by id under scoped routes. Account count scales with your plan.

Do you have an OpenAPI spec?

A complete OpenAPI 3.0 document and a live Swagger playground — point your generator at it for a typed client.

Make your first call today

Free plan, 250 credits, no card. Generate a token and you're talking to the API in minutes.

Get started