Content pfp
Content
@
0 reply
0 recast
0 reaction

J. Valeska 🦊🎩🫂  pfp
J. Valeska 🦊🎩🫂
@jvaleska.eth
const endpoint = `https://api.neynar.com/v2/farcaster/feed/channels?channel_ids=${channelId}&limit=3&cursor=${cursor}`; what I am doing wrong? this returned +300 entries.. instead just 3 and then I sent them to anthropic.. and claude is loving the channel and got some cool insights but I had being rate limited LOL the webhooks for mentions are very top but when the webhook gets an error as response, does it retry 3 times? or is it another thing in my backend retrying?
2 replies
0 recast
18 reactions

rish pfp
rish
@rish
can you send me the exact API request so I can try to repro?
1 reply
0 recast
1 reaction

J. Valeska 🦊🎩🫂  pfp
J. Valeska 🦊🎩🫂
@jvaleska.eth
cursor is the empty string, channel is onchain-blocks I think the while(cursor) is not a proper way to break that loop https://api.neynar.com/v2/farcaster/feed/channels?channel_ids=onchain-blocks&limit=3&cursor=
1 reply
0 recast
0 reaction

rish pfp
rish
@rish
what you shared will keep collecting casts in sets of three till it runs out, right? seems like its working as expected and giving you the full set in the end?
1 reply
0 recast
1 reaction

J. Valeska 🦊🎩🫂  pfp
J. Valeska 🦊🎩🫂
@jvaleska.eth
yeah, it is what is happening, I was expecting just 3 casts is there a way to get just 3 casts? removing the cursor parameter? if not I just can slice the array
1 reply
0 recast
0 reaction

rish pfp
rish
@rish
just make the same API request outside the loop and you will get three casts? https://api.neynar.com/v2/farcaster/feed/channels?channel_ids=onchain-blocks&limit=3&api_key=key
1 reply
0 recast
1 reaction