Skip to main content

NFT Rankings

Get a ranked list of NFT collections based on trading activity and collection popularity across a user's network - updating in real-time as onchain activity happens. Optionally provide a farcaster FID for rankings tailored to a farcaster user's social graph.

nftRanking

Returns a paginated list of NFT collections. Supports pagination and optional tailoring by providing a farcaster ID.

  • NFT collection trading metrics
  • Real-time collection data integration
  • Farcaster user personalization capabilities
  • Paginated results with cursor-based navigation
  • Cross-chain NFT collection rankings

Get the most active NFT collections based on onchain activity, emphasized for a farcaster user.

Try it nowArrow pointing right

Example Variables

{
"first": 10,
"after": null,
"fid": 954583
}

Example Query

query NftRanking($first: Int, $after: String, $fid: Int) {
nftRanking(first: $first, after: $after, fid: $fid) {
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
edges {
cursor
node {
id
collectionAddress
chainId
}
}
}
}

Example Response

{
"data": {
"nftRanking": {
"edges": [
{
"node": {
"chainId": 8453,
"collectionAddress": "0x6e8991f1f2fdee6007dbbf2f336119bf3da56ced",
"id": "RmFyY2FzdGVyTmZ0Q29sbGVjdGlvbkZlZWRJdGVtLTB4NmU4OTkxZjFmMmZkZWU2MDA3ZGJiZjJmMzM2MTE5YmYzZGE1NmNlZDI2ODE1NzQ0MQ=="
},
"cursor": "NjhjODZmYTQxODBkMjgyNDMwMTBjMzdmfDM="
},
{
"node": {
"chainId": 8453,
"collectionAddress": "0x61886e7d61f4086ada1829880af440aa0de3fc96",
"id": "RmFyY2FzdGVyTmZ0Q29sbGVjdGlvbkZlZWRJdGVtLTB4NjE4ODZlN2Q2MWY0MDg2YWRhMTgyOTg4MGFmNDQwYWEwZGUzZmM5NjEzODg1NTg5OQ=="
},
"cursor": "NjhjODZmYTQxODBkMjgyNDMwMTBjMzdmfDM="
},
{
"node": {
"chainId": 1,
"collectionAddress": "0xd4307e0acd12cf46fd6cf93bc264f5d5d1598792",
"id": "RmFyY2FzdGVyTmZ0Q29sbGVjdGlvbkZlZWRJdGVtLTB4ZDQzMDdlMGFjZDEyY2Y0NmZkNmNmOTNiYzI2NGY1ZDVkMTU5ODc5Mjc5NjA1MQ=="
},
"cursor": "NjhjODZmYTQxODBkMjgyNDMwMTBjMzdmfDM="
}
],
"pageInfo": {
"hasPreviousPage": false,
"hasNextPage": true,
"startCursor": null,
"endCursor": "Tmpoak9EWm1ZVFF4T0RCa01qZ3lORE13TVRCak16ZG1mRE09"
}
}
}
}

Arguments

ArgumentDescriptionTypeRequired
firstNumber of ranked NFT collections to fetch (default: 6, max: 20)IntNo
afterCursor for paginationStringNo
fidCustomize results by Farcaster IDIntNo

Fields

FieldDescriptionType
pageInfoPagination informationPageInfo!
edgesArray of ranked NFT collection results[FarcasterNftCollectionFeedV2Edge!]!

FarcasterNftCollectionFeedItem Fields

FieldDescriptionType
idUnique identifierID!
collectionAddressNFT collection contract addressString!
chainIdChain ID where the collection existsInt!
collectionDetailed collection informationNftCollection

For more information on the NftCollection type, see NFT Collections Documentation.

PageInfo Fields

FieldDescriptionType
hasPreviousPageWhether there are previous resultsBoolean!
hasNextPageWhether there are more resultsBoolean!
startCursorCursor of the first item in resultsString
endCursorCursor of the last item in resultsString