Get collection stats
The ERC721Contract type has a stats field that gives information about the contract's pricing data.
type ContractStats {
average: Float
ceiling: Float
floor: Float
totalSales: Int
volume: Float
You can also fetch historical data by providing a time range.
# Fetches the stats of the BAYC collection for Dec 2021
query BAYCStats {
contract(address: "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d") {
... on ERC721Contract {
timeRange: {
gte: "2022-01-01T00:00:00.000Z"
lt: "2022-01-07T00:00:00.000Z"
) {
Copy link