---
updatedAt: 2025-06-11T20:39:22.000Z
agentTools:
  projectIndex: https://docs.allthatnode.com/llms.txt
---

# _getProposalVotesById

Votes queries votes of a given proposal.

# Parameters

### Path

* `proposal_id`: `STRING` - The unique id of the proposal.

### Query

* `pagination.key`: `STRING` - (base64) key is a value returned in PageResponse.next\_key to begin querying the next page most efficiently. **Only one of offset or key should be set.**
* `pagination.offset`: `INTEGER` - offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. **Only one of offset or key should be set.**
* `pagination.limit`: `STRING` - limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.
* `pagination.count_total`: `BOOLEAN` - count\_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. `count_total` is only respected when offset is used. It is ignored when key\
  is set.
* `pagination.reverse`: `BOOLEAN` - reverse is set to true if results are to be returned in the descending order.

```curl Example
curl "https://cosmos-mainnet-archive.allthatnode.com:1317/cosmos/gov/v1beta1/proposals/804/votes?pagination.offset=2&pagination.limit=5&pagination.count_total=false&pagination.reverse=false" \
-H 'x-allthatnode-api-key: 8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj'
```

# Returns

* `OBJECT` - Tally result

```json Example
{
  "votes": [
    {
      "proposal_id": "804",
      "voter": "cosmos1qq8efykd0sf2tnk3d9wmtf7f2nm56yetk3g2hf",
      "option": "VOTE_OPTION_YES",
      "options": [
        {
          "option": "VOTE_OPTION_YES",
          "weight": "1.000000000000000000"
        }
      ]
    },
    {
      "proposal_id": "804",
      "voter": "cosmos1qqgga7z7frzmmavqh4a3ypyh0z5hd2y728a9s8",
      "option": "VOTE_OPTION_YES",
      "options": [
        {
          "option": "VOTE_OPTION_YES",
          "weight": "1.000000000000000000"
        }
      ]
    },
    {
      "proposal_id": "804",
      "voter": "cosmos1qq2j2hfwy0nepnlvttvnzywff95u5v7hz8eyjv",
      "option": "VOTE_OPTION_YES",
      "options": [
        {
          "option": "VOTE_OPTION_YES",
          "weight": "1.000000000000000000"
        }
      ]
    },
    {
      "proposal_id": "804",
      "voter": "cosmos1qqnzl26pkjk6yvqfzyn92g0ylzj22mee5l2sn4",
      "option": "VOTE_OPTION_YES",
      "options": [
        {
          "option": "VOTE_OPTION_YES",
          "weight": "1.000000000000000000"
        }
      ]
    },
    {
      "proposal_id": "804",
      "voter": "cosmos1qq5k26kkjydu37wkyaua4wz6r7vf8ljkuqktkd",
      "option": "VOTE_OPTION_YES",
      "options": [
        {
          "option": "VOTE_OPTION_YES",
          "weight": "1.000000000000000000"
        }
      ]
    }
  ],
  "pagination": {
    "next_key": "FAArVZgVBKwYIt4sz2K0aQ7/IfpT",
    "total": "0"
  }
}
```

***

# Try Yourself

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "cosmos-hub-lcd-rest",
    "version": "0.5.0"
  },
  "servers": [
    {
      "url": "https://cosmos-mainnet-archive.allthatnode.com:1317"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/cosmos/gov/v1beta1/proposals/{proposal_id}/votes": {
      "get": {
        "summary": "_getProposalVotesById",
        "description": "Votes queries votes of a given proposal.",
        "operationId": "proposalsproposal_idvotes",
        "parameters": [
          {
            "name": "proposal_id",
            "in": "path",
            "description": "The unique id of the proposal.",
            "schema": {
              "type": "string",
              "default": "804"
            },
            "required": true
          },
          {
            "name": "x-allthatnode-api-key",
            "in": "header",
            "description": "All That Node API key",
            "required": true,
            "schema": {
              "type": "string",
              "default": "8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj"
            }
          },
          {
            "name": "pagination.key",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagination.offset",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagination.limit",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagination.count_total",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "pagination.reverse",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```