API Documentation

Vote Server /api/v1/votes

Pathhttps://gameorigin.gg/api/v1/votes
DescriptionThis API endpoint returns the vote count for a specific server.
MethodGET
Producesapplication/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 examplehttps://gameorigin.gg/api/v1/votes?server_id=1000&date_from=2024-11-01&date_to=2024-12-01
Response example200 {"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."}}