Skip to content

Reactions API

API

Method NameRequest TypeResponse TypeDescription
GetReactionReactionRequestMessageReturns a specific Reaction
GetReactionsByFidReactionsByFidRequestMessagesResponseReturns Reactions made by an Fid in reverse chron order
GetReactionsByCastReactionsByTargetRequestMessagesResponseReturns ReactionAdds for a given Cast in reverse chron order (To be deprecated)
GetReactionsByTargetReactionsByTargetRequestMessagesResponseReturns ReactionAdds for a given target (cast or URL) in reverse chron order
GetAllReactionMessagesByFidFidTimestampRequestMessagesResponseReturns Reactions made by an Fid with optional timestamp filtering

Reaction Request

Used to retrieve valid or revoked reactions

FieldTypeLabelDescription
fiduint64Farcaster ID of the user who generated the Reaction
reaction_typeReactionTypeType of the Reaction being requested
target_cast_idCastId(optional) Identifier of the Cast whose reactions are being requested
target_urlstring(optional) Identifier of the Url whose reactions are being requested

ReactionsByFid Request

FieldTypeLabelDescription
fiduint64Farcaster ID of the user who generated the Reaction
reaction_typeReactionTypeoptionalType of the Reaction being requested
page_sizeuint32optionalNumber of results to return per page
page_tokenbytesoptionalToken for pagination
reversebooleanoptionalWhether to return results in reverse order

ReactionsByTargetRequest

FieldTypeLabelDescription
target_cast_idCastIdTarget cast ID to find reactions for (optional)
target_urlstringTarget URL to find reactions for (optional)
reaction_typeReactionTypeoptionalType of reaction to filter by
page_sizeuint32optionalNumber of results to return per page
page_tokenbytesoptionalToken for pagination
reversebooloptionalWhether to return results in reverse order

FidTimestampRequest

FieldTypeLabelDescription
fiduint64Farcaster ID
page_sizeuint32optionalNumber of results to return per page
page_tokenbytesoptionalToken for pagination
reversebooloptionalWhether to return results in reverse order
start_timestampuint64optionalOptional timestamp to start filtering from
stop_timestampuint64optionalOptional timestamp to stop filtering at