vote

Fetch detailed vote statistics for a resource.

Changed on

Retrieve a detailed vote count for a specified resource, including the number of upvotes, downvotes, and the overall vote balance.

get/api/v1/vote/{resourceId}

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

resourceIdstring required
Example:cln2u09xo0037s6wvbf6t9jfg

ID of the resource to be retrieved.

Response

Successfully retrieved detailed vote statistics for the specified resource.

upvoteinteger required
downvoteinteger required
totalinteger required
userVoteinteger required

Example response

{
  "upvote": 14,
  "downvote": 2,
  "total": 12
}

Changes