---
title: "VotesByProposal queries a vote by proposal id."
method: GET
path: "/cosmos/group/v1/votes_by_proposal/{proposal_id}"
tags: ["Query"]
---

# VotesByProposal queries a vote by proposal id.

`GET /cosmos/group/v1/votes_by_proposal/{proposal_id}`

## Request

- Base URL: `https://api.nymtech.net` (the document declares no server; this is the origin it was published from)
- URL: `https://api.nymtech.net/cosmos/group/v1/votes_by_proposal/{proposal_id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/nymtech/apis/cosmos-sdk-grpc-gateway-docs/docs/cosmos/group/v1/votes_by_proposal/:proposal_id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `proposal_id` string, uint64, required

## Query parameters

- `pagination.key` string, byte
- `pagination.offset` string, uint64
- `pagination.limit` string, uint64
- `pagination.count_total` boolean
- `pagination.reverse` boolean

## Response `200`

A successful response.

- object: QueryVotesByProposalResponse is the Query/VotesByProposal response type.
  - `votes` object[]: votes are the list of votes for given proposal_id.
    - `proposal_id` string, uint64: proposal is the unique ID of the proposal.
    - `voter` string: voter is the account address of the voter.
    - `option` 'VOTE_OPTION_UNSPECIFIED' | 'VOTE_OPTION_YES' | 'VOTE_OPTION_ABSTAIN' | 'VOTE_OPTION_NO' | 'VOTE_OPTION_NO_WITH_VETO': option is the voter's choice on the proposal.
    - `metadata` string
    - `submit_time` string, date-time: submit_time is the timestamp when the vote was submitted.
  - `pagination` object: pagination defines the pagination in the response.
    - `next_key` string, byte: next_key is the key to be passed to PageRequest.key to query the next page most efficiently. It will be empty if there are no more results.
    - `total` string, uint64

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/nymtech/apis/cosmos-sdk-grpc-gateway-docs.md) - [All operations](https://skmtc.dev/nymtech/apis/cosmos-sdk-grpc-gateway-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/nymtech/apis/cosmos-sdk-grpc-gateway-docs/revisions/46fa771059b6?raw)
