There is a limit of 60 requests per minute with the API, to get higher limits please apply for an API Key by following this guide: api-keys
Hub GraphQL API: Explorer
You can run queries on Snapshot data using a GraphQL Explorer. We have exposed an integrated development environment in the browser that includes docs, syntax highlighting, and validation errors. Click the link below to access the interface. https://hub.snapshot.org/graphql
Endpoints
Production hubQueries
Get a single space
Arguments
idstring
Example
- Request
- Response
Get multiple spaces
Arguments
firstnumberskip
numberwhere:
- id
string- id_in
arrayorderBy
stringorderDirection
asc or desc
Example
- Request
- Response
Get a single proposal
Arguments
idstring
Example
- Request
- Response
Get proposals
Arguments
firstnumberskip
numberwhere:
- id
string- id_in
array- space:
string- space_in:
array- author:
string- author_in:
array- network:
string- network_in:
array- state:
arrayorderBy
stringorderDirection
asc or desc
Example
- Request
- Response
Get a single vote
Arguments
idstring
Example
- Request
- Response
Get votes
Arguments
firstnumberskip
numberwhere:
- id
string- id_in
array- space:
string- space_in:
array- voter:
string- voter_in:
array- proposal:
string- proposal_in:
arrayorderBy
stringorderDirection
asc or desc
Example
- Request
- Response
Get voting power
Arguments
voterstringspace
stringproposal
string
Example
- Request
- Response
Get follows
Arguments
firstnumberskip
numberwhere:
- id
string- id_in
array- space:
string- space_in:
array- follower:
string- follower_in:
arrayorderBy
stringorderDirection
asc or desc
Example
- Request
- Response
Get users
Arguments
firstnumberskip
numberwhere:
- id:
string- id_in:
arrayorderBy
stringorderDirection
asc or desc
Example
- Request
- Response
Get roles
Arguments
firstnumberskip
numberwhere:
- address:
stringorderBy
stringorderDirection
asc or desc
- Request
- Response
Aliases
TBDGet messages
Messages are all the actions (votes, proposals, space settings etc..) that was confirmed on Snapshot, it also include the order on which these actions were confirmed with the field “mci”. These messages can be used to replay the whole Snapshot hub API.Arguments
firstnumberskip
numberwhere:
- timestamp
string- space
array- space_in:
array- type:
string- type_in:
stringorderBy
stringorderDirection
asc or desc
Example
- Request
- Response