API for stats.swehockey.se

GET GamesInProgress Test

http://apfy.me/stats.swehockey.se/burken/GamesInProgress

Get an overview of all today's games of the specified tournament

Original pathhttp://stats.swehockey.se/ScheduleAndResults/Live/[slug]
Transformation dataShow XSLT
Validation dataShow XSDs
Require https?No
Automatically follow redirects?No
Added2012-11-17
Modified -
Last successed fetch2017-04-21
Last successed parse2017-04-16
Request parameters
ParameterDescriptionRequiredValidation
slug Id of tournament True ^\d+$
Example request with Curl
curl 	-H "x-apfy-authorization: [Your API key]" \
	http://apfy.me/stats.swehockey.se/burken/GamesInProgress?slug=[Required]

Refer to the parameter-pane for more information about specific parameters

To get JSON-response instead of XMl add: -H "x-apfy-accept: application/json"

APFy.me - Response codes. If you're not getting any data, start by analyzing the response code to understand what might be wrong.

Example XML-response Example JSON-response

GET LatestResults Test

http://apfy.me/stats.swehockey.se/burken/LatestResults

Shows the latest results from tournament.

Original pathhttp://stats.swehockey.se/ScheduleAndResults/Overview/[slug]
Transformation dataShow XSLT
Validation dataShow XSDs
Require https?No
Automatically follow redirects?No
Added2012-11-14
Modified2012-11-14
Last successed fetch2017-03-20
Last successed parse2017-02-08
Request parameters
ParameterDescriptionRequiredValidation
slug Id of tournament True ^\d+$
Example request with Curl
curl 	-H "x-apfy-authorization: [Your API key]" \
	http://apfy.me/stats.swehockey.se/burken/LatestResults?slug=[Required]

Refer to the parameter-pane for more information about specific parameters

To get JSON-response instead of XMl add: -H "x-apfy-accept: application/json"

APFy.me - Response codes. If you're not getting any data, start by analyzing the response code to understand what might be wrong.

Example XML-response Example JSON-response

GET LineUp Test

http://apfy.me/stats.swehockey.se/burken/LineUp

Original pathhttp://stats.swehockey.se/Game/LineUps/[slug]
Transformation dataShow XSLT
Validation dataShow XSDs
Require https?No
Automatically follow redirects?No
Added2012-11-18
Modified -
Last successed fetch2017-02-12
Last successed parse2017-02-12
Request parameters
ParameterDescriptionRequiredValidation
slug Id of event True ^\d+$
Example request with Curl
curl 	-H "x-apfy-authorization: [Your API key]" \
	http://apfy.me/stats.swehockey.se/burken/LineUp?slug=[Required]

Refer to the parameter-pane for more information about specific parameters

To get JSON-response instead of XMl add: -H "x-apfy-accept: application/json"

APFy.me - Response codes. If you're not getting any data, start by analyzing the response code to understand what might be wrong.

Example XML-response Example JSON-response

GET LinkedTournaments Test

http://apfy.me/stats.swehockey.se/burken/LinkedTournaments

Original pathhttp://stats.swehockey.se/
Transformation dataShow XSLT
Validation dataShow XSDs
Require https?No
Automatically follow redirects?No
Added2014-09-26
Modified -
Last successed fetch2015-01-11
Last successed parse2015-01-11
Request headers
ParameterDescriptionRequiredValidation
User-Agent True
Example request with Curl
curl 	-H "x-apfy-authorization: [Your API key]" \
	-H "User-Agent: [Required]" \
	http://apfy.me/stats.swehockey.se/burken/LinkedTournaments

Refer to the parameter-pane for more information about specific parameters

To get JSON-response instead of XMl add: -H "x-apfy-accept: application/json"

APFy.me - Response codes. If you're not getting any data, start by analyzing the response code to understand what might be wrong.

Example XML-response Example JSON-response

GET ListAllGamesToday Test

http://apfy.me/stats.swehockey.se/burken/ListAllGamesToday

Lists all games today for both national, international and regional tournaments. Only games connected to a registred tournament are returned in the response.

Original pathhttp://stats.swehockey.se/GamesByDate/[date]/ByGroup/null
Transformation dataShow XSLT
Validation dataShow XSDs
Require https?No
Automatically follow redirects?No
Added2014-09-26
Modified -
Last successed fetch2017-03-25
Last successed parse2017-03-25
Request parameters
ParameterDescriptionRequiredValidation
date The date to fetch games for True ^\d{4}-\d{2}-\d{2}$
Example request with Curl
curl 	-H "x-apfy-authorization: [Your API key]" \
	http://apfy.me/stats.swehockey.se/burken/ListAllGamesToday?date=[Required]

Refer to the parameter-pane for more information about specific parameters

To get JSON-response instead of XMl add: -H "x-apfy-accept: application/json"

APFy.me - Response codes. If you're not getting any data, start by analyzing the response code to understand what might be wrong.

Example XML-response Example JSON-response

GET ListGamesToday Test

http://apfy.me/stats.swehockey.se/burken/ListGamesToday

Lists all tournaments that has games today

Original pathhttp://stats.swehockey.se/
Transformation dataShow XSLT
Validation dataShow XSDs
Require https?No
Automatically follow redirects?No
Added2012-11-14
Modified2014-09-18
Last successed fetch2017-03-20
Last successed parse2017-03-20
Request headers
ParameterDescriptionRequiredValidation
user-agent True
Example request with Curl
curl 	-H "x-apfy-authorization: [Your API key]" \
	-H "user-agent: [Required]" \
	http://apfy.me/stats.swehockey.se/burken/ListGamesToday

Refer to the parameter-pane for more information about specific parameters

To get JSON-response instead of XMl add: -H "x-apfy-accept: application/json"

APFy.me - Response codes. If you're not getting any data, start by analyzing the response code to understand what might be wrong.

Example XML-response Example JSON-response

GET Live Test

http://apfy.me/stats.swehockey.se/burken/Live

BETA - Fetches the live data for the event. If you have any input how this should be formatted or if you want to join the development of the stats.swehockey.se API, please contact me using the APFy.me contact-form.

Questions:
1. For the activity section "Game Winning Shots", the "when"-element doesn't contain a time but rather "Missed" or "Scored". Should we split and use another element-name for when the "when" doesn't contain a time?

2. In the activity section, the "who"-element is just a text-field. Should we split this into detailed info about each player e.g. [main][nr]X[/nr][firstname]Foo[/firstname][lastname]Bar[/lastname][/main] and [extra][nr]X[/nr][firstname]Foo[/firstname][lastname]Bar[/lastname][/extra]?

2.1. If we split the "who"-element, how to handle penalty shots where the info looks like "playername vs. goalie playername"... what to do with the "vs. goalie"-part

3. Other suggestions?

Original pathhttp://stats.swehockey.se/Game/Events/[slug]
Transformation dataShow XSLT
Validation dataShow XSDs
Require https?No
Automatically follow redirects?No
Added2014-09-12
Modified2014-10-07
Last successed fetch2017-04-16
Last successed parse2017-04-16
Request parameters
ParameterDescriptionRequiredValidation
slug Event id, can be fetched from the "GamesInProgress"-method True ^\d+$
Example request with Curl
curl 	-H "x-apfy-authorization: [Your API key]" \
	http://apfy.me/stats.swehockey.se/burken/Live?slug=[Required]

Refer to the parameter-pane for more information about specific parameters

To get JSON-response instead of XMl add: -H "x-apfy-accept: application/json"

APFy.me - Response codes. If you're not getting any data, start by analyzing the response code to understand what might be wrong.

Example XML-response Example JSON-response

GET Schedule Test

http://apfy.me/stats.swehockey.se/burken/Schedule

Returns the complete schedule for the selected tournament

Original pathhttp://stats.swehockey.se/ScheduleAndResults/Schedule/[slug]
Transformation dataShow XSLT
Validation dataShow XSDs
Require https?No
Automatically follow redirects?No
Added2012-11-14
Modified -
Last successed fetch2017-03-25
Last successed parse2017-03-25
Request parameters
ParameterDescriptionRequiredValidation
slug Id of tournament True ^\d+$
Example request with Curl
curl 	-H "x-apfy-authorization: [Your API key]" \
	http://apfy.me/stats.swehockey.se/burken/Schedule?slug=[Required]

Refer to the parameter-pane for more information about specific parameters

To get JSON-response instead of XMl add: -H "x-apfy-accept: application/json"

APFy.me - Response codes. If you're not getting any data, start by analyzing the response code to understand what might be wrong.

Example XML-response Example JSON-response

GET Standings Test

http://apfy.me/stats.swehockey.se/burken/Standings

Gets the current standings in selected tournament

Original pathhttp://stats.swehockey.se/ScheduleAndResults/Overview/[slug]
Transformation dataShow XSLT
Validation dataShow XSDs
Require https?No
Automatically follow redirects?No
Added2012-11-14
Modified2012-11-14
Last successed fetch2017-02-12
Last successed parse2017-02-12
Request parameters
ParameterDescriptionRequiredValidation
slug Id of tournament True ^\d+$
Example request with Curl
curl 	-H "x-apfy-authorization: [Your API key]" \
	http://apfy.me/stats.swehockey.se/burken/Standings?slug=[Required]

Refer to the parameter-pane for more information about specific parameters

To get JSON-response instead of XMl add: -H "x-apfy-accept: application/json"

APFy.me - Response codes. If you're not getting any data, start by analyzing the response code to understand what might be wrong.

Example XML-response Example JSON-response

GET TournamentInfo Test

http://apfy.me/stats.swehockey.se/burken/TournamentInfo

Returns basic information about a tournament

Original pathhttp://stats.swehockey.se/ScheduleAndResults/Schedule/[slug]
Transformation dataShow XSLT
Validation dataShow XSDs
Require https?No
Automatically follow redirects?No
Added2014-09-26
Modified2014-09-26
Last successed fetch2015-08-05
Last successed parse2015-08-05
Request parameters
ParameterDescriptionRequiredValidation
slug Tournament ID True ^\d+$
Example request with Curl
curl 	-H "x-apfy-authorization: [Your API key]" \
	http://apfy.me/stats.swehockey.se/burken/TournamentInfo?slug=[Required]

Refer to the parameter-pane for more information about specific parameters

To get JSON-response instead of XMl add: -H "x-apfy-accept: application/json"

APFy.me - Response codes. If you're not getting any data, start by analyzing the response code to understand what might be wrong.

Example XML-response Example JSON-response

GET TournamentsInProgress Test

http://apfy.me/stats.swehockey.se/burken/TournamentsInProgress

Returns a list of active tournaments

Original pathhttp://stats.swehockey.se/
Transformation dataShow XSLT
Validation dataShow XSDs
Require https?No
Automatically follow redirects?No
Added2012-11-14
Modified2012-11-14
Last successed fetch2014-10-03
Last successed parse2014-10-03
Example request with Curl
curl 	-H "x-apfy-authorization: [Your API key]" \
	http://apfy.me/stats.swehockey.se/burken/TournamentsInProgress

To get JSON-response instead of XMl add: -H "x-apfy-accept: application/json"

APFy.me - Response codes. If you're not getting any data, start by analyzing the response code to understand what might be wrong.

Example XML-response Example JSON-response

GET UpcomingGames Test

http://apfy.me/stats.swehockey.se/burken/UpcomingGames

Gives a list of games next in line

Original pathhttp://stats.swehockey.se/ScheduleAndResults/Overview/[slug]
Transformation dataShow XSLT
Validation dataShow XSDs
Require https?No
Automatically follow redirects?No
Added2012-11-14
Modified2012-11-14
Last successed fetch2017-02-27
Last successed parse2017-02-27
Request parameters
ParameterDescriptionRequiredValidation
slug Id of tournament False ^\d+$
Example request with Curl
curl 	-H "x-apfy-authorization: [Your API key]" \
	http://apfy.me/stats.swehockey.se/burken/UpcomingGames?slug=[Optional]

Refer to the parameter-pane for more information about specific parameters

To get JSON-response instead of XMl add: -H "x-apfy-accept: application/json"

APFy.me - Response codes. If you're not getting any data, start by analyzing the response code to understand what might be wrong.

Example XML-response Example JSON-response
APFy.me - Logo