Farcaster
- User
- Signer
- Cast
- Feed
- Reaction
- Notifications
- Channel
- Follows
- Storage
- Mini Apps
- Agents
- Fname
- Webhook
- Action
- Mute
- Block
- Ban
- Onchain
- Login
- Metrics
Onchain
Farcaster Hub API
- Info
- Casts
- Reactions
- Links
- UserData
- Fids
- Storage
- Usernames
- Verifications
- OnChainEvents
- Message
- HubEvents
Neynar SDK
- Getting Started with Neynar NodeJS SDK
- NodeJS SDK v1 to v2 migration guide
- Getting Started with Neynar Rust SDK
- Getting Started with Neynar Go SDK
Storage
Usage of user
Fetches storage usage for a given user
GET
/
farcaster
/
storage
/
usage
curl --request GET \
--url https://api.neynar.com/v2/farcaster/storage/usage \
--header 'x-api-key: <api-key>'
{
"object": "storage_usage",
"user": {
"object": "user_dehydrated",
"fid": 3,
"username": "<string>",
"display_name": "<string>",
"pfp_url": "<string>",
"custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7"
},
"casts": {
"object": "storage",
"used": 3659,
"capacity": 10000
},
"reactions": {
"object": "storage",
"used": 3659,
"capacity": 10000
},
"links": {
"object": "storage",
"used": 3659,
"capacity": 10000
},
"verified_addresses": {
"object": "storage",
"used": 3659,
"capacity": 10000
},
"username_proofs": {
"object": "storage",
"used": 3659,
"capacity": 10000
},
"signers": {
"object": "storage",
"used": 3659,
"capacity": 10000
},
"total_active_units": 2
}
Related tutorial: Storage units allocation
Authorizations
API key to authorize requests
Query Parameters
The unique identifier of a farcaster user (unsigned integer)
Example:
3
Response
200
application/json
Details of storage usage
The response is of type object
.
Was this page helpful?
curl --request GET \
--url https://api.neynar.com/v2/farcaster/storage/usage \
--header 'x-api-key: <api-key>'
{
"object": "storage_usage",
"user": {
"object": "user_dehydrated",
"fid": 3,
"username": "<string>",
"display_name": "<string>",
"pfp_url": "<string>",
"custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7"
},
"casts": {
"object": "storage",
"used": 3659,
"capacity": 10000
},
"reactions": {
"object": "storage",
"used": 3659,
"capacity": 10000
},
"links": {
"object": "storage",
"used": 3659,
"capacity": 10000
},
"verified_addresses": {
"object": "storage",
"used": 3659,
"capacity": 10000
},
"username_proofs": {
"object": "storage",
"used": 3659,
"capacity": 10000
},
"signers": {
"object": "storage",
"used": 3659,
"capacity": 10000
},
"total_active_units": 2
}
Assistant
Responses are generated using AI and may contain mistakes.