Personalized - Direct Network API

OpenRank APIs for direct neighbors of a particular profile

Direct Network: Personalized Trust Graph

Discover the nearest neighbors social graph of a profile via Farcaster EOA or FIDs. You can choose direct neighbors based on the 'following' or 'engagement' strategy.

EOA = Externally Owned Account

FIDs = Farcaster Identities

Personalized Engagement by Address

Endpoint: /graph/neighbors/engagement/addresses

Parameters: an array of addresses in the request body and 2 optional parameters (k, limit) where k is the degree (max 5) of separation and limit is the number of rows to be returned (max 1000).

Example below using curl:

curl -X 'POST' \
'https://graph.cast.k3l.io/graph/neighbors/engagement/addresses?k=2&limit=100' \
-H 'accept: application/json' \
-H 'Content-Type: application/json'  \
-d '["0xd7029bdea1c17493893aafe29aad69ef892b8ff2", "0x8fc5d6afe572fefc4ec153587b63ce543f6fa2ea"]' 

Personalized Engagement by Handle

Endpoint: /graph/neighbors/engagement/handles

Parameters: an array of handles and 2 optional parameters (k, limit).

Example below using curl:

curl -X 'POST' \
'https://graph.cast.k3l.io/graph/neighbors/engagement/handles?k=2&limit=100' \
-H 'accept: application/json' \
-H 'Content-Type: application/json'  \
-d '["vitalik.eth", "dwr.eth"]' 

Personalized Engagement Trust Graph by Farcaster ID (fid)

Endpoint: /graph/neighbors/engagement/fids

Parameters: an array of fids and 2 optional parameters (k, limit).

Example below using curl:

curl -X 'POST' \
'https://graph.cast.k3l.io/graph/neighbors/engagement/fids?k=2&limit=100' \
-H 'accept: application/json' \
-H 'Content-Type: application/json'  \
-d '[5650, 3]' 

Personalized Graph (Direct Network) API Documentation

Tryout the APIs here! — https://graph.castk3l.io/docs

Last updated