Chats
List Chat Media
Returns messages containing media (photos/videos/audios) exchanged in a 1:1 chat — the per-fan shared-media gallery shown under a fan's profile "Media" tab on OnlyFans. Cursor-based pagination via last_id. Filter by media type, opened state, and purchase state. Requires permission api_chats_list_media.
https://public-api.buffmetrics.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.
user_id*integerFan/user ID of the conversation.
Query Parameters
limitintegerNumber of items. Default 15. Min 1, max 50.
last_idintegerCursor — use
data.nextLastIdfrom the previous response. Omit for the first page.typestringFilter by media type. One of
photos,videos,audios(plural). Omit for all types. Routes to OnlyFans' per-type sub-path internally.openedstringBoolean. Set
trueto return only media the fan has already opened/viewed. Acceptstrue/falseand1/0. Defaultfalse.purchasedstringBoolean. Set
trueto return only purchased (PPV-unlocked) media. Usually combined withfrom_user. Acceptstrue/falseand1/0. Defaultfalse.from_userstringNumeric user ID. Scope
purchased=trueto media bought from this specific buyer (typically the same fan asuser_id).
curl --request GET "https://public-api.buffmetrics.com/v1/acct_XXXXX/chats/sample_user_id/media?limit=20&last_id=sample_last_id&type=all" \
--header "Authorization: Bearer YOUR_API_KEY"Response
200