API Documentation
Vote Server /api/v1/votes
| Path | https://gameorigin.gg/api/v1/votes |
|---|---|
| Description | This API endpoint returns the vote count for a specific server. |
| Method | GET |
| Produces | application/json |
| Query Parameters: | |
server_id | |
| Required: Yes | |
| Type: Integer | |
| The identity of the server. | |
date_from | |
| Required: No | |
| Type: String | |
Example value: 2024-11-01 | |
| Specifies the start date for the desired period. | |
date_to | |
| Required: No | |
| Type: String | |
Example value: 2024-12-01 | |
| Specifies the end date for the desired period. | |
| Endpoint example | https://gameorigin.gg/api/v1/votes?server_id=1000&date_from=2024-11-01&date_to=2024-12-01 |
| Response example | 200 {"data":[{"name":"Olivia","count":12},{"name":"James","count":9},{"name":"Jack","count":6}]} |
400 {"data":null,"error":{"status":400,"name":"BadRequestError","message":"The server id is missing."}} | |