Skip to main content
GET
Bulk fetch casts

Node.js SDK

๐Ÿ”— SDK Method: fetchBulkCasts Use this API endpoint with the Neynar Node.js SDK for typed responses and better developer experience.

Authorizations

x-api-key
string
header
default:NEYNAR_API_DOCS
required

API key to authorize requests

Headers

x-neynar-experimental
boolean
default:false

Enables experimental features including filtering based on the Neynar score. See docs for more details.

Query Parameters

casts
string
required

Hashes of the cast to be retrived (Comma separated, no spaces)

Example:

"0xa896906a5e397b4fec247c3ee0e9e4d4990b8004,0x27ff810f7f718afd8c40be236411f017982e0994"

viewer_fid
integer

adds viewer_context to cast object to show whether viewer has liked or recasted the cast.

Required range: x >= 1
sort_type
enum<string>

Optional parameter to sort the casts based on different criteria

Available options:
trending,
likes,
recasts,
replies,
recent

Response

Success

result
object
required