-
Notifications
You must be signed in to change notification settings - Fork 0
v1 Endpoints
These are the API endpoints provided by CSGORankMeAPI.
Base endpoint - {yourdomain}/api/v1 Currently we are on v1 of the API.
Players
/players - Base endpoint for generic player data.
Query String
You can use number=
to specify the number of results you would like to be returned.
Also you can use a sort query string as well sort=
You will get an array with id, name, steam, kills, deaths, assists, score
for each player.
Example: {yourdomain}/api/v1/players?number=10&sort=desc
would give you 10 players back in a descending order.
Player
/player/{id} - Get a specific players information based on steamid.
Example: {yourdomain}/api/v1/player/{steamid}
would give you all data from that player
Top
/top - Top 100 player listing.
This endpoint has not sort ability or the ability to give you more or less players. It will only give you the top 100 players in your database, unless you go and edit the code.
You will get an array with id, name, steam, kills, deaths, assists, score
for each player.
Example: {yourdomain}/api/v1/top
would give you the top 100 players in descending order.