Fetches reactions for a given cast

farcasterReaction.getCastReaction

Overview

Fetches reactions for a given cast

Parameters

name
type
required
Note

hash

string

true

ex) "0xfa6e2aad1b1cb8fd7037b93382c68264f77c00be"

types

string

true

"all", "likes" or "recasts"

viewer_fid

number

false

ex) 3

limit

number

false

default: 25, max: 100

cursor

string

false

ex) eyJwYWdlIjoyfQ==

Usage

let res = await Lum0x.farcasterReaction.getCastReaction({
    hash: "0xfa6e2aad1b1cb8fd7037b93382c68264f77c00be",
    types: "all",
    limit: 3
});
console.log(JSON.stringify(res, null, 2));

Response

{
  "reactions": [
    {
      "reaction_type": "like",
      "reaction_timestamp": "2024-07-27T11:29:29.000Z",
      "object": "likes",
      "user": {
        "object": "user",
        "fid": 5303,
        "custody_address": "0x09968c3373b8cf1da068f2568b051775fe190c2e",
        "username": "yukisato.eth",
        "display_name": "Yuki Sato",
        "pfp_url": "https://i.imgur.com/doWaOWv.jpg",
        "profile": {
          "bio": {
            "text": "22y / building smtg onchain and fun /triviatech /jp /tokyowip  /farcon-tokyo"
          }
        },
        "follower_count": 2234,
        "following_count": 649,
        "verifications": [
          "0x3d7863e87afd6cc4bb584c3d07f5deeaa6d26802"
        ],
        "verified_addresses": {
          "eth_addresses": [
            "0x3d7863e87afd6cc4bb584c3d07f5deeaa6d26802"
          ],
          "sol_addresses": []
        },
        "active_status": "inactive",
        "power_badge": true
      }
    },
    {
      "reaction_type": "recast",
      "reaction_timestamp": "2024-06-28T02:51:21.000Z",
      "object": "recasts",
      "user": {
        "object": "user",
        "fid": 373908,
        "custody_address": "0x78a36eb6f6a94929881b143447256d872254708c",
        "username": "fibojustin.eth",
        "display_name": "Justin the Broski ๐Ÿนโ“‚๏ธ",
        "pfp_url": "https://i.imgur.com/pXYIggC.jpg",
        "profile": {
          "bio": {
            "text": "I like the concept of Fibonacci - investing @ Fibo Partners // host of /broski // part-time Damster at /degenpad"
          }
        },
        "follower_count": 350,
        "following_count": 577,
        "verifications": [
          "0x97bfd51af4aeeed3966c0149c491cfa08df5f6f2"
        ],
        "verified_addresses": {
          "eth_addresses": [
            "0x97bfd51af4aeeed3966c0149c491cfa08df5f6f2"
          ],
          "sol_addresses": []
        },
        "active_status": "inactive",
        "power_badge": false
      }
    }
  ],
  "cursor": null
}

Reaction Type
Timestamp
Username
Display Name
Profile Picture
Bio
Follower Count
Following Count
Power Badge

Like

2024-07-27T11:29:29

yukisato.eth

Yuki Sato

22y / building smtg onchain and fun /triviatech /jp /tokyowip /farcon-tokyo

2234

649

Yes

Recast

2024-06-28T02:51:21

fibojustin.eth

Justin the Broski

I like the concept of Fibonacci - investing @ Fibo Partners // host of /broski // part-time Damster at /degenpad

350

577

No

Field Description

  • Reaction Type: The type of reaction (e.g., Like, Recast).

  • Timestamp: The time when the reaction occurred.

  • Username: The user's Ethereum address represented as the username.

  • Display Name: The user's display name.

  • Profile Picture: The user's profile picture.

  • Bio: A brief introduction about the user.

  • Follower Count: The number of followers the user has.

  • Following Count: The number of users the person is following.

  • Power Badge: Whether the user holds a power badge (Yes/No).

Last updated