Skip to content

UserData API

Used to retrieve the current metadata associated with a user

API

Method NameRequest TypeResponse TypeDescription
GetUserDataUserDataRequestMessageReturns a specific UserData for an Fid
GetUserDataByFidFidRequestMessagesResponseReturns all UserData for an Fid
GetAllUserDataMessagesByFidFidTimestampRequestMessagesResponseReturns all UserData for an Fid with timestamp filtering

UserData Request

FieldTypeLabelDescription
fiduint64Farcaster ID of the user who generated the UserData
user_data_typeUserDataTypeType of UserData being requested

Messages Response

FieldTypeLabelDescription
messagesMessagerepeatedFarcaster Message array
next_page_tokenbytesoptionalToken for pagination

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