Content pfp
Content
@
0 reply
0 recast
0 reaction

lucas pfp
lucas
@lucasw99
what's the best way to get the channel a cast in posted in through neynar's api? it doesn't seem like channel id is returned from the /v2/farcaster/casts endpoint (only thing is root_parent_url, which isn't channel id but seems related to channels)
2 replies
0 recast
0 reaction

rish pfp
rish
@rish
yes the parent_url // root_parent_url is the channel at protocol level since channels were built on top of FIP 2 You can parse the channel id out of the url, its after the last /. There are older chain:// urls, mapping to channel id for those is here: github.com/neynarxyz/farcaster-channels/blob/main/warpcast.json
1 reply
0 recast
1 reaction

rish pfp
rish
@rish
we have a ticket to return channel_id as part of the cast object so this is becomes easier, will likely get to it late this month. Till then, you can unblock yourself by parsing on your end if that works
1 reply
0 recast
1 reaction

lucas pfp
lucas
@lucasw99
sounds good, works for me. thanks for the extra context
0 reply
0 recast
0 reaction