Skip to content

Links API

A Link represents a relationship between two users (e.g. follow)

API

Method NameRequest TypeResponse TypeDescription
GetLinkLinkRequestMessageReturns a specific Link
GetLinksByFidLinksByFidRequestMessagesResponseReturns Links made by an fid in reverse chron order
GetLinksByTargetLinksByTargetRequestMessagesResponseReturns LinkAdds for a given target in reverse chron order
GetLinkCompactStateMessageByFidFidRequestMessagesResponseReturns compact state messages for Links by an fid
GetAllLinkMessagesByFidFidTimestampRequestMessagesResponseReturns Links made by an fid with optional timestamp filtering

Link Request

FieldTypeLabelDescription
fiduint64Farcaster ID of the user who generated the Link
link_typestringType of the Link being requested
target_fiduint64Fid of the target

LinksByFid Request

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

LinksByTarget Request

FieldTypeLabelDescription
target_fiduint64Target Farcaster ID to find links for
link_typestringoptionalType of the Link being requested
page_sizeuint32optionalNumber of results to return per page
page_tokenbytesoptionalToken for pagination
reversebooleanoptionalWhether 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