Skip to main content
This guide demonstrates how to unfollow Farcasters who hasn’t been active in the past 3 months. Check out this Getting started guide to learn how to set up your environment and get an API key. First, initialize the client:
In the fetchFollowing endpoint, there’s an activeStatus field that can be used to filter out inactive Farcasters.
Will result in this:
To get fids of inactive Farcasters, we can use the activeStatus field to filter out active Farcasters.
And this inactiveFids value can be passed to client.unfollowUser to unfollow inactive Farcasters.
Which will result in this:
That’s it! You can now unfollow inactive Farcasters easily with the Neynar SDK.

Ready to start building?

Get your subscription at neynar.com and reach out to us on Slack with any questions!