GET
/
v1
/
userDataByFid
curl --request GET \
  --url https://hub-api.neynar.com/v1/userDataByFid \
  --header 'x-api-key: <api-key>'
{
  "hash": "0xd2b1ddc6c88e865a33cb1a565e0058d757042974",
  "hashScheme": "HASH_SCHEME_BLAKE3",
  "signature": "aSDinaTvuI8gbWludGxpZnk=",
  "signatureScheme": "SIGNATURE_SCHEME_ED25519",
  "signer": "<string>",
  "data": {
    "type": "MESSAGE_TYPE_CAST_ADD",
    "fid": 2,
    "timestamp": 48994466,
    "network": "FARCASTER_NETWORK_MAINNET",
    "userDataBody": {
      "type": "USER_DATA_TYPE_PFP",
      "value": "https://i.imgur.com/123abc.jpg"
    }
  }
}

Authorizations

x-api-key
string
header
default:NEYNAR_API_DOCS
required

API key to authorize requests

Query Parameters

fid
integer
required

The FID that's being requested

user_data_type
enum<string>
default:USER_DATA_TYPE_PFP

The type of user data, either as a numerical value or type string. If this is omitted, all user data for the FID is returned

Available options:
USER_DATA_TYPE_PFP,
USER_DATA_TYPE_DISPLAY,
USER_DATA_TYPE_BIO,
USER_DATA_TYPE_URL,
USER_DATA_TYPE_USERNAME
pageSize
integer

Maximum number of messages to return in a single response

reverse
boolean

Reverse the sort order, returning latest messages first

pageToken
string

The page token returned by the previous query, to fetch the next page. If this parameter is empty, fetch the first page

Response

200
application/json
The requested UserData.

The response is of type object.