GET /projects/@me/votes
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.Array of vote records.
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/@me/votes/:user_id
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
The ID of the user to look up. The expected format depends on the
source parameter.Query parameters
The ID type being provided. Defaults to
topgg. See the table below for valid values.Source enum
| Value | Description |
|---|---|
topgg | The user’s Top.gg Snowflake ID (default) |
discord | The user’s Discord Snowflake ID |
Response fields
ISO 8601 timestamp of when the user last voted.
ISO 8601 timestamp of when the user can vote again. If the current time is before this value, the user has an active vote.
The number of votes the user’s last vote counted for.
Example response
404 Not Found.