Skip to main content

Fetching Channel-Specific Notifications

Say you have a Farcaster client focusing on a specific channel, and you want to fetch notifications for a specific FID for that specific channel. We got you covered! This guide will show you how to fetch notifications for a specific FID for a specific channel. Check out this Getting started guide to learn how to set up your environment and get an API key. First, initialize the client:
Let’s say you have a Nouns-specific Farcaster client and you want to fetch notifications for a specific FID.

channel_name to parent_url mapping

All parent_url to channel_name mappings can be found at this Github repo, along with other channel metadata.This repo is open source so feel free to submit PRs for additional channel data if you see anything missing.
Example output:
To fetch the next page of notifications, use the cursor:
That’s it, no more wrangling with SQL queries or whatever bespoke solution to get notifications for a specific channel!

Ready to start building?

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