Lum0x SDK
  • Lum0x-sdk
    • Getting started
    • Examples
      • Case 1 : Find my Fan
      • Case 2: Fetch user's Moxie earning
      • Case 3: Raffle events among the filtered casts
      • How to Deploy a Project with Vercel
    • FarcasterUser
      • Search for Usernames
      • Fetch users based on FIDs
      • Fetch power user objects
      • Fetches users based on Eth or Sol addresses
      • Lookup a user by custody-address
      • Retrieve all channels that a given fid follows
      • Get User Information by username
      • Get Recent Users
    • FarcasterCast
      • Retrieve cast for a given hash or Warpcast URL
      • Retrieve casts for a given user
      • Gets information about an array of casts
      • Retrieve the conversation for a given cast
      • Get Recent Casts
    • FarcasterFeed
      • Retrieve casts based on filters
      • Retrieve trending casts
    • FarcasterReaction
      • Fetches reactions for a given user
      • Fetches reactions for a given cast
    • FarcasterFollowers
      • Retrieve followers for a given user
      • Retrieve relevant followers for a given user
      • Retrieve a list of users followed by a user
    • FarcasterStorage
      • Fetches storage allocations for a given user
      • Fetches storage usage for a given user
    • FarcasterFname
      • Check if a given fname is available
    • FarcasterMute
      • Get fids that a user has muted
    • FarcasterChannel
      • Retrieve all channels with their details
      • Search for channels based on id or name
      • (Bulk) Retrieve channels by id or parent_url
      • Retrieve channel details by id or parent_url
      • Retrieve followers for a given channel
      • Get channels that a user is active in
      • Check If User Follows Channel
      • Retrieve trending channels based on activity
    • FarcasterNotification
      • Retrieve notifications for a given user
    • FarcasterMoxie
      • Retrieve Moxie earning status
      • Retrieve FarScore and FarRank
      • Retrieve Moxie airdrop claim status
      • Retrieve Moxie earning details for cast.
      • Retrieve Moxie earning details for reply.
      • Retrieve Moxie earning details for cast by fid.
      • Retrieve Moxie earning details for reply by fid.
      • Retrieve Moxie earning details from channel cast.
Powered by GitBook
On this page
  • Overview
  • Parameters
  • Usage
  • Response
  • Field Description
  1. Lum0x-sdk
  2. FarcasterCast

Retrieve cast for a given hash or Warpcast URL

farcasterCast.getCast

Overview

Gets information about an individual cast by passing in a Warpcast web URL or cast hash

Parameters

name
type
required
Note

identifier

string

true

ex) "https://warpcast.com/lum0x/0xfa6e2aad" or "0xfa6e2aad1b1cb8fd7037b93382c68264f77c00be"

type

string

true

"url" or "hash"

viewer_fid

number

false

ex) 3

Usage

let res = await Lum0x.farcasterCast.getCast({
    identifier: "https://warpcast.com/lum0x/0xfa6e2aad",
    type: "url"
});
console.log(JSON.stringify(res, null, 2));

Response

{
  "cast": {
    "object": "cast",
    "hash": "0xfa6e2aad1b1cb8fd7037b93382c68264f77c00be",
    "thread_hash": "0xfa6e2aad1b1cb8fd7037b93382c68264f77c00be",
    "parent_hash": null,
    "parent_url": null,
    "root_parent_url": null,
    "parent_author": {
      "fid": null
    },
    "author": {
      "object": "user",
      "fid": 721870,
      "custody_address": "0x63cd09948b05e5d8367226b0c83a16b583862191",
      "username": "lum0x",
      "display_name": "Lum0x",
      "pfp_url": "https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/74970e01-bcf7-4ef7-31d7-238f5814b200/original",
      "profile": {
        "bio": {
          "text": "illuminate your builder journey with Lum0x 💡\n\nhttps://lum0x.com/"
        }
      },
      "follower_count": 37,
      "following_count": 2,
      "verifications": [],
      "verified_addresses": {
        "eth_addresses": [],
        "sol_addresses": []
      },
      "active_status": "inactive",
      "power_badge": false
    },
    "text": "👀✨ Something luminous is coming to Farcaster... \n\nBuilders, are you ready to see your data in a whole new light?",
    "timestamp": "2024-06-27T06:01:14.000Z",
    "embeds": [
      {
        "url": "https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/1b45d600-0075-4494-969c-db5c6f6ce500/original",
        "metadata": {
          "content_type": "image/jpeg",
          "content_length": "169601",
          "_status": "RESOLVED",
          "image": {
            "width_px": 800,
            "height_px": 600
          }
        }
      }
    ],
    "reactions": {
      "likes_count": 1,
      "recasts_count": 1,
      "likes": [
        {
          "fid": 5303,
          "fname": "zk-yuki.eth"
        }
      ],
      "recasts": [
        {
          "fid": 373908,
          "fname": "ty-kindleplus"
        }
      ]
    },
    "replies": {
      "count": 0
    },
    "channel": null,
    "mentioned_profiles": []
  }
}

속성

값

Object

cast

Hash

0xfa6e2aad1b1cb8fd7037b93382c68264f77c00be

Thread Hash

0xfa6e2aad1b1cb8fd7037b93382c68264f77c00be

Parent Hash

null

Parent URL

null

Root Parent URL

null

Parent Author

fid: null

Author

Author FID

721870

Author Custody Address

0x63cd09948b05e5d8367226b0c83a16b583862191

Author Username

lum0x

Author Display Name

Lum0x

Author PFP URL

Author Bio

Author Follower Count

37

Author Following Count

2

Author Verifications

None

Author Verified ETH Addresses

None

Author Verified SOL Addresses

None

Author Active Status

inactive

Author Power Badge

false

Text

👀✨ Something luminous is coming to Farcaster... \n\nBuilders, are you ready to see your data in a whole new light?

Timestamp

2024-06-27T06:01:14.000Z

Embeds

Embeds Metadata

- Content Type: image/jpeg - Content Length: 169601 bytes - Image Dimensions: 800x600 px

Likes Count

1

Recasts Count

1

Likes

Recasts

- ty-kindleplus

Replies Count

0

Channel

None

Mentioned Profiles

None

Field Description

  • Cast Hash: The unique hash value of the cast.

  • Thread Hash: The hash value of the thread containing the cast.

  • Parent Hash: The hash value of the parent cast (currently none).

  • Parent URL: The URL of the parent cast (currently none).

  • Root Parent URL: The URL of the root parent cast (currently none).

  • Parent Author: The author of the parent cast (currently none).

  • Author FID: The author's unique identifier (FID).

  • Custody Address: The author's wallet address.

  • Username: The author's username.

  • Display Name: The author's display name.

  • Profile Picture URL: The URL of the author's profile picture.

  • Bio: The author's introduction text.

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

  • Following Count: The number of people the author is following.

  • Verifications: The author's verification information (currently none).

  • Verified ETH Addresses: List of verified Ethereum addresses (currently none).

  • Verified SOL Addresses: List of verified Solana addresses (currently none).

  • Active Status: The author's activity status.

  • Text: The content of the cast.

  • Timestamp: The time when the cast was created.

  • Embeds URL: URL of the embedded image.

  • Likes Count: The number of likes on the cast.

  • Recasts Count: The number of recasts of the cast.

  • Likes: List of users who liked the cast.

  • Recasts: List of users who recast the cast.

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

  • Channel: The channel containing the cast (currently none).

  • Mentioned Profiles: List of profiles mentioned in the cast (currently none).

PreviousFarcasterCastNextRetrieve casts for a given user

Last updated 9 months ago

illuminate your builder journey with Lum0x 💡\n

-

Lum0x
lum0x.com
zk-yuki.eth