OnlyFans API DocumentationOnlyFans API
Chat Messages

Search Chat Messages

Search the messages in a chat for a connected OnlyFans account.

Search a chat for messages containing some text. Returns the matching message IDs, newest first; fetch each one with Get Chat Message.

https://v1.onlyfansapi.io
GET
/api/{acct_id}/chats/{chat_id}/messages/search

Headers

x-api-key*
string
Your API key. See Authentication.

Path Parameters

acct_id*
string
The connected account to read from, as returned by Authenticate Account.
chat_id*
integer
The OnlyFans user the chat is with, as returned in withUser.id by List Chats.

Query Parameters

query*
string
Text to search for. Up to 255 characters.