Get Recent Casts

farcasterCast.getRecentCast

Overview

Get a list of casts from the protocol in reverse chronological order based on timestamp

Parameters

name
type
required
Note

viewer_fid

number

true

ex) 3

limit

number

false

default: 25, max: 100

cursor

string

false

ex) eyJwYWdlIjoyfQ==

Usage

let res = await Lum0x.farcasterCast.getRecentCast({
    viewer_fid: 3,
    limit: 3
});
console.log(JSON.stringify(res, null, 2));

Response

{
  "result": {
    "casts": [
      {
        "hash": "0xb8c9f48937cfd02042bdccd19d2758f67b5ef6f3",
        "parentHash": "0xc730b6683ef8b6f75ea8807768af7a53526b4784",
        "parentUrl": null,
        "rootParentUrl": "https://warpcast.com/~/channel/airstack",
        "threadHash": "0xc730b6683ef8b6f75ea8807768af7a53526b4784",
        "parentAuthor": {
          "fid": 311223
        },
        "author": {
          "fid": 621342,
          "custodyAddress": "0x2f4c1af713c8e0e9afcc697de4f3c65a495e512a",
          "username": "sillypanda",
          "displayName": "Silly Panda",
          "pfp": {
            "url": "https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/1c56163c-6228-40b3-c2e0-1e7bb99d9600/rectcrop3"
          },
          "profile": {
            "bio": {
              "text": "A PANDA",
              "mentionedProfiles": []
            }
          },
          "followerCount": 587,
          "followingCount": 309,
          "verifications": [
            "0x2f4c1af713c8e0e9afcc697de4f3c65a495e512a"
          ],
          "verifiedAddresses": {
            "eth_addresses": [
              "0x2f4c1af713c8e0e9afcc697de4f3c65a495e512a"
            ],
            "sol_addresses": []
          },
          "activeStatus": "inactive",
          "powerBadge": false
        },
        "text": "🚀🚀🚀 to the 🌕",
        "timestamp": "2024-08-22T04:35:25.000Z",
        "embeds": [],
        "mentionedProfiles": [],
        "reactions": {
          "count": 0,
          "fids": []
        },
        "recasts": {
          "count": 0,
          "fids": []
        },
        "recasters": [],
        "replies": {
          "count": 0
        },
        "channel": {
          "object": "channel_dehydrated",
          "id": "airstack",
          "name": "airstack",
          "image_url": "https://i.imgur.com/13jY9D4.png"
        }
      },
      {
        "hash": "0xe00f3064acc6a8adf3e38240674d5747cb9dca02",
        "parentHash": "0x3fd86ab10d57a88a859fa94040eb25f29ba99020",
        "parentUrl": null,
        "rootParentUrl": "https://warpcast.com/~/channel/masks",
        "threadHash": "0x3fd86ab10d57a88a859fa94040eb25f29ba99020",
        "parentAuthor": {
          "fid": 261304
        },
        "author": {
          "fid": 252232,
          "custodyAddress": "0xcff4ff7a8adf6b0d02d2e0a2ad0bbaf2e09da92c",
          "username": "xmajdj",
          "displayName": "Koowmjo🎭",
          "pfp": {
            "url": "https://i.imgur.com/lmPK04x.jpg"
          },
          "profile": {
            "bio": {
              "text": "Qowiury",
              "mentionedProfiles": []
            }
          },
          "followerCount": 84,
          "followingCount": 118,
          "verifications": [
            "0x4ba74b8983dc7c665d92c8d0b1721ca7fec75009"
          ],
          "verifiedAddresses": {
            "eth_addresses": [
              "0x4ba74b8983dc7c665d92c8d0b1721ca7fec75009"
            ],
            "sol_addresses": []
          },
          "activeStatus": "inactive",
          "powerBadge": false
        },
        "text": "Today is a day to celebrate all the good things in life!",
        "timestamp": "2024-08-22T04:35:25.000Z",
        "embeds": [],
        "mentionedProfiles": [],
        "reactions": {
          "count": 0,
          "fids": []
        },
        "recasts": {
          "count": 0,
          "fids": []
        },
        "recasters": [],
        "replies": {
          "count": 0
        },
        "channel": {
          "object": "channel_dehydrated",
          "id": "masks",
          "name": "$MASKS",
          "image_url": "https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/6357ae40-9baf-4f8d-0569-86d783132e00/rectcrop3"
        }
      },
      {
        "hash": "0xb73d780537ed027fa6760e002d23c469e9255c6a",
        "parentHash": "0xf962fb7ded611f897fa8cca9dd995e7cda1fa3b4",
        "parentUrl": null,
        "rootParentUrl": "https://warpcast.com/~/channel/banmal-mode",
        "threadHash": "0xa9319c17d8c719162f3984b95b03f10e688dc5fc",
        "parentAuthor": {
          "fid": 505633
        },
        "author": {
          "fid": 417661,
          "custodyAddress": "0xfc0cf8fff17b9e62deb9b9be0c57fc657b9d60a9",
          "username": "after",
          "displayName": "Karl",
          "pfp": {
            "url": "https://i.imgur.com/3SmEijf.jpg"
          },
          "profile": {
            "bio": {
              "text": "Fashion industry worker.\n\nLove swim workout trip & people\n\nUsually talking bullshit eh",
              "mentionedProfiles": []
            }
          },
          "followerCount": 2981,
          "followingCount": 1491,
          "verifications": [
            "0xb37bb88b00e642b50d7b6213484bd88679d28b44"
          ],
          "verifiedAddresses": {
            "eth_addresses": [
              "0xb37bb88b00e642b50d7b6213484bd88679d28b44"
            ],
            "sol_addresses": []
          },
          "activeStatus": "inactive",
          "powerBadge": false
        },
        "text": "모르겠냐",
        "timestamp": "2024-08-22T04:35:25.000Z",
        "embeds": [],
        "mentionedProfiles": [],
        "reactions": {
          "count": 0,
          "fids": []
        },
        "recasts": {
          "count": 0,
          "fids": []
        },
        "recasters": [],
        "replies": {
          "count": 0
        },
        "channel": {
          "object": "channel_dehydrated",
          "id": "banmal-mode",
          "name": "반모 banmo",
          "image_url": "https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/f5c62eec-316a-4ead-3897-0362c1600d00/rectcrop3"
        }
      }
    ],
    "next": {
      "cursor": "eyJ0aW1lc3RhbXAiOiIyMDI0LTA4LTIyIDA0OjM1OjI1LjAwMDAwMDAifQ%3D%3D"
    }
  }
}
Hash
Author
Text
Timestamp
Reactions Count
Recasts Count
Replies Count
Channel Name
Channel Image URL
Embed URL

0xb8c9f48937cfd02042bdccd19d2758f67b5ef6f3

Silly Panda

🚀🚀🚀 to the 🌕

2024-08-22T04:35:25.000Z

0

0

0

airstack

N/A

0xe00f3064acc6a8adf3e38240674d5747cb9dca02

Koowmjo🎭

Today is a day to celebrate all the good things in life!

2024-08-22T04:35:25.000Z

0

0

0

$MASKS

N/A

0xb73d780537ed027fa6760e002d23c469e9255c6a

Karl

모르겠냐

2024-08-22T04:35:25.000Z

0

0

0

반모 banmo

N/A

Field Description

  • Hash: The unique identifier of the cast.

  • Author: The name of the cast's author.

  • Text: The content of the cast.

  • Timestamp: The date and time when the cast was created.

  • Reactions Count: The number of reactions (e.g., likes) the cast has received.

  • Recasts Count: The number of times the cast has been recast.

  • Replies Count: The number of replies to the cast.

  • Channel Name: The name of the channel where the cast was posted.

  • Channel Image URL: The URL of the channel's image.

  • Embed URL: The URL of embedded content related to the cast (if applicable).

Last updated