Check A Given Farcaster User is A Follower of User(s) on Farcaster
You can use Airstack to check if user(s) is following a given Farcaster user on Farcaster.
This can be done by providing the given Farcaster name[^3] or ID on the Wallet top-level query's identity input and the user(s) in the socialFollowers:
Try Demo
Code
queryisFollowing { Wallet(input: {identity: "fc_fname:ipeciura.eth", blockchain: ethereum}) { socialFollowers( # Check if fc_fname:ipeciura.eth is a follower of these user identities on Lens input: {filter: {identity: {_in: ["0xeaf55242a90bb3289dB8184772b0B98562053559", "betashop.eth", "yosephks.cb.id", "lens/@deepesh", "lens_id:100275", "fc_fname:dawufi", "fc_fid:602"]}, dappName: {_eq: farcaster}}} ) { Follower { dappName dappSlug followingProfileId followerProfileId followingAddress { addresses socials { dappName profileName } domains { name } } } } }}
{"data": {"Wallet": {"socialFollowers": {"Follower": [ {"dappName":"farcaster",// follows on Farcaster"dappSlug":"farcaster_optimism","followingProfileId":"602","followerProfileId":"2602","followingAddress": {"addresses": ["0x66bd69c7064d35d146ca78e6b186e57679fba249","0xeaf55242a90bb3289db8184772b0b98562053559" ],"socials": [ {"dappName":"farcaster","profileName":"betashop.eth"// ipeciura.eth is follower of betashop.eth }, {"dappName":"lens","profileName":"lens/@betashop9" } ],"domains": [ {"name":"jasongoldberg.eth" }, {"name":"betashop.eth" } ] } }, {"dappName":"farcaster",// follows on Farcaster"dappSlug":"farcaster_optimism","followingProfileId":"15971","followerProfileId":"2602","followingAddress": {"addresses": ["0xc6582cd12debdc9cbe4d972615589aba586550e7","0xc7486219881c780b676499868716b27095317416" ],"socials": [ {"dappName":"farcaster","profileName":"yosephks.eth"// ipeciura.eth is follower of yosephks.eth }, {"dappName":"lens","profileName":"lens/@yosephks" } ],"domains": [ {"name":"yosephks.eth" }, {"name":"yosephks.cb.id" } ] } }, {"dappName":"farcaster",// follows on Farcaster"dappSlug":"farcaster_optimism","followingProfileId":"6806","followerProfileId":"2602","followingAddress": {"addresses": ["0xe1b1e3bbf4f29bd7253d6fc1e2ddc9cacb0a546a","0x0964256674e42d61f0ff84097e28f65311786ccb" ],"socials": [ {"dappName":"lens","profileName":"lens/@dawufi" }, {"dappName":"farcaster","profileName":"dawufi"// ipeciura.eth is follower of dawufi.eth } ],"domains": [ {"name":"cantos.testbrand.eth" }, {"name":"dawufi.eth" } ] } },// other followers ] } } }}
If ipeciura.eth is a follower of any of the users on Lens, then it will appear as a response in the Follower array as shown in the sample response.
Get Farcaster Users that have a certain amount of Followers
You can get the list of all Farcaster users that have a certain amount of followers, e.g. at least 1000 followers: