Skip to main content
This guide demonstrates how to use the Neynar SDK to casts that contain a specific embed (eg. cast linking to github.com or youtube.com). Check out this Getting started guide to learn how to set up your environment and get an API key. First, initialize Neynar client:
Then fetch casts linking to github.com:
Replace github.com with any other embed url to fetch casts linking to that url. To fetch casts linking to youtube.com:
And… Spotify:
Example output:
To fetch the next page:
There you go, fetching casts with specific embeds in Farcaster with Neynar SDK!

Ready to start building?

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