Skip to main content
GET
By hash or URL

Node.js SDK

๐Ÿ”— SDK Method: lookupCastByHashOrUrl 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

identifier
string
required

Cast identifier (It's either a URL or a hash)

Example:

"https://farcaster.xyz/rish/0xafa59bb7"

type
enum<string>
required

The query param accepted by the API. Sent along with identifier param. url - Cast identifier is a url hash - Cast identifier is a hash

Available options:
url,
hash
Example:

"url"

viewer_fid
integer

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

Required range: x >= 1

Response

Success

cast
Cast ยท object
required