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

Retrieve trending channels based on activity

farcasterChannel.getTrendingChannel

Overview

Returns a list of trending channels based on activity

Parameters

name
type
required
Note

time_window

string

false

"1d", "7d" or "30d"

limit

number

false

default: 10, max: 25

cursor

string

false

ex) eyJwYWdlIjoyfQ==

Usage

let res = await Lum0x.farcasterChannel.getTrendingChannel({
   time_window: "1d",
   limit: 1
});
console.log(JSON.stringify(res, null, 2));

Response

{
  "channels": [
    {
      "object": "channel_activity",
      "cast_count_1d": "78",
      "cast_count_7d": "241",
      "cast_count_30d": "241",
      "channel": {
        "id": "oncoins",
        "url": "https://warpcast.com/~/channel/oncoins",
        "name": "OnCoins Blockchain News",
        "description": "Round-the-clock blockchain news from curated sources by William Mougayar. From https://onblockchain.org",
        "follower_count": 278,
        "object": "channel",
        "image_url": "https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/e6081da8-7a8b-4b9f-f94f-a44c100f6700/rectcrop3",
        "created_at": 1724022697,
        "parent_url": "https://warpcast.com/~/channel/oncoins",
        "lead": {
          "object": "user",
          "fid": 1544,
          "custody_address": "0xb1233bc902c37c880e838d5cc21ea776eb8f8f82",
          "username": "wmougayar",
          "display_name": "William Mougayar",
          "pfp_url": "https://i.imgur.com/8Rb24aF.jpg",
          "profile": {
            "bio": {
              "text": "Entrepreneur, angel investor, Author, The Business Blockchain. \nNatural wine, plant-based. \nOnCoins.org wamougayar.xyz GuideMouga.com /oncoins /naturalwines"
            }
          },
          "follower_count": 590,
          "following_count": 215,
          "verifications": [
            "0x52a549d009f554920277052c6c04acf2e25a5988"
          ],
          "verified_addresses": {
            "eth_addresses": [
              "0x52a549d009f554920277052c6c04acf2e25a5988"
            ],
            "sol_addresses": []
          },
          "active_status": "inactive",
          "power_badge": true
        },
        "moderator": null
      }
    }
  ],
  "next": {
    "cursor": "eyJwYXJlbnRfdXJsIjoiaHR0cHM6Ly93YXJwY2FzdC5jb20vfi9jaGFubmVsL29uY29pbnMiLCJjYXN0X2NvdW50XzFkIjoiNzgifQ%3D%3D"
  }
}
Channel ID
Name
Description
Follower Count
Image URL
Lead Display Name
Lead Username
Lead Bio
Lead Follower Count
Lead Following Count
Moderator Display Name
Moderator Username
Moderator Bio
Created At
Parent URL

oncoins

OnCoins Blockchain News

278

William Mougayar

wmougayar

Entrepreneur, angel investor, Author, The Business Blockchain. Natural wine, plant-based. OnCoins.org wamougayar.xyz GuideMouga.com /oncoins /naturalwines

590

215

N/A

N/A

N/A

1724022697

Field Description

  • Channel ID: The unique identifier of the channel.

  • Name: The name of the channel.

  • Description: The description of the channel.

  • Follower Count: The number of followers of the channel.

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

  • Lead Display Name: The display name of the channel's main contact (lead).

  • Lead Username: The username of the channel's main contact (lead).

  • Lead Bio: The profile description of the channel's main contact (lead).

  • Lead Follower Count: The number of followers of the channel's main contact (lead).

  • Lead Following Count: The number of people the channel's main contact (lead) is following.

  • Moderator Display Name: The display name of the channel's moderator. If there is no moderator, N/A.

  • Moderator Username: The username of the channel's moderator. If there is no moderator, N/A.

  • Moderator Bio: The profile description of the channel's moderator. If there is no moderator, N/A.

  • Created At: The Unix timestamp when the channel was created.

  • Parent URL: The URL of the channel.

PreviousCheck If User Follows ChannelNextFarcasterNotification

Last updated 9 months ago

Round-the-clock blockchain news from curated sources by William Mougayar. From

OnBlockchain
OnCoins Channel