Posts
Unarchive Post
Returns an archived post to the live feed. Set private=true if the post sits in the Private Archive — sending the wrong value leaves the post exactly where it is. Requires permission api_posts_unarchive.
https://public-api.fansmetric.comPOST/v1/{account_id}/posts/{post_id}/unarchive
Bearer
Authorization
defaultAuthorizationBearer <token>Send your FansMetric API key as a Bearer token in the Authorization header.
In: header
Path Parameters
account_id*integerOnlyFans numeric account ID.
post_id*integerThe post ID. Numeric.
Query Parameters
privatestringSet to
trueif the post currently sits in the Private Archive rather than the regular Archive. Sending the wrong value leaves the post where it is.
curl --request POST "https://public-api.fansmetric.com/v1/acct_XXXXX/posts/sample_post_id/unarchive?private=sample_private" \
--header "Authorization: Bearer YOUR_API_KEY"Response
200{
"data":{
"labelStates":[
0:{
"id":"private_archived"
"name":"Private Archive"
"type":"private_archived"
"isClearInProgress":false
"postsCount":76
}
1:{
"id":"archived"
"name":"Archive"
"type":"archived"
"isClearInProgress":false
"postsCount":1
}
]
"counters":{
"audiosCount":0
"photosCount":279
"videosCount":18
"mediasCount":297
"postsCount":280
"streamsCount":0
"archivedPostsCount":1
"privateArchivedPostsCount":76
}
}
"_meta":{
"_credits":{
"used":1
}
"_rate_limits":{
"limit_minute":1000
"remaining_minute":999
"limit_day":50000
"remaining_day":49999
}
}
}