This will calculate and sort the Farcaster casts based on the chosen criteria:
- social_capital_value(Recommended): 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
fid
Int
Specify the FID of the Farcaster user for whom you wish to retrieve the trending cast from.
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 & Social Capital Scores
A new metric, Social Capital Value (SCV), has been introduced to identify high-quality trending broadcasts. SCV incorporates the authority of users, measured by another metric, Social Capital Scores (SCS), who engage with the broadcast based on on-chain data.
For additional information on SCV and SCS, please refer to the following section here.
{"data": {"TrendingCasts": {"TrendingCast": [ {"criteria":"social_capital_value","criteriaCount":354.460477946805,"hash":"0x1c22deef09fa4ec2635f8ffc35f19c1149c33a34","id":"0x1c22deef09fa4ec2635f8ffc35f19c1149c33a34","castValueFormatted":354.460477946805,"castValueRaw":"35446047794678","timeFrom":"2024-05-10T16:40:00Z","timeTo":"2024-05-10T17:00:00Z","cast": { "text": "we just (permissionlessly) launched the equiv of \n\"onchain credit scores\" for every Farcaster user\n\ndevs: go to town",
"mentions": [],"embeds": [ {"castId": {"fid":602,"hash":"0x0958f040786e1567c95bb4851056a789616fa576" } } ],"url":"https://warpcast.com/betashop.eth/0x1c22deef" } }// Other trending Farcaster casts by FID 602 ] } }}
đ đĨŗ Congratulations you've just fetched all the trending Farcaster casts of a certain Farcaster user and integrate it into your application!
Developer Support
If you have any questions or need help regarding integrating or building trending casts of a certain user into your application, please join our Airstack's Telegram group.