This will calculate and sort the Farcaster casts based on the chosen criteria:
- social_capital_value: the social capital value associated with the cast
- likes: number of likes on the cast
- recasts: number of recasts on the cast
- replies: number of replies on the cast
- likes_recasts_replies: number of total likes, recasts, and replies on the cast combined
Only fetch trending casts that have the most engagement within the chosen time frame, e.g. one_hour will fetch trending Farcaster casts with the most engagement for the last 1 hour.
Social Capital Value
A new metric, Social Capital Value “SCV,” is introduced to identify high quality trending casts. SCV factors in the authority of the users who engage with the cast based on onchain data.
Learn more about SCV.
{"data": {"TrendingCasts": {"TrendingCast": [ {"criteria":"social_capital_value","criteriaCount":10476.43430537895,"hash":"0x1f48c83b51e395c433f984ab707bfc84cece7cb5","id":"0x1f48c83b51e395c433f984ab707bfc84cece7cb5","socialCapitalValueFormatted":10476.43430537895,"socialCapitalValueRaw":"1047643430537860","timeFrom":"2024-04-24T17:30:00Z","timeTo":"2024-04-25T10:00:00Z","cast": { "text": "FARCON REQUEST\n\nif you are building FC-native or -integrated project, please reply to this cast with:\n\n- the URL to your project (could be warpcast profile, but pls have logo on whatever URL you share)\n- the usernames of the people on your team\n\nplease do ASAP as we're cooking up something fun",
"mentions": [],"embeds": [],"url":"https://warpcast.com/ted/0x1f48c83b" } },// Other trending Farcaster casts ] } }}
🎉 🥳 Congratulations you've just fetched all the trending Farcaster casts and integrate it into your application!
Developer Support
If you have any questions or need help regarding integrating or building trending casts into your application, please join our Airstack's Telegram group.