Sign In   |   Blog Home   |   Support   |   Demo   |   Buy   |   Register

http://www.fantasysportnet.com fantasysportnet


Getting started
API Documentation
For other questions, take a look at our FAQ
 
The following sections show examples of accessing the data feed, along with samples of requests and responses in both xml and json
 

Sample client code

Browser

Type the following in your browser url

http://www.fantasysportnet.com/data/feed?week=0812&league=test&season=1617&apiKey=FSN8776143&format=xml

http://www.fantasysportnet.com/data/feed?week=0812&league=test&season=1617&apiKey=FSN8776143&format=json

These examples will return xml or json data for the week starting on August 12 in the 2016/17 season for the test league


Java


C#


Sample xml successful response


Sample xml error responses

Called within minimum time interval between calls (30 seconds) - call again after 30 seconds


apiKey not valid - check main page when logged in for valid key


Invalid input parameters - correct the input and retry


apiKey is valid, but not authorised - buy access and retry


No data found for the week/season you specified - change input parameters to a different week


Sample json successful response


Sample json error responses

Called within minimum time interval between calls (30 seconds) - call again after 30 seconds


apiKey not valid - check main page when logged in for valid key


Invalid input parameters - correct the input and retry


apiKey is valid, but not authorised - buy access and retry


No data found for the week/season you specified - change input parameters to a different week


Contact

Copyright © 2024 fantasysportnet. All rights reserved.