FANDOM


OVERVIEW Edit

The leaderboard system public API provides developers with access to leaderboard data for Grey Goo players.

FORMULA Edit

The base URL for all API requests is: http://goo-coordinator.petroglyphgames.com:6571/Coordinator/webresources/
All data received from the coordinator is in JSON format.

COMMANDS Edit

GET /com.petroglyph.coord.leaderboard.get_tiers/
Gets an array of possible leaderboard tiers to which players can belong.

EXAMPLE REQUEST 1 Edit

curl -k -i -X GET -H "Accept:application/json"
"http://goo-coordinator.petroglyphgames.com:6571/Coordinator/webresources/com.petroglyph.coord.leaderboar+d.get_tiers/"

EXAMPLE RESPONSE 1 Edit

{
"leaderboardGetTiers": [
{
"tier": 0,
"tierData": "
{
\"name\": \"TEXT_LEADERBOARD_TIER_1_NAME\",
\"borderIcon\": \"Frontend_Profile_Avatar_Frame_Bronze.png\",
\"badgeIcon\": \"Frontend_Profile_Avatar_RepStroke_Bronze.png\",
\"statsIcon\": \"Frontend_Profile_Trophy_Tier_Bronze.png\",
\"separatorIcon\": \"Frontend_Profile_Leaderboard_RankSeparator_Bronze.png\"
}"
},
...
]
}
GET /com.petroglyph.coord.leaderboard.query/
Queries player information from the Grey Goo leaderboards.

Parameters Edit

Name

Required?

Type

Description

matchType

Yes

int64

The type of match for which to query leaderboard data. 1v1 is 1, 2v2 is 3.

orderField

No

string

The field to use to sort the results. Possible values are rank, wins, and loses. Default is rank.

ascending

No

boolean

Whether the results are sorting in ascending (true) or descending (false) order. Default is false.

offset

No

int64

The offset of the first leaderboard result to return. Default is 0.

limit

No

int64

The number of leaderboard results to return. Default is infinite.



EXAMPLE REQUEST 2 Edit

curl -k-i -X GET -H "Accept:application/json" "http://goo-coordinator.petroglyphgames.com:6571/Coordinator/webresources/com.petroglyph.coord.leaderboard.query/?matchType=1&limit=2"

EXAMPLE RESPONSE 2 Edit

{
"leaderboardQuery": { "totalEntries": 949, "entries": [
{
"steamId": 76561198182111733,
"name": "Pinkfox0507", "rank": 949,
"tier": 0,
"elo": 595.547720,
"wins": 12,
"loses": 70
},
{
"steamId": 76561198060132495,
"name": "silvantis", "rank": 948,
"tier": 0,
"elo": 598.623127,
"wins": 10,
"loses": 77
}
]
}
}
GET /com.petroglyph.coord.leaderboard.query_user_stats/
Queries leaderboard stats for a particular player.

Parameters Edit

Name

Required?

Type

Description

steamID

Yes

int64

The Steam ID of the user for which to query stats.



EXAMPLE REQUEST 3 Edit

curl -k-i -X GET -H "Accept:application/json" "http://goo-coordinator.petroglyphgames.com:6571/Coordinator/webresources/com.petroglyph.coord.leaderboard.query_user_stats/?steamID=76561198182111733"

EXAMPLE RESPONSE 3 Edit

{
"leaderboardQueryUserStats": [
{
"matchType": 1,
"rank": 949,
"elo": 595.547720,
"tier": 0, "factionWinsLosses": [
{
"factionName": "Beta", "wins": 8,
"losses": 36
},
{
"factionName": "Human", "wins": 11,
"losses": 57
},
{
"factionName": "Goo", "wins": 0,
"losses": 0
}
]
},
...
]
}

EXAMPLE REQUEST 4 Edit

http://10.2.10.80:8080/Coordinator/webresources/com.petroglyph.coord.matches.recent/?offset=10&limit=2&rankedOnly=true

EXAMPLE RESPONSE 4 Edit

{"totalmatches":15733,"matches":[{"matchtype":1,"winningteamid":"0","starttime":1440800585.732296,"matchduration":920.461642,"mapname":"P_MultiplayerEX_15","averageplayerelo":1021,"cdnurl":"P_MULTIPLAYEREX_15^559911^30105^14892167952714^0.Replay","player0id":76561197972269908,"player0teamindex":0,"player0factionid":0,"player0rank":27,"player1id":76561198005749672,"player1teamindex":1,"player1factionid":1,"player1rank":407,"player2id":0,"player2teamindex":0,"player2factionid":0,"player2rank":0,"player3id":0,"player3teamindex":0,"player3factionid":0,"player3rank":0},{"matchtype":1,"winningteamid":"0","starttime":1440801212.770390,"matchduration":160.113521,"mapname":"P_MultiplayerEX_01","averageplayerelo":821,"cdnurl":"P_MULTIPLAYEREX_01^559911^30110^14898579132898^4.Replay","player0id":76561197999366423,"player0teamindex":0,"player0factionid":2,"player0rank":295,"player1id":76561198176677187,"player1teamindex":1,"player1factionid":2,"player1rank":593,"player2id":0,"player2teamindex":0,"player2factionid":0,"player2rank":0,"player3id":0,"player3teamindex":0,"player3factionid":0,"player3rank":0}]}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.