Media vault
List Vault Media
List media items stored in your vault. See how many likes and how much tips did they get.
AuthorizationBearer <token>
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
In: header
Path Parameters
accountstring
The Account ID
Query Parameters
query?string
Optionally, search for a text query.
field?string
Sort the results by a field. Default recent
Value in
"recent" | "most-liked" | "highest-tips"
type?string
Filter the results by a media type. Keep empty to show all media.
Value in
"photo" | "gif" | "video" | "audio"
list?integer
Only show media items from a specific list (category). Refer to our Media Vault Lists endpoints.
sort?string
Sort the results. Default desc
Value in
"desc" | "asc"
limit?integer
Number of media to return per page. Default: 24
offset?integer
The offset used for pagination. Default 0
Response Body
curl -X GET "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/media/vault?query=Hi&field=recent&type=photo&list=123456789&sort=desc&limit=24"
fetch("https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/media/vault?query=Hi&field=recent&type=photo&list=123456789&sort=desc&limit=24")
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/media/vault?query=Hi&field=recent&type=photo&list=123456789&sort=desc&limit=24"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/media/vault?query=Hi&field=recent&type=photo&list=123456789&sort=desc&limit=24"
response = requests.request("GET", url)
print(response.text)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandlers;
import java.time.Duration;
HttpClient client = HttpClient.newBuilder()
.connectTimeout(Duration.ofSeconds(10))
.build();
HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
.uri(URI.create("https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/media/vault?query=Hi&field=recent&type=photo&list=123456789&sort=desc&limit=24"))
.GET()
.build();
try {
HttpResponse<String> response = client.send(requestBuilder.build(), BodyHandlers.ofString());
System.out.println("Status code: " + response.statusCode());
System.out.println("Response body: " + response.body());
} catch (Exception e) {
e.printStackTrace();
}
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var response = await client.GetAsync("https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/media/vault?query=Hi&field=recent&type=photo&list=123456789&sort=desc&limit=24");
var responseBody = await response.Content.ReadAsStringAsync();
{
"data": {
"list": [
{
"id": 123,
"type": "audio",
"convertedToVideo": false,
"canView": true,
"hasError": false,
"createdAt": "2025-01-01T00:00:00+00:00",
"isReady": true,
"counters": {
"likesCount": 0,
"tipsSumm": 0
},
"files": {
"full": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 0,
"height": 0,
"size": 0,
"sources": []
},
"thumb": null,
"preview": null,
"squarePreview": null
},
"duration": 3,
"hasPosts": false,
"listStates": [
{
"id": 123,
"type": "posts",
"name": "Posts",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "stories",
"name": "Stories",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "messages",
"name": "Messages",
"hasMedia": true,
"canAddMedia": false
},
{
"id": 123,
"type": "streams",
"name": "Streams",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "custom",
"name": "custom category",
"hasMedia": false,
"canAddMedia": true
},
{
"id": 123,
"type": "media_stickers",
"name": "Uploads",
"hasMedia": false,
"canAddMedia": false
}
],
"releaseForms": [],
"hasCustomPreview": false,
"videoSources": {
"240": null,
"720": null
}
},
{
"id": 123,
"type": "audio",
"convertedToVideo": false,
"canView": true,
"hasError": false,
"createdAt": "2025-01-01T00:00:00+00:00",
"isReady": true,
"counters": {
"likesCount": 0,
"tipsSumm": 0
},
"files": {
"full": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 0,
"height": 0,
"size": 0,
"sources": []
},
"thumb": null,
"preview": null,
"squarePreview": null
},
"duration": 3,
"hasPosts": false,
"listStates": [
{
"id": 123,
"type": "posts",
"name": "Posts",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "stories",
"name": "Stories",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "messages",
"name": "Messages",
"hasMedia": true,
"canAddMedia": false
},
{
"id": 123,
"type": "streams",
"name": "Streams",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "custom",
"name": "custom category",
"hasMedia": false,
"canAddMedia": true
},
{
"id": 123,
"type": "media_stickers",
"name": "Uploads",
"hasMedia": false,
"canAddMedia": false
}
],
"releaseForms": [],
"hasCustomPreview": false,
"videoSources": {
"240": null,
"720": null
}
},
{
"id": 123,
"type": "photo",
"convertedToVideo": false,
"canView": true,
"hasError": false,
"createdAt": "2025-01-01T00:00:00+00:00",
"isReady": true,
"counters": {
"likesCount": 0,
"tipsSumm": 0
},
"files": {
"full": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 2048,
"height": 1360,
"size": 0,
"sources": []
},
"thumb": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 300,
"height": 300,
"size": 0
},
"preview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 960,
"height": 638,
"size": 0
},
"squarePreview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 960,
"height": 960,
"size": 0
}
},
"duration": 0,
"hasPosts": false,
"listStates": [
{
"id": 123,
"type": "posts",
"name": "Posts",
"hasMedia": true,
"canAddMedia": false
},
{
"id": 123,
"type": "stories",
"name": "Stories",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "messages",
"name": "Messages",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "streams",
"name": "Streams",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "custom",
"name": "custom category",
"hasMedia": false,
"canAddMedia": true
},
{
"id": 123,
"type": "media_stickers",
"name": "Uploads",
"hasMedia": false,
"canAddMedia": false
}
],
"releaseForms": [],
"hasCustomPreview": false,
"videoSources": {
"240": null,
"720": null
}
},
{
"id": 123,
"type": "photo",
"convertedToVideo": false,
"canView": true,
"hasError": false,
"createdAt": "2025-01-01T00:00:00+00:00",
"isReady": true,
"counters": {
"likesCount": 0,
"tipsSumm": 0
},
"files": {
"full": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 2048,
"height": 1360,
"size": 0,
"sources": []
},
"thumb": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 300,
"height": 300,
"size": 0
},
"preview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 960,
"height": 638,
"size": 0
},
"squarePreview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 960,
"height": 960,
"size": 0
}
},
"duration": 0,
"hasPosts": false,
"listStates": [
{
"id": 123,
"type": "posts",
"name": "Posts",
"hasMedia": true,
"canAddMedia": false
},
{
"id": 123,
"type": "stories",
"name": "Stories",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "messages",
"name": "Messages",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "streams",
"name": "Streams",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "custom",
"name": "custom category",
"hasMedia": false,
"canAddMedia": true
},
{
"id": 123,
"type": "media_stickers",
"name": "Uploads",
"hasMedia": false,
"canAddMedia": false
}
],
"releaseForms": [],
"hasCustomPreview": false,
"videoSources": {
"240": null,
"720": null
}
},
{
"id": 123,
"type": "photo",
"convertedToVideo": false,
"canView": true,
"hasError": false,
"createdAt": "2025-01-01T00:00:00+00:00",
"isReady": true,
"counters": {
"likesCount": 0,
"tipsSumm": 0
},
"files": {
"full": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 1629,
"height": 1629,
"size": 0,
"sources": []
},
"thumb": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 300,
"height": 300,
"size": 0
},
"preview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 960,
"height": 960,
"size": 0
},
"squarePreview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 960,
"height": 960,
"size": 0
}
},
"duration": 0,
"hasPosts": false,
"listStates": [
{
"id": 123,
"type": "posts",
"name": "Posts",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "stories",
"name": "Stories",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "messages",
"name": "Messages",
"hasMedia": true,
"canAddMedia": false
},
{
"id": 123,
"type": "streams",
"name": "Streams",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "custom",
"name": "custom category",
"hasMedia": false,
"canAddMedia": true
},
{
"id": 123,
"type": "media_stickers",
"name": "Uploads",
"hasMedia": false,
"canAddMedia": false
}
],
"releaseForms": [],
"hasCustomPreview": false,
"videoSources": {
"240": null,
"720": null
}
},
{
"id": 123,
"type": "photo",
"convertedToVideo": false,
"canView": true,
"hasError": false,
"createdAt": "2025-01-01T00:00:00+00:00",
"isReady": true,
"counters": {
"likesCount": 0,
"tipsSumm": 0
},
"files": {
"full": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 1629,
"height": 1629,
"size": 0,
"sources": []
},
"thumb": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 300,
"height": 300,
"size": 0
},
"preview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 960,
"height": 960,
"size": 0
},
"squarePreview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 960,
"height": 960,
"size": 0
}
},
"duration": 0,
"hasPosts": false,
"listStates": [
{
"id": 123,
"type": "posts",
"name": "Posts",
"hasMedia": true,
"canAddMedia": false
},
{
"id": 123,
"type": "stories",
"name": "Stories",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "messages",
"name": "Messages",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "streams",
"name": "Streams",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "custom",
"name": "custom category",
"hasMedia": false,
"canAddMedia": true
},
{
"id": 123,
"type": "media_stickers",
"name": "Uploads",
"hasMedia": false,
"canAddMedia": false
}
],
"releaseForms": [],
"hasCustomPreview": false,
"videoSources": {
"240": null,
"720": null
}
},
{
"id": 123,
"type": "photo",
"convertedToVideo": false,
"canView": true,
"hasError": false,
"createdAt": "2025-01-01T00:00:00+00:00",
"isReady": true,
"counters": {
"likesCount": 0,
"tipsSumm": 0
},
"files": {
"full": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 1629,
"height": 1629,
"size": 0,
"sources": []
},
"thumb": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 300,
"height": 300,
"size": 0
},
"preview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 960,
"height": 960,
"size": 0
},
"squarePreview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 960,
"height": 960,
"size": 0
}
},
"duration": 0,
"hasPosts": false,
"listStates": [
{
"id": 123,
"type": "posts",
"name": "Posts",
"hasMedia": true,
"canAddMedia": false
},
{
"id": 123,
"type": "stories",
"name": "Stories",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "messages",
"name": "Messages",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "streams",
"name": "Streams",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "custom",
"name": "custom category",
"hasMedia": false,
"canAddMedia": true
},
{
"id": 123,
"type": "media_stickers",
"name": "Uploads",
"hasMedia": false,
"canAddMedia": false
}
],
"releaseForms": [],
"hasCustomPreview": false,
"videoSources": {
"240": null,
"720": null
}
},
{
"id": 123,
"type": "photo",
"convertedToVideo": false,
"canView": true,
"hasError": false,
"createdAt": "2025-01-01T00:00:00+00:00",
"isReady": true,
"counters": {
"likesCount": 0,
"tipsSumm": 0
},
"files": {
"full": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 1629,
"height": 1629,
"size": 0,
"sources": []
},
"thumb": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 300,
"height": 300,
"size": 0
},
"preview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 960,
"height": 960,
"size": 0
},
"squarePreview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 960,
"height": 960,
"size": 0
}
},
"duration": 0,
"hasPosts": false,
"listStates": [
{
"id": 123,
"type": "posts",
"name": "Posts",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "stories",
"name": "Stories",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "messages",
"name": "Messages",
"hasMedia": true,
"canAddMedia": false
},
{
"id": 123,
"type": "streams",
"name": "Streams",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "custom",
"name": "custom category",
"hasMedia": false,
"canAddMedia": true
},
{
"id": 123,
"type": "media_stickers",
"name": "Uploads",
"hasMedia": false,
"canAddMedia": false
}
],
"releaseForms": [],
"hasCustomPreview": false,
"videoSources": {
"240": null,
"720": null
}
},
{
"id": 123,
"type": "photo",
"convertedToVideo": false,
"canView": true,
"hasError": false,
"createdAt": "2025-01-01T00:00:00+00:00",
"isReady": true,
"counters": {
"likesCount": 0,
"tipsSumm": 0
},
"files": {
"full": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 500,
"height": 500,
"size": 0,
"sources": []
},
"thumb": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 300,
"height": 300,
"size": 0
},
"preview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 500,
"height": 500,
"size": 0
},
"squarePreview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 960,
"height": 960,
"size": 0
}
},
"duration": 0,
"hasPosts": false,
"listStates": [
{
"id": 123,
"type": "posts",
"name": "Posts",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "stories",
"name": "Stories",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "messages",
"name": "Messages",
"hasMedia": true,
"canAddMedia": false
},
{
"id": 123,
"type": "streams",
"name": "Streams",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "custom",
"name": "custom category",
"hasMedia": false,
"canAddMedia": true
},
{
"id": 123,
"type": "media_stickers",
"name": "Uploads",
"hasMedia": false,
"canAddMedia": false
}
],
"releaseForms": [],
"hasCustomPreview": false,
"videoSources": {
"240": null,
"720": null
}
},
{
"id": 123,
"type": "photo",
"convertedToVideo": false,
"canView": true,
"hasError": false,
"createdAt": "2025-01-01T00:00:00+00:00",
"isReady": true,
"counters": {
"likesCount": 0,
"tipsSumm": 0
},
"files": {
"full": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 1280,
"height": 720,
"size": 0,
"sources": []
},
"thumb": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 300,
"height": 300,
"size": 0
},
"preview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 960,
"height": 540,
"size": 0
},
"squarePreview": {
"url": "https://cdn2.onlyfans.com/files/...",
"width": 960,
"height": 960,
"size": 0
}
},
"duration": 0,
"hasPosts": false,
"listStates": [
{
"id": 123,
"type": "posts",
"name": "Posts",
"hasMedia": true,
"canAddMedia": false
},
{
"id": 123,
"type": "stories",
"name": "Stories",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "messages",
"name": "Messages",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "streams",
"name": "Streams",
"hasMedia": false,
"canAddMedia": false
},
{
"id": 123,
"type": "custom",
"name": "custom category",
"hasMedia": false,
"canAddMedia": true
},
{
"id": 123,
"type": "media_stickers",
"name": "Uploads",
"hasMedia": false,
"canAddMedia": false
}
],
"releaseForms": [],
"hasCustomPreview": false,
"videoSources": {
"240": null,
"720": null
}
}
],
"hasMore": false
},
"_meta": {
"_credits": {
"used": 1,
"balance": 999999960,
"note": "Always"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": 50000,
"remaining_minute": 999,
"remaining_day": 49989
}
}
}