Response Format
Every API response follows a consistent structure with two main components:- The
data
field containing OnlyFans information - Optional
_pagination
field with pagination information, if the endpoint is paginated - The
_meta
object containing request metadata

Response Body Structure
The data
Field
The data
field always contains the actual OnlyFans response data. Its structure varies depending on the endpoint being called. For example:
- Profile information for
/profiles/{username}
- Message data for
/messages
endpoints - Subscriber data for
/subscribers
endpoints
The optional _pagination
field
Some endpoints return paginated data. For example, /chats
, /chats/XYZ/messages
or /tracking-links
.
In this case, the response will include a _pagination
field with the next_page
field that you can use to fetch the next page of results.
If there are no more pages, the next_page
field will be null
.
The _meta
Object
The _meta
object contains three sections of metadata about your request:
-
_credits
: Credit usage informationused
: Credits consumed by this requestbalance
: Your remaining credit balancenote
: Additional information about credit usage
-
_cache
: Caching status and informationis_cached
: Whether this response was served from cachecached_at
: When the response was cachednote
: Instructions for bypassing cache if needed
-
_rate_limits
: Rate limiting informationlimit_minute
: Requests allowed per minutelimit_day
: Requests allowed per dayremaining_minute
: Remaining requests this minuteremaining_day
: Remaining requests today
Response Headers
Each response includes comprehensive metadata in the headers:
Available Headers
Header Categories
-
Content Headers
content-type
: Alwaysapplication/json
-
Credit Headers
x-ofapi-credits-used
: Credits used by this requestx-ofapi-credits-balance
: Your remaining credit balancex-ofapi-is-cached
: Whether response was cached
-
Rate Limit Headers
x-rate-limit-limit-minute
: Per-minute limitx-rate-limit-limit-day
: Daily limitx-rate-limit-remaining-minute
: Remaining minute requestsx-rate-limit-remaining-day
: Remaining daily requests
Cache Control
You can control caching behavior using query parameters:- By default, responses are cached when possible (only for public endpoints)
- Add
?fresh=true
to force a fresh response from OnlyFans - Cached responses don’t consume credits
- Cache duration varies by endpoint
The same information is available in both headers and the
_meta
object. Use
headers for quick access in code, and the _meta
object for more detailed
information including notes and timestamps.