Team

All endpoints

The team this key belongs to

GET/api/v1/team

Key
Team key, live or test

Answer, 200

  • slugstring

    The team’s address on the site (/teams/<slug>): its id here

  • namestring

    Team name

  • tagstring

    Team tag

  • regionstring

    Competitive region code: EU, NA, SA, ASIA, OCE or MEA

  • descriptionstring

    What the team wrote about itself; may be empty

  • flagstring or null

    The 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 string

    The 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

  • eloRatinginteger

    The Elo Rating: one ongoing all-time number, as on every page

  • ratedMatchesinteger

    Rated matches, all time

  • seasonMatchesinteger

    Matches this season

  • placementsobject

    How often the team finished 1st, 2nd and 3rd

    3 fields in placements
    • firstinteger

      Times finished 1st

    • secondinteger

      Times finished 2nd

    • thirdinteger

      Times finished 3rd

  • seasonPlacementsobject

    How often the team finished 1st, 2nd and 3rd this season

    3 fields in seasonPlacements
    • firstinteger

      Times finished 1st

    • secondinteger

      Times finished 2nd

    • thirdinteger

      Times finished 3rd

  • scorenumber

    In-game score summed over counted matches, all time

  • seasonScorenumber

    In-game score summed over counted matches, this season

  • formarray of integer

    Last five finishes (1, 2 or 3), oldest first

  • reputationScorenumber

    Reputation, 0 to 100

  • safetyBandstring

    Excellent, Good, Fair or Poor: the band of the Safety part of the reputation score

  • rosterCountinteger

    People on the active roster

  • leagueRankinteger or null

    Place in the league table; null before a counted match

Errors

  • 403
    missing_scope

    The key was made without the scope the route needs. The message names it.

  • 403
    scope_lost

    The scope is ticked, but the key’s maker no longer holds the team permission behind it.

  • 403
    wrong_key_type

    A personal key on a team route, or a team live key on a public route.

And any request (11) to GET /team
  • 401
    missing_key

    No Authorization header, or not a bearer token.

  • 401
    invalid_key

    Not a key, a mistyped one, or a key used in the wrong mode.

  • 401
    key_revoked

    The key was revoked, by its team, by league staff or because its team is gone.

  • 401
    key_expired

    The key passed the expiry chosen when it was made.

  • 403
    team_suspended

    League staff suspended the team. Its keys work again when it is restored.

  • 403
    key_maker_left

    The person who made or last rotated the key left the team. Rotating starts it again.

  • 403
    key_maker_no_access

    The person who made or last rotated the key no longer holds Manage API keys. Rotating starts it again.

  • 429
    rate_limited

    Over the per-minute limit for the key or the address. Wait for Retry-After.

  • 429
    daily_limit

    A personal or test key used its requests for the day.

  • 429
    too_many_bad_keys

    Too many wrong keys from one address. Wait for Retry-After.

  • 500
    internal_error

    A fault on the league’s side. Try again later.

Request, curl
curl "https://gwl.gg/api/v1/team" \
  -H "Authorization: Bearer $GWL_API_KEY"
Example answer, 200
{
  "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
}

The Elo Rating now and over time

GET/api/v1/team/elo

Key
Team key, live or test

Query parameters

  • limitintegeroptional

    How many, up to 100

    Default: 100 · Minimum: 1 · Maximum: 100

Answer, 200

  • eloRatinginteger

    The Elo Rating: one ongoing all-time number, as on every page

  • ratedMatchesinteger

    Rated matches, all time

  • changeLast5number

    Elo change over the last five rated matches

  • historyarray of number

    The Elo Rating after each rated match, oldest first

Errors

  • 400
    invalid_request

    A query parameter or body field is missing, of the wrong type or out of range.

  • 403
    missing_scope

    The key was made without the scope the route needs. The message names it.

  • 403
    scope_lost

    The scope is ticked, but the key’s maker no longer holds the team permission behind it.

  • 403
    wrong_key_type

    A 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_key

    No Authorization header, or not a bearer token.

  • 401
    invalid_key

    Not a key, a mistyped one, or a key used in the wrong mode.

  • 401
    key_revoked

    The key was revoked, by its team, by league staff or because its team is gone.

  • 401
    key_expired

    The key passed the expiry chosen when it was made.

  • 403
    team_suspended

    League staff suspended the team. Its keys work again when it is restored.

  • 403
    key_maker_left

    The person who made or last rotated the key left the team. Rotating starts it again.

  • 403
    key_maker_no_access

    The person who made or last rotated the key no longer holds Manage API keys. Rotating starts it again.

  • 429
    rate_limited

    Over the per-minute limit for the key or the address. Wait for Retry-After.

  • 429
    daily_limit

    A personal or test key used its requests for the day.

  • 429
    too_many_bad_keys

    Too many wrong keys from one address. Wait for Retry-After.

  • 500
    internal_error

    A fault on the league’s side. Try again later.

Request, curl
curl "https://gwl.gg/api/v1/team/elo?limit=5" \
  -H "Authorization: Bearer $GWL_API_KEY"
Example answer, 200
{
  "eloRating": 1482,
  "ratedMatches": 12,
  "changeLast5": 14,
  "history": [
    1470,
    1468,
    1485,
    1482,
    1482
  ]
}