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

illuminate your builder journey with Lum0x πŸ’‘\nlum0x.com

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

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).

Last updated