Skip to main content
This guide demonstrates how to fetch notifications (inbound mentions, replies, likes, recasts, quotes) of a Farcaster user with the Neynar SDK. Check out this Getting started guide to learn how to set up your environment and get an API key. First, initialize the client:
Then fetch the notifications:
Example output:
So that’s what @dwr.eth sees on his Farcaster notification! To fetch the next page of notifications, use the cursor:
To only fetch specific types of notifications like replies, mentions, and quotes, use the fetchMentionAndReplyNotifications function:
Example output:
To fetch the next page of mentions and replies, use the cursor:
That’s it! You can now fetch notifications of any Farcaster user.

Ready to start building?

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