XML API

We provide a number of feeds that can be used to display ETF2L data on your own website. These feeds are as follows:

Players

Feed Url: http://etf2l.org/feed/player/

Arguments

  • id: Returns a player with a specific ETF2L id.
  • steamid: Returns a player with a specific steam id.

Returns: Player id, steamid, name, teams and competitions those teams are registered in.

Examples: http://etf2l.org/feed/player/?id=9

Player Transfers

Feed Url: http://etf2l.org/feed/transfer/

Arguments:

  • days: Number of days worth of transfers the feed should supply.
    • Default: 1
    • Maximum: 7
  • joins: Show only players joining a team.
  • parts: Show only players leaving a team. (note: this argument is ignored when joins is set to 1)
  • team: Comma-separated list of teams returned.

Returns: Player id and name, id and name of the team affected, time of the action and whether the action was join or leave.

Examples: http://etf2l.org/feed/transfer/?parts=1 http://etf2l.org/feed/transfer/?days=6&team=172,16,4

Teams

Feed Url: http://etf2l.org/feed/clan/

Arguments:

  • comp: Filter by a specified competition ID.
  • type: Filter by a specified team type ID.
  • nodrop: When set to 1, dropped teams will be excluded.

Returns: Clan ID and name

Examples: http://etf2l.org/feed/clan/?comp=37&nodrop=1

Match Results & Fixtures

Feed Url: http://etf2l.org/feed/match/

Arguments:

  • team: filter by a specific team
  • comp: filter by a specific competition
  • show: Show this amount of matches
    • Default: 20
  • days_ahead: Determines matches from how many days in the future should be returned. Can be negative to display already played matches.
    • Default: 3
  • days: Determines the amount of days to display fixtures from.
  • country: Filter by team nationality.

Returns: Match ID and date, competition ID and name, round in this competition (ID and name),  Nationality, Id and name of both teams. Played maps (if known), Results, both overall and per map (only for matches already played)

Examples: http://etf2l.org/feed/match/?days_ahead=-1&days=1&country=European&show=99 (shows yesterday’s results by European teams.)

Recruitment Feeds

Feed Url: http://etf2l.org/feed/recruit/

Arguments:

  • team: show teams looking for players. Shows players looking for teams by default
  • skill: filter by skill
  • classes: filter by classes
  • country: filter by country

Returns: A list of players or teams and assoicated recruitment pages

Examples: http://etf2l.org/feed/recruit/?skill=mid&classes[]=Engineer&classes[]=Demoman http://etf2l.org/feed/recruit/?team=1

Calendar iCal

Feed Url: http://etf2l.org/feed/ical/

Arguments:

  • team: show events for a specific team
  • comp: show events for a specific competition
  • division: show events for a specific division

Returns: Shows the last 3 and the next 3 months of the etf2l calendar in iCal format

Examples: http://etf2l.org/feed/ical/?team[]=16&team[]=34 http://etf2l.org/feed/ical/?division=5&comp=37