Skip to content

Instantly share code, notes, and snippets.

Verizon Media VerizonMediaOwner

Block or report user

Report or block VerizonMediaOwner

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View team_stats_mlb_example.xml
<!--https://fantasysports.yahooapis.com/fantasy/v2/team/253.l.102614.t.10/stats;type=date;date=2011-07-06-->
<!--Team date status in an MLB roto league-->
<?xml version="1.0" encoding="UTF-8"?>
<fantasy_content xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://fantasysports.yahooapis.com/fantasy/v2/base.rng" xml:lang="en-US" yahoo:uri="http://fantasysports.yahooapis.com/fantasy/v2/team/253.l.102614.t.10/stats;date=2011-07-06;type=date" time="68.986892700195ms" copyright="Data provided by Yahoo! and STATS, LLC">
<team>
<team_key>253.l.102614.t.10</team_key>
<team_id>10</team_id>
<name>Matt Dzaman</name>
<url>https://baseball.fantasysports.yahoo.com/b1/102614/10</url>
<team_logos>
View team_stats_season_example.xml
<!--https://fantasysports.yahooapis.com/fantasy/v2/team/223.l.431.t.1/stats;type=season-->
<!--Team season stats in a NFL H2H league-->
<?xml version="1.0" encoding="UTF-8"?>
<fantasy_content xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://fantasysports.yahooapis.com/fantasy/v2/base.rng" xml:lang="en-US" yahoo:uri="http://fantasysports.yahooapis.com/fantasy/v2/team/223.l.431.t.1/stats;type=season" time="129.66799736023ms" copyright="Data provided by Yahoo! and STATS, LLC">
<team>
<team_key>223.l.431.t.1</team_key>
<team_id>1</team_id>
<name>PFW - Blunda</name>
<url>https://football.fantasysports.yahoo.com/archive/pnfl/2009/431/1</url>
<team_logos>
View team_resource_example.xml
<!--https://fantasysports.yahooapis.com/fantasy/v2/team/223.l.431.t.1-->
<?xml version="1.0" encoding="UTF-8"?>
<fantasy_content xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://fantasysports.yahooapis.com/fantasy/v2/base.rng" xml:lang="en-US" yahoo:uri="http://fantasysports.yahooapis.com/fantasy/v2/team/223.l.431.t.1" time="426.26690864563ms" copyright="Data provided by Yahoo! and STATS, LLC">
<team>
<team_key>223.l.431.t.1</team_key>
<team_id>1</team_id>
<name>PFW - Blunda</name>
<url>https://football.fantasysports.yahoo.com/archive/pnfl/2009/431/1</url>
<team_logos>
<team_logo>
View scoreboard_example.xml
<!--https://fantasysports.yahooapis.com/fantasy/v2/league/223.l.431/scoreboard-->
<?xml version="1.0" encoding="UTF-8"?>
<fantasy_content xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://fantasysports.yahooapis.com/fantasy/v2/base.rng" xml:lang="en-US" yahoo:uri="http://fantasysports.yahooapis.com/fantasy/v2/league/223.l.431/scoreboard" time="148.71311187744ms" copyright="Data provided by Yahoo! and STATS, LLC">
<league>
<league_key>223.l.431</league_key>
<league_id>431</league_id>
<name>Y! Friends and Family League</name>
<url>https://football.fantasysports.yahoo.com/archive/pnfl/2009/431</url>
<draft_status>postdraft</draft_status>
<num_teams>14</num_teams>
View league_resource_standings.xml
<!--https://fantasysports.yahooapis.com/fantasy/v2/league/223.l.431/standings-->
<?xml version="1.0" encoding="UTF-8"?>
<fantasy_content xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://fantasysports.yahooapis.com/fantasy/v2/base.rng" xml:lang="en-US" yahoo:uri="http://fantasysports.yahooapis.com/fantasy/v2/league/223.l.431/standings" time="201.46489143372ms" copyright="Data provided by Yahoo! and STATS, LLC">
<league>
<league_key>223.l.431</league_key>
<league_id>431</league_id>
<name>Y! Friends and Family League</name>
<url>https://football.fantasysports.yahoo.com/archive/pnfl/2009/431</url>
<draft_status>postdraft</draft_status>
<num_teams>14</num_teams>
View league_resource_settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<fantasy_content xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://fantasysports.yahooapis.com/fantasy/v2/base.rng" xml:lang="en-US" yahoo:uri="http://fantasysports.yahooapis.com/fantasy/v2/league/223.l.431/settings" time="86.472988128662ms" copyright="Data provided by Yahoo! and STATS, LLC">
<league>
<league_key>223.l.431</league_key>
<league_id>431</league_id>
<name>Y! Friends and Family League</name>
<url>https://football.fantasysports.yahoo.com/archive/pnfl/2009/431</url>
<draft_status>postdraft</draft_status>
<num_teams>14</num_teams>
<edit_key>17</edit_key>
View transaction_add_player.xml
<fantasy_content>
<transaction>
<type>add</type>
<player>
<player_key>{player_key}</player_key>
<transaction_data>
<type>add</type>
<destination_team_key>{team_key}</destination_team_key>
</transaction_data>
</player>
View transaction_accept_trades.xml
<?xml version='1.0'?>
<fantasy_content>
<transaction>
<transaction_key>248.l.55438.pt.11</transaction_key>
<type>pending_trade</type>
<action>accept</action>
<trade_note>Dude, that is a totally fair trade.</trade_note>
</transaction>
</fantasy_content>
View transaction_pending.xml
<?xml version="1.0" encoding="UTF-8"?>
<fantasy_content xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://fantasysports.yahooapis.com/fantasy/v2/base.rng" xml:lang="en-US" yahoo:uri="http://fantasysports.yahooapis.com/fantasy/v2/transaction/257.l.193.pt.1" time="45.558929443359ms" copyright="Data provided by Yahoo! and STATS, LLC">
<transaction>
<transaction_key>257.l.193.pt.1</transaction_key>
<type>pending_trade</type>
<status>proposed</status>
<trader_team_key>257.l.193.t.2</trader_team_key>
<tradee_team_key>257.l.193.t.1</tradee_team_key>
<trade_proposed_time>1310694832</trade_proposed_time>
<trade_note>This is a great trade, fo' shizzle.</trade_note>
View player_resource_example.xml
<?xml version="1.0" encoding="UTF-8"?>
<fantasy_content xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://fantasysports.yahooapis.com/fantasy/v2/base.rng" xml:lang="en-US" yahoo:uri="http://fantasysports.yahooapis.com/fantasy/v2/league/223.l.431/players;player_keys=223.p.5479" time="508.72206687927ms" copyright="Data provided by Yahoo! and STATS, LLC">
<league>
<league_key>223.l.431</league_key>
<league_id>431</league_id>
<name>Y! Friends and Family League</name>
<url>https://football.fantasysports.yahoo.com/archive/pnfl/2009/431</url>
<password>liss</password>
<draft_status>postdraft</draft_status>
<num_teams>14</num_teams>
You can’t perform that action at this time.