:project_id is the Top.gg project ID of a project your OAuth authorization covers; each endpoint states its required scope.
Project tokens
With a legacy project token, use@me in place of :project_id. The token itself identifies the project. Project tokens only work with @me, and OAuth access tokens only work with explicit project IDs. Parameters and responses are identical.
GET /projects/:project_id/votes
OAuth scope:project.votes.read
Returns a cursor-paginated list of votes for your project, ordered by creation date (oldest first within each page).
You must provide either
cursor or startDate on every request. If you provide cursor, startDate is ignored. startDate cannot be more than one year in the past.Query parameters
Pagination cursor returned by a previous response. When provided, the API returns the next page of results. Takes precedence over
startDate.ISO 8601 timestamp specifying where to start fetching votes from. Required when
cursor is not provided. Cannot be more than one year in the past.Response fields
Opaque cursor string for fetching the next page. Pass this as the
cursor query parameter on your next request.Example response
Paginating through all votes
To retrieve all votes from a given point in time, start withstartDate and then use the cursor from each response for subsequent requests until you receive an empty data array.
GET /projects/:project_id/votes/:user_id
OAuth scope:project.votes.read
Returns the most recent vote status for a specific user. Use this to check whether a user has voted before granting in-app rewards or unlocking features.
Path parameters
Query parameters
The ID type being provided. Defaults to
topgg. See the table below for valid values.Source enum
Response fields
ISO 8601 timestamp of when the user can vote again. If the current time is before this value, the user has an active vote.
Example response
404 Not Found.