Teams Information

Description

This request will return information about a WGL team.

URI api.fantasywgl.com/request/{API_KEY}/info_team/
Request Method GET, POST

Parameters

Parameter Required Type Default Description
team TRUE integer null Fantasy WGL Team ID#

Response

Meta Information

Field Type Description
timezone Time zone information about the timestamps in the response
timezone.offset integer Number of seconds from UTC (Z )
timezone.abbrev string Text format of Time Zone (T )
timezone.diff string Hour Differential from UTC (O )

Data

Field Type Description
info Information about the team
info.teamid integer The team's ID#
info.teamName string The team's name
info.teamClanID integer The team's Clan ID#
info.nextOppID integer, null Player's team's next opponent team ID in the FWGL system
info.nextOppName string, null Player's team's next opponent team name
info.nextMatchID integer, null Player's team's next match ID number
info.nextMatchTime timestamp, null Date of player's team's next match
info.captainID integer The FWGL ID# of the team's captain
info.captainName string The name of the team's captain
 
roster The team's roster
roster.id integer Player ID#
roster.name string Player name
roster.battles integer Number of WGL battles played by the player this season.
roster.points decimal Number of points scored by the player this season.

Errors

Full List
Code Message Description
600 REQUIRED_FIELD_MISSING One or more required fields does not have a requested value.
622 INVALID_SEARCH The search parameter was not valid. It could have been too short or of the wrong format.
623 NO_SEARCH_RESULTS There were results found based on the value sent in the search parameter.
<?xml version="1.0"?>
<response>
  <status>ok</status>
  <requestDetails>
    <key>demo</key>
    <request>info_team</request>
    <output>xml</output>
    <team>7</team>
    <apiKeyAlias>Hyp's Test Environment</apiKeyAlias>
  </requestDetails>
  <meta>
    <timezone>
      <offset>-28800</offset>
      <abbrev>PST</abbrev>
      <diff>-0800</diff>
    </timezone>
  </meta>
  <data>
    <info>
      <teamID>7</teamID>
      <teamName>S.I.M.P.</teamName>
      <teamClanID>1000010296</teamClanID>
      <nextOppID/>
      <nextOppName/>
      <nextMatchID/>
      <nextMatchTime/>
      <captainID>177</captainID>
      <captainName>Nitts</captainName>
    </info>
    <roster>
      <player>
        <id>46</id>
        <name>Lapse</name>
        <battles/>
        <points/>
      </player>
      <player>
        <id>60</id>
        <name>Adroxis</name>
        <battles>93</battles>
        <points>4366.4</points>
      </player>
      <player>
        <id>62</id>
        <name>Crimson_Corsair</name>
        <battles>81</battles>
        <points>3640.5</points>
      </player>
      <player>
        <id>129</id>
        <name>drynitz</name>
        <battles>93</battles>
        <points>3398.9</points>
      </player>
      <player>
        <id>133</id>
        <name>Overlord_Prime</name>
        <battles>93</battles>
        <points>4429.8</points>
      </player>
      <player>
        <id>134</id>
        <name>PhotoFinish</name>
        <battles>93</battles>
        <points>4281.7</points>
      </player>
      <player>
        <id>177</id>
        <name>Nitts</name>
        <battles>93</battles>
        <points>4335.8</points>
      </player>
      <player>
        <id>207</id>
        <name>Cooliano</name>
        <battles>4</battles>
        <points>148.2</points>
      </player>
      <player>
        <id>208</id>
        <name>E63M6</name>
        <battles>68</battles>
        <points>3206.9</points>
      </player>
      <player>
        <id>265</id>
        <name>Rude_Awakening</name>
        <battles>8</battles>
        <points>282.5</points>
      </player>
    </roster>
  </data>
</response>
{
	"status": "ok",
	"requestDetails": {
		"key": "demo",
		"request": "info_team",
		"output": "json",
		"team": "7",
		"apiKeyAlias": "Hyp's Test Environment"
	},
	"meta": {
		"timezone": {
			"offset": "-28800",
			"abbrev": "PST",
			"diff": "-0800"
		}
	},
	"data": {
		"info": {
			"teamID": "7",
			"teamName": "S.I.M.P.",
			"teamClanID": "1000010296",
			"nextOppID": null,
			"nextOppName": null,
			"nextMatchID": null,
			"nextMatchTime": null,
			"captainID": "177",
			"captainName": "Nitts"
		},
		"roster": [
			{
				"id": "46",
				"name": "Lapse",
				"battles": null,
				"points": null
			},
			{
				"id": "60",
				"name": "Adroxis",
				"battles": "93",
				"points": "4366.4"
			},
			{
				"id": "62",
				"name": "Crimson_Corsair",
				"battles": "81",
				"points": "3640.5"
			},
			{
				"id": "129",
				"name": "drynitz",
				"battles": "93",
				"points": "3398.9"
			},
			{
				"id": "133",
				"name": "Overlord_Prime",
				"battles": "93",
				"points": "4429.8"
			},
			{
				"id": "134",
				"name": "PhotoFinish",
				"battles": "93",
				"points": "4281.7"
			},
			{
				"id": "177",
				"name": "Nitts",
				"battles": "93",
				"points": "4335.8"
			},
			{
				"id": "207",
				"name": "Cooliano",
				"battles": "4",
				"points": "148.2"
			},
			{
				"id": "208",
				"name": "E63M6",
				"battles": "68",
				"points": "3206.9"
			},
			{
				"id": "265",
				"name": "Rude_Awakening",
				"battles": "8",
				"points": "282.5"
			}
		]
	}
}