Please keep in mind that all of the below examples are meant to be sent as a
POST
request to our https://app.onlyfansapi.com/api/{account}/posts
endpoint.Looking for the developer-oriented documentation? Please refer to our API Reference.
Text-only posts
Simply want to send a regular text post? Use the following payload:Post labels
Retrieving the account’s existing labels
Looking for the developer-oriented documentation? Please refer to our API Reference.
GET
request to the https://app.onlyfansapi.com/api/{account}/posts/labels
endpoint.
It will return a payload like:
id
of the label(s) to apply it to your post.
Creating a new label
Looking for the developer-oriented documentation? Please refer to our API Reference.
POST
request to the https://app.onlyfansapi.com/api/{account}/posts/labels
endpoint with the following payload:
id
of the newly created label to apply it to your post.
Adding label(s) to your post
To add label(s) to your post, you can use thelabels
field in your payload. You can specify multiple labels by providing an array of label IDs.
Adding media
Please refer to our dedicated guide on uploading media for more information on how to upload media files, and how to include them in your posts.Adding polls
Both regular polls and quizzes are supported in our API. You can choose which type of poll to include in your post by setting thevotingType
field in your payload to either poll
or quiz
.
Regular polls
To include a regular poll in your post, set thevotingType
field to poll
.
Specifying the optionsThe poll’s options can be set by using the
votingOptions
field. It should be an array of strings. You must provide at least 2 options.
Setting a due date (optional)You can set a due date by using the
votingDue
field, which specifies the number of days until the poll expires. Valid values are 1, 3, 7, or 30 days. If not specified, the poll will never expire.
Quizzes
To include a quiz in your post, set thevotingType
field to quiz
.
Specifying the optionsThe quiz options can be set by using the
votingOptions
field. It should be an array of strings. You must provide at least 2 options.
Specifying the correct answerSpecify the correct answer by using the
votingCorrectIndex
field. It should be an integer representing the index of the correct answer in the votingOptions
array (starting from 0). For example, if the correct answer is the first option, set it to 0
.
Setting a due date (optional)You can set a due date by using the
votingDue
field, which specifies the number of days until the quiz expires. Valid values are 1, 3, 7, or 30 days. If not specified, the quiz will never expire.
Setting an expiration date
To set an expiration date for your post, you can use theexpireDays
field in your payload. The value must be 1, 3, 7 or 30 days.
Scheduling posts
To schedule your post, you can use thescheduledDate
field in your payload. The value must be a valid date-time string formatted as 2025-06-03T15:30:00.000Z
(ISO 8601 format) in UTC timezone.
Saving a post for later
To save a post for later, you can use thesaveForLater
field in your payload. Set it to true
to save the post without publishing it immediately. You can then find your post here: https://onlyfans.com/saved-for-later-posts
Setting a fundraising target
To include a fundraising target in your post, you can use thefundRaisingTargetAmount
and fundRaisingTipsPresets
fields in your payload.
Setting a target amountThe
fundRaisingTargetAmount
field specifies the target amount for your fundraising post. It must be a at least 10
representing the amount in your account’s currency.
Setting tip presetsThe
fundRaisingTipsPresets
field allows you to specify the preset tip amounts that users can choose from. It should be an array of integers representing the amounts in your account’s currency.
Tip preset rules
- You must provide at least one preset value.
- Each preset value must be at least
5
. - Each preset value may not be more than the
fundRaisingTargetAmount
.
Tagging other OnlyFans creators
To tag other OnlyFans creators in your post, you can use therfTag
field in your payload. You can specify multiple creators by providing an array of their OnlyFans user IDs.
How to find the OnlyFans user ID of a creator?
- If you’ve connected the relevant creator account to OnlyFans API, you can use our List Accounts endpoint.
- Not connected, but you know the creator’s username? You can use our Get Profile Details endpoint.
- Not connected and don’t know the username? You can use our Search Profiles endpoint.