Vault
Lookup Vault Media by Hash
Checks whether the creator already has a vault media item matching the given MD5 hash + size. Returns the existing vault media object when there is a match, 404 otherwise. Step 1 of Uploading Media, which also explains how to work out the hash. Requires permission api_media_upload.
https://public-api.fansmetric.comAuthorization
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.
Query Parameters
h*stringThe file's MD5, as 32 lowercase letters and digits. Files over 5 MB use a different fingerprint — Uploading Media shows how to work it out.
size*integerFile size in bytes.
Response Fields
dataobjectExisting vault media object — same shape as entries in List Vault Media.
_meta._credits.usedintegerCredits consumed by this request (currently always
1)._meta._rate_limits.limit_minuteintegerMaximum requests per minute for the organization.
_meta._rate_limits.remaining_minuteintegerRemaining requests in the current minute window.
_meta._rate_limits.limit_dayintegerMaximum requests per day for the organization.
_meta._rate_limits.remaining_dayintegerRemaining requests in the current day window.
| Field | Type | Description |
|---|---|---|
| data | object | Existing vault media object — same shape as entries in List Vault Media. |
| _meta._credits.used | integer | Credits consumed by this request (currently always 1). |
| _meta._rate_limits.limit_minute | integer | Maximum requests per minute for the organization. |
| _meta._rate_limits.remaining_minute | integer | Remaining requests in the current minute window. |
| _meta._rate_limits.limit_day | integer | Maximum requests per day for the organization. |
| _meta._rate_limits.remaining_day | integer | Remaining requests in the current day window. |
curl --request GET "https://public-api.fansmetric.com/v1/100000001/vault/media/hash?h=sample_h&size=sample_size" \
--header "Authorization: Bearer YOUR_API_KEY"Response
200Behavior
Every media url is a FansMetric link that expires after 2 hours, not an OnlyFans address — see Media URLs.
Upstream OnlyFans endpoint: GET /api2/v2/vault/media/hash?h=…&size=….
When the file does not exist in the vault, OnlyFans returns 404. Treat that as "proceed with the upload" rather than as an error.
On a match, put the item's id in mediaFiles and skip the upload. On a 404, carry on with Create Signed Upload.