Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Resource information

URLhttps://api.softnetsport.com/v2/livescore
MethodGET

Description

Returns the LIVE events related with competitions, seasons, stages and groups
PackageThis resource is included in the LIVESCORE package

Method parameters

NameTypeDescription
There are not method parameters in this resource 

Query parameters

NameTypeDescription
usernamexsd:stringREQUIRED. Assigned to you by the softnetSPORT administrator
langxsd:string

Determines language for the output data. softnetSPORT API provides the following languages: languages.index

pagexsd:intDetermines offset of paginated data. Default value is 1 which means first page
limitxsd:int

Determines maximum number of returned records on page. Used in paginated data. Default value is 100

Possible values: 5, 10, 25, 50, 100, 250, 500

date_fromxsd:stringSelection datetime, format 'yyyy-mm-dd hh:mm:ss'. Date from which events should be returned
date_toxsd:stringSelection datetime, format 'yyyy-mm-dd hh:mm:ss'. End date of returned events
sport_idxsd:intDetermines the sport identifier in which the events are played. softnetSPORT API provides the following sports: sports.index
area_idxsd:intDetermines the area identifier in which the events are played. softnetSPORT API provides the following sports: areas.index
competition_idxsd:intDetermines the competition identifier in which the events are played. softnetSPORT API provides the following sports: competitions.index
season_idxsd:intDetermines the season identifier in which the events are played. softnetSPORT API provides the following sports: seasons.index
stage_idxsd:intDetermines the stage identifier in which the events are played. softnetSPORT API provides the following sports: stages.index
group_idxsd:intDetermines the group identifier in which the events are played. softnetSPORT API provides the following sports: groups.index
participant_idxsd:intDetermines the identifier of the participant. softnetSPORT API provides the following statuses: participants.index
tzxsd:stringDetermines timezone for the output data. softnetSPORT API provides the following timezones: timezones

Method calling examples

LinkDescription
https://api.softnetsport.com/v2/livescore.xml?username=softnetsportReturns list of all events in XML format
https://api.softnetsport.com/v2/livescore?username=softnetsportReturns list of all events in JSON format

Output elements

.competitions 
..competition 
idUnique identifier for the competition
nameName of the the competition i.e.: U19 World Champ
short_nameShorter name of the competition i.e.: U19 WCH, Max 20 characters
mini_name

Mini name of the competition. Max 3 characters length i.e.: U19

gender

Competition gender. Possible values:

  • male
  • female
  • mixed
  • undefined
type

Competitions type. Possible values:

  • country_league - i.e.: Premier Division
  • country_cups - i.e.: FA Cup
  • international - i.e.: World Cup
  • international_clubs - i.e.: Champions League 
  • friendly - friendly matches
  • individual - for speedway individual competitions such as Speedway GP
  • team - for speedway national competitions
  • single - for tennis competitions
  • double - for tennis competitions
  • mixed - for tennis competitions
  • undefined - other
area_idUnique identifier of area in which competitions are played. softnetSPORT API provides the following areas: areas.index
area_nameName of area in which competitions are played
area_type

 Type of area in which competitions are played. Possible values:

  • country
  • international
area_sortThe parameter used to sort competitions in the country, i.e. Premier League is 1st and the Championship is 2nd in English competitions. Sorting direction is ascending
area_codeMax 3 characters length of area in which competitions are played
overall_sortThe parameter used to sort competitions. Sorting direction is ascending
sport_idUnique identifier of the sport in which competition is played. softnetSPORT API provides the following sports: sports.index
sport_nameName of the sport in which competition is played
tour_idUnique identifier of the tour in which competition is played. softnetSPORT API provides the following tours: tours.index
tour_nameName of the tour in which competition is played
utInformation about date and time when the competition record was last updated. Format UNIX_TIMESTAMP
old_competition_iddeprecated. The attribute will be removed in the next API version
...seasons
 
....season
 
idUnique identifier for the season
nameName of the season f.e: Premiership 2014/15
year

Determines the season year f.e:

  • 1970
  • 1970/71
  • 1971
  • 1971/72
  • 2000
  • 2000/01
  • 2014
  • 2014/15
utInformation about date and time when the season record was last updated. Format UNIX_TIMESTAMP
old_season_iddeprecated. The attribute will be removed in the next API version
.....stages
 
.....stage
 
idUnique identifier for the stage
nameName of the stage
start_dateDate when stage begins. Format YYYY-MM-DD
end_dateDate when stage ends. Format YYYY-MM-DD
show_standings

Determines if the stage contains a standings. Possible values:

  • yes
  • no
groups_nrThe amount of groups that are part of the stage
sortThe sort order for the stage. Sorting direction is ascending
is_current

Possible values:

  • yes
  • no
utInformation about date and time when the stage record was last updated. Format UNIX_TIMESTAMP
old_stage_iddeprecated. The attribute will be removed in the next API version
......groups
 
......group
 
idUnique identifier for the group
nameName of the group
utInformation about date and time when the group record was last updated. Format UNIX_TIMESTAMP
........events
 
.........event
 
idUnique identifier for the event
nameName of the event i.e. Spain - Italy
start_dateDate when the event starts in format DATE_TIME (2015-03-01 11:02)
ft_only

Determines when the result of the event is updated. Possible values:

  • yes - result updated only when event is finished 
  • no - result updated during the event
coverage_type

Type of event coverage. Possible values:

  • venue - means the scout is relating the event directly from the stadium
  • tv - means the scout is relating the event from tv transmission
scoutsfeed

Information concerning scouts coverage. Possible values:

  • yes
  • no
status_idUnique identifier of the event status. softnetSPORT API provides the following statuses: statuses.index
status_name

Name of the event status

status_type

Type of the status. Possible values:

  • live
  • scheduled
  • finished
  • cancelled
  • interrupted
  • deleted
  • other
dayDay in the season
neutral_venue

Determines if event is played on neutral venue. Possible values:

  • yes
  • no
utInformation about date and time when the event record was last updated. Format UNIX_TIMESTAMP
old_event_iddeprecated. The attribute will be removed in the next API version
.........details
 additional information related to event
..........detail
 
idUnique identifier for the detail
name

Name of the detail. Possible values are different depending on sport:

  • Basketball: First quarter start date, Second quarter start date, Third quarter start date, Fourth quarter start date, Overtime start date, Quarter length, Number of quarters (2 or 4)
  • Volleyball: First set start date, Second set start date, Third set start date, Fourth set start date, Fifth set start date, Sets played to
  • Ice hockey: First period start date, Second period start date, Third period start date, Overtime start date, Period length
  • Tennis: First set start date, Second set start date, Third set start date, Fourth set start date, Fifth set start date, Weather condition, Surface (hard, clay, grass, carpet, others), Sets number (Best of 3 sets, Best of 5 sets)
  • Soccer: First half start date, Second half start date, Extratime first half start date, Extratime second half start date, Pitch condition, Weather condition, Half length
  • Handball: First half start date, Second half start date, Extratime first half start date, Extratime second half start date, Half length
  • Baseball: First inning start date, Second inning start date, Third innning start date, Nineth innning start date, Extra innning start date,
  • American football: First quarter start date, Second quarter start date, Third quarter start date, Fourth quarter start date, Overtime start date, Pitch condition, Weather condition, Period length
  • Rugby: First half start date, Second half start date, Extratime first half start date, Extratime second half start date, Pitch condition, Weather condition
  • Cricket: -
valueValue related to the detail
.........participants
 
..........participant
 
counterNumber of participant in the event. Participant with counter="1" is home team.
idUnique identifier of the participant
type

Participant type. Possible values:

  • team
  • person
nameParticipant name
short_nameParticipant short name, max length: 20 characters
acronymMax 3 characters length mini name, f.e: BAR, REA
gender

Participant gender. Possible value:

  • male
  • female
  • mixed (for doubles in tennis f.e)
area_idUnique identifier of the area represented by the participant. softnetSPORT API provides the following areas: areas.index
area_nameArea name represented by the participant
area_codeMax 3 characters length of the short area name f.e: GER, POL, FRA
sport_idUnique identifier of the sport in which participant occures. softnetSPORT API provides the following sports: sports.index
sport_nameName of the sport in which participant occures
national

Determines if participant is national team. Possible values:

  • yes
  • no
websiteParticipant official website
utInformation about date and time when the record was last updated. Format UNIX_TIMESTAMP
old_participant_iddeprecated. The attribute will be deprecated in next API version
...........results
 
............result
 
idUnique identifier for the result
name

Name of the result. Possible values are different depending on sport:

  • Basketball: Result, Regular time, First quarter, Second quarter, Third quarter, Fourth quarter, Overtime
  • Volleyball: Result, First set, Second set, Third set, Fourth set, Fifth set
  • Ice hockey: Result, Regular time, First period, Second period, Third period, Extratime, Penalty
  • Tennis: Result, First set, Second set, Third set, Fourth set, Fifth set, Tie break 1set pts, Tie break 2nd set pts, Tie break 3rd set pts, Tie break 4th set pts, Tie break 5th set pts, Current game points
  • Soccer: Result, Regular time, First half, Second half, Extratime first half, Extratime 1st half, Extratime 2nd half, Penalty, Overtime
  • Handball:
  • Baseball:
  • American football:
  • Rugby:
  • Cricket:
valueValue related to the result
...........stats
 
............stat
 
idUnique identifier for the stat
name

Name of the stat. Possible values are different depending on sport:

  • Basketball:
  • Volleyball:
  • Ice hockey:
  • Tennis
  • Soccer:
  • Handball:
  • Baseball:
  • American football:
  • Rugby:
  • Cricket:
valueValue related to the statistic

 

 

  • No labels