Team
GET
Answer, 200
slugstringThe team’s address on the site (/teams/<slug>): its id here
namestringTeam name
tagstringTeam tag
regionstringCompetitive region code: EU, NA, SA, ASIA, OCE or MEA
descriptionstringWhat the team wrote about itself; may be empty
flagstring or nullThe team’s primary flag, the one lists show: an ISO country code (GB, DE) or region:<code> for a region flag; null when none is chosen
flagsarray of stringThe team’s profile flags in order, primary first, up to three: each an ISO country code (GB, DE) or region:<code> for a region flag; empty when none is chosen
eloRatingintegerThe Elo Rating: one ongoing all-time number, as on every page
ratedMatchesintegerRated matches, all time
seasonMatchesintegerMatches this season
placementsobjectHow often the team finished 1st, 2nd and 3rd
3 fields in placements
firstintegerTimes finished 1st
secondintegerTimes finished 2nd
thirdintegerTimes finished 3rd
seasonPlacementsobjectHow often the team finished 1st, 2nd and 3rd this season
3 fields in seasonPlacements
firstintegerTimes finished 1st
secondintegerTimes finished 2nd
thirdintegerTimes finished 3rd
scorenumberIn-game score summed over counted matches, all time
seasonScorenumberIn-game score summed over counted matches, this season
formarray of integerLast five finishes (1, 2 or 3), oldest first
reputationScorenumberReputation, 0 to 100
safetyBandstringExcellent, Good, Fair or Poor: the band of the Safety part of the reputation score
rosterCountintegerPeople on the active roster
leagueRankinteger or nullPlace in the league table; null before a counted match
Errors
- 403
missing_scopeThe key was made without the scope the route needs. The message names it.
- 403
scope_lostThe scope is ticked, but the key’s maker no longer holds the team permission behind it.
- 403
wrong_key_typeA personal key on a team route, or a team live key on a public route.
And any request (11) to GET /team
- 401
missing_keyNo Authorization header, or not a bearer token.
- 401
invalid_keyNot a key, a mistyped one, or a key used in the wrong mode.
- 401
key_revokedThe key was revoked, by its team, by league staff or because its team is gone.
- 401
key_expiredThe key passed the expiry chosen when it was made.
- 403
team_suspendedLeague staff suspended the team. Its keys work again when it is restored.
- 403
key_maker_leftThe person who made or last rotated the key left the team. Rotating starts it again.
- 403
key_maker_no_accessThe person who made or last rotated the key no longer holds Manage API keys. Rotating starts it again.
- 429
rate_limitedOver the per-minute limit for the key or the address. Wait for Retry-After.
- 429
daily_limitA personal or test key used its requests for the day.
- 429
too_many_bad_keysToo many wrong keys from one address. Wait for Retry-After.
- 500
internal_errorA fault on the league’s side. Try again later.
curl "https://gwl.gg/api/v1/team" \
-H "Authorization: Bearer $GWL_API_KEY"{
"slug": "test-team",
"name": "Test Team",
"tag": "TEST",
"region": "EU",
"description": "An invented team for building against the API. Nothing here is real.",
"flag": "GB",
"flags": [
"GB"
],
"eloRating": 1482,
"ratedMatches": 12,
"seasonMatches": 6,
"placements": {
"first": 2,
"second": 7,
"third": 3
},
"seasonPlacements": {
"first": 1,
"second": 4,
"third": 1
},
"score": 781,
"seasonScore": 406,
"form": [
2,
2,
1,
2,
2
],
"reputationScore": 79,
"safetyBand": "Excellent",
"rosterCount": 8,
"leagueRank": 6
}GET
Query parameters
limitintegeroptionalHow many, up to 100
Default: 100 · Minimum: 1 · Maximum: 100
Answer, 200
eloRatingintegerThe Elo Rating: one ongoing all-time number, as on every page
ratedMatchesintegerRated matches, all time
changeLast5numberElo change over the last five rated matches
historyarray of numberThe Elo Rating after each rated match, oldest first
Errors
- 400
invalid_requestA query parameter or body field is missing, of the wrong type or out of range.
- 403
missing_scopeThe key was made without the scope the route needs. The message names it.
- 403
scope_lostThe scope is ticked, but the key’s maker no longer holds the team permission behind it.
- 403
wrong_key_typeA personal key on a team route, or a team live key on a public route.
And any request (11) to GET /team/elo
- 401
missing_keyNo Authorization header, or not a bearer token.
- 401
invalid_keyNot a key, a mistyped one, or a key used in the wrong mode.
- 401
key_revokedThe key was revoked, by its team, by league staff or because its team is gone.
- 401
key_expiredThe key passed the expiry chosen when it was made.
- 403
team_suspendedLeague staff suspended the team. Its keys work again when it is restored.
- 403
key_maker_leftThe person who made or last rotated the key left the team. Rotating starts it again.
- 403
key_maker_no_accessThe person who made or last rotated the key no longer holds Manage API keys. Rotating starts it again.
- 429
rate_limitedOver the per-minute limit for the key or the address. Wait for Retry-After.
- 429
daily_limitA personal or test key used its requests for the day.
- 429
too_many_bad_keysToo many wrong keys from one address. Wait for Retry-After.
- 500
internal_errorA fault on the league’s side. Try again later.
curl "https://gwl.gg/api/v1/team/elo?limit=5" \
-H "Authorization: Bearer $GWL_API_KEY"{
"eloRating": 1482,
"ratedMatches": 12,
"changeLast5": 14,
"history": [
1470,
1468,
1485,
1482,
1482
]
}