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:
import { NeynarAPIClient, Configuration } from "@neynar/nodejs-sdk";// make sure to set your NEYNAR_API_KEY .env// don't have an API key yet? get one at neynar.comconst config = new Configuration({ apiKey: process.env.NEYNAR_API_KEY,});const client = new NeynarAPIClient(config);