Skip to main content
GET
/
skills
/
{namespace}
/
{slug}
/
vote
JavaScript
import Smithery from '@smithery/api';

const client = new Smithery({
  apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted
});

const skillVoteCounts = await client.skills.votes.get('slug', { namespace: 'namespace' });

console.log(skillVoteCounts.downvotes);
{
  "upvotes": 0,
  "downvotes": 0,
  "userVote": "up"
}

Authorizations

Authorization
string
header
required

Smithery API key as Bearer token

Path Parameters

namespace
string
required
slug
string
required

Response

Vote counts retrieved

upvotes
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
downvotes
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
userVote
enum<string> | null
required

Current user's vote, null if not voted

Available options:
up,
down