{"data": {"FarcasterReactions": {"Reaction": [ {"cast": {"castedAtTimestamp":"2024-05-06T00:03:43Z","embeds": [ {"url":"https://farcaster.network" } ],"url":"https://warpcast.com/greg/0xe98b22bf", "text": "https://farcaster.network is back!\n\n@zachterrell and I originally built it in 2022, but it's slowly crumbled over time as Farcaster grew from a few hundred users to tens of thousands\n\nDuring Farcon, we finally took the time to rebuild it from the ground up and are excited to be working on it again",
"numberOfRecasts":46,"numberOfLikes":254,"channel": {"channelId":"farhack" },"mentions": [ {"fid":"457","position":36 } ] } },// other recasts by FID 602 ] } }}
Get All Casts Recasted By A User In A Certain Channel
You can use the FarcasterReactions API to get all the casts recasted by a user in a certain channel by providing the user's identity to reactedBy and the channel ID to channelId input filter:
{"data": {"FarcasterReactions": {"Reaction": [ {"castHash":"0xfefeb9de55433701d020331a9204e38a009ed120","cast": { "text": "Here you can check the $DEGEN price and swap to many types of coins simply.\n\nI'm going to buy $PIU by @pikefinance went up 28% yesterday đŠ\n\n@betashop.eth @airstack"
} },// Other casts recasted by FID 602 in /airstack channel ] } }}
Get All Quoted Recasts By A Farcaster User
You can use FarcasterQuotedRecasts API to fetch all quoted recasts by a Farcaster user by specifying the user's identity in recastedBy input filter:
{"data": {"FarcasterQuotedRecasts": {"QuotedRecast": [ {"castedAtTimestamp":"2024-05-06T15:40:23Z","embeds": [ {"castId": {"fid":602,"hash":"0x08796828d8bdda14fd1acbed1472c0feab1452e7" } } ],"url":"https://warpcast.com/betashop.eth/0x6da72057", "text": "would also be cool to have some Actions at the User level. \n\nFor example: \n- Top casts\n- Top followers (most engaged)\n- check NOTA earnings\n- check Degen\n- NFTs in common\netc\n\n@dwr.eth @v @horsefacts.eth",
"numberOfRecasts":2,"numberOfLikes":41,"channel":null,"mentions": [ {"fid":"3","position":176 }, {"fid":"2","position":177 }, {"fid":"3621","position":178 } ] },// Other quote recasts by FID 602 ] } }}
Get All Users That Recasts A Certain Cast
You can use FarcasterReactions API to get all the users that recasted a specific cast hash by providing the cast hash into castHash input filter:
Get All Users That Recasts Any Casts That Contains A Certain Farcaster Frames
You can use FarcasterReactions API to fetch all users that recasts all casts that contains a certain Frames by providing the Frames URL to the frameUrl input filter:
{"data": {"FarcasterReactions": {"Reaction": [ {"reactedBy": {"profileName":"matthewbian","fid":"461708" } },// Other users that recasts ] } }}
Get All Quoted Recasts From A Cast Casted By A Farcaster User
You can use FarcasterQuotedRecasts API to get all quoted recasts of any casts by a specified Farcaster user by providing the Farcaster user's identity to the parentCastedBy input filter:
{"data": {"FarcasterQuotedRecasts": {"QuotedRecast": [ {"castedAtTimestamp":"2024-05-06T16:49:14Z","embeds": [ {"castId": {"fid":602,"hash":"0xd65fda9c0db0d4cd82bbb10de8de6b43a9a0c9c5" } } ],"url":"https://warpcast.com/leovido.eth/0x4d5f9045", "text": "I use @airstack frames analytics dashboard practically EVERYDAY\n\nThe insights help me work on key areas of the app and track actual usage and engagement.\n\nA MUST, a super PRO tool, for frames and cast action devs đ",
"numberOfRecasts":1,"numberOfLikes":3,"channel": {"channelId":"frames-devs" },"mentions": [ {"fid":"20909","position":6 } ] },// Other quoted recasts ] } }}
Check If A User Recasted A Certain Cast By Cast Hash
You can use FarcasterReactions API to check if a user recasted a certain cast by providing the cast hash into castHash and the user's identity to the reactedBy input filter:
{"data": {"FarcasterReactions": {"Reaction": [// if not null, then user recasted the cast {"cast": {"castedAtTimestamp":"2024-05-06T16:49:14Z","embeds": [ {"castId": {"fid":602,"hash":"0xd65fda9c0db0d4cd82bbb10de8de6b43a9a0c9c5" } } ],"url":"https://warpcast.com/leovido.eth/0x4d5f9045", "text": "I use @airstack frames analytics dashboard practically EVERYDAY\n\nThe insights help me work on key areas of the app and track actual usage and engagement.\n\nA MUST, a super PRO tool, for frames and cast action devs đ",
"numberOfRecasts":1,"numberOfLikes":3,"channel": {"channelId":"frames-devs" },"mentions": [ {"fid":"20909","position":6 } ] } } ] } }}
Check If User A Quote Recasted A Cast By User B
You can FarcasterQuotedRecasts API to check if user A quote recasted any cast by user B:
Try Demo
Code
queryMyQuery { FarcasterQuotedRecasts( input: {filter: {parentCastedBy: {_eq: "fc_fid:602"}, # user BrecastedBy: {_eq: "fc_fid:2602"} # user A },blockchain: ALL,limit: 1 } ) { QuotedRecast { castedAtTimestamp } }}
{"data": {"FarcasterQuotedRecasts": {"QuotedRecast": [ {// if not null, then user A quoted recasts FID 602's cast"castedAtTimestamp":"2024-05-06T15:24:18Z" } ] } }}
Check If A User Recasted Any Cast In A Channel
You can use the FarcasterReactions APi to check if a user recasted any cast in a certain channel by providing the channel ID to channelID and the user's identity to the reactedBy input filter:
{"data": {"FarcasterReactions": {// If not `null`, then the user liked one of the cast in /airstack channel"Reaction": [ {"castHash":"0x1b742a4f754eb9dd52e4303e4e6ee30f0c0aba5e" } ] } }}
Developer Support
If you have any questions or need help regarding fetching Farcaster recasts data, please join our Airstack's Telegram group.