API Keys
Connect OnlyFans Account
Mass Messaging
Media Vault
Media Vault Lists
Payouts
Post Comments
Post Labels
Posts
Public Profiles
Saved For Later (Messages)
Saved For Later (Posts)
Statistics / Reach
Statistics / Statements
Tracking Links
Transactions
Users
Posts
Get Post
Retrieve details of a post from your account.
GET
/
api
/
{account}
/
posts
/
{post_id}
Copy
curl --request GET \
--url https://app.onlyfansapi.com/api/{account}/posts/{post_id} \
--header 'Authorization: Bearer <token>'
Copy
{
"error": "Unauthorized. Go to https://app.onlyfansapi.com/api-keys to get your API key."
}
Authorizations
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
Response
401 - application/json
The response is of type object
.
Copy
curl --request GET \
--url https://app.onlyfansapi.com/api/{account}/posts/{post_id} \
--header 'Authorization: Bearer <token>'
Copy
{
"error": "Unauthorized. Go to https://app.onlyfansapi.com/api-keys to get your API key."
}
Assistant
Responses are generated using AI and may contain mistakes.