Repository navigation
Methods & parameters
/createsession[ResponseFormat]/{devID}/{signature}/{timestamp}
A required step to Authenticate the developerId/signature for further API use.
| Parameter | Description | Example |
|---|---|---|
| ResponseFormat | JSON or XML | json |
| devID | Your devID from your application request | 1004 |
| signature | The signature of "createsession" method | c332691773af33948c9ddb12e5fb444f |
| timestamp | The current timestamp | 20180628012612 |
Response: JSON
{
"ret_msg": "Approved",
"session_id": "1465AFCA32DBDB800CEF8C72F296C52C",
"timestamp": "6/28/2018 1:26:12 AM"
}The Session is contained in an element called “session_id”. This parameter is needed to call the other methods.
/ping[ResponseFormat]
A quick way of validating access to the Realm Royale API.
| Parameter | Description | Example |
|---|---|---|
| ResponseFormat | JSON or XML | json |
Request: http://api.realmroyale.com/realmapi.svc/pingjson
Response: TEXT PLAIN
RealmAPI (ver 1.0.0.0) [PATCH - ] - Ping successful. Server Date:6/28/2018 1:26:12 AM
/testsession[ResponseFormat]/{devId}/{signature}/{session_id}/{timestamp}
A means of validating that a session is established.
| Parameter | Description | Example |
|---|---|---|
| ResponseFormat | JSON or XML | json |
| devID | Your devID from your application request | 1004 |
| signature | The signature of "testsession" method | c332691773af33948c9ddb12e5fb444f |
| session_id | A valid session_id | 1465AFCA32DBDB800CEF8C72F296C52C |
| timestamp | The current timestamp | 20180628012612 |
Response: TEXT PLAIN
This was a successful test with the following parameters added: developer: 1004 time: 6/28/2018 1:26:12 AM signature: c332691773af33948c9ddb12e5fb444f session: 1465AFCA32DBDB800CEF8C72F296C52C
/GetDataUsed[ResponseFormat]/{devID}/{signature}/{session_Id}/{timestamp}
Get your current API usage statistics.
| Parameter | Description | Example |
|---|---|---|
| ResponseFormat | JSON or XML | json |
| devID | Your devID from your application request | 1004 |
| signature | The signature of "createsession" method | c332691773af33948c9ddb12e5fb444f |
| session_id | A valid session_id | 1465AFCA32DBDB800CEF8C72F296C52C |
| timestamp | The current timestamp | 20180628012612 |
Response: JSON
{
"Active_Sessions": 1,
"Concurrent_Sessions": 50,
"Request_Limit_Daily": 7500,
"Session_Cap": 500,
"Session_Time_Limit": 15,
"Total_Requests_Today": 9,
"Total_Sessions_Today": 7,
"ret_msg": null
}/getPlayer[ResponseFormat]/{devId}/{signature}/{session_id}/{timestamp}/{player}/{platform}
Returns basic player information
| Parameter | Description | Example |
|---|---|---|
| ResponseFormat | JSON or XML | json |
| devID | Your devID from your application request | 1004 |
| signature | The signature of "getplayer" method | c332691773af33948c9ddb12e5fb444f |
| session_id | A valid session_id | 1465AFCA32DBDB800CEF8C72F296C52C |
| timestamp | The current timestamp | 20180628012612 |
| player | playerId (int), playerName (string) or steamId (int) | RealmHero |
| platform | HIREZ or STEAM | hirez |
Response: JSON
{
"created_datetime": "3\/18\/2018 5:14:27 PM",
"id": 123,
"last_login_datetime": "6\/12\/2018 7:51:11 PM",
"level": 22,
"name": "RealmHero",
"region": "Europe",
"ret_msg": null,
"steam_id": 76561198199559770
}/getPlayerStats[ResponseFormat]/{devId}/{signature}/{session_id}/{timestamp}/{player}
Returns player stats for each queue, class combination. average_placement and placements are TBD based on query performance and will likely be that for only the past 30 days due to purging of the source table.
/getPlayerMatchHistory[ResponseFormat]/{devId}/{signature}/{session_id}/{timestamp}/{player}
Returns high level data regarding matches played in the past 30 days. Limited to the 50 most recent matches.
/getLeaderboard[ResponseFormat]/{devId}/{signature}/{session_id}/{timestamp}/{queue}/{ranking_criteria}
Returns leaderboard information for a particular queue.
/getMatchIDsByQueue[ResponseFormat]/{devId}/{signature}/{session_id}/{timestamp}/{queue}/{date}/{hour}
Returns all matchID values for a queue for a particular timeframe.
/getMatchDetails[ResponseFormat]/{devId}/{signature}/{session_id}/{timestamp}/{matchId}
Returns end of match stats for a particular match. Intra-match stats aren't available.