Skip to Content

GET /api/v1/votes/leaderboard

Get the leaderboard of top-voted ENS names. Only names with at least one vote are included. Each entry includes active listing data if available.

Authentication: None

Cache: None

Query Parameters

ParameterTypeDefaultDescription
pagenumber1Page number (min 1)
limitnumber20Results per page (1–100)
sortBystringnetScoreSort by: upvotes, downvotes, or netScore

Sample Request

curl "https://api.grails.app/api/v1/votes/leaderboard?sortBy=netScore&limit=10"

Response

// 200 OK { "success": true, "data": { "leaderboard": [ { "id": 42, "name": "example.eth", "tokenId": "12345...", "ownerAddress": "0xabcd...", "upvotes": 50, "downvotes": 5, "netScore": 45, "activeListing": { "id": 100, "price_wei": "200000000000000000", "currency_address": "0x0000...0000", "status": "active", "source": "grails" } } ], "pagination": { "page": 1, "limit": 10, "total": 500, "totalPages": 50, "hasNext": true, "hasPrev": false } }, "meta": { "timestamp": "2026-04-08T00:00:00.000Z", "version": "1.0.0" } }

Error Responses

StatusCodeDescription
400VALIDATION_ERRORInvalid query parameters
500INTERNAL_ERRORFailed to fetch leaderboard
Last updated on