---
title: "Get Votes"
method: GET
path: "/votes/paper/{paper_id}/repo/{owner}/{repo_name}"
tags: ["votes"]
---

# Get Votes

`GET /votes/paper/{paper_id}/repo/{owner}/{repo_name}`

## Request

- Base URL: `https://api.codeofpaper.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.codeofpaper.com/votes/paper/{paper_id}/repo/{owner}/{repo_name}`
- Auth: HTTP bearer

Get vote counts for a specific paper-repository pair.

## Path parameters

- `paper_id` string, required
- `owner` string, required
- `repo_name` string, required

## Response `200`

Successful Response

- VoteResponse
  - `upvotes` integer, required
  - `downvotes` integer, required
  - `user_vote` string, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api.md) · [All operations](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codeofpaper/apis/code-of-paper-dev-api/revisions/94ea47fd4aa1?raw)
