Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Resource information

XSD
URLhttps://api.softnetsportstatscore.com/v2/participants/{participant_id}/comparehttps://api.softnetsport.com/assets/API/docs/xsd/participants.compare.xsd
MethodGET

Description

Returns the comparisons between two participants
Cache60 seconds
Authorization requiredYes

...

NameData typeDescription
tokenxsd:stringREQUIRED. More information concerning authorization in API introduction section
langxsd:string

Determines language for the output data

compare_participant_idxsd:intREQUIRED. Second participant id to compare
date_fromxsd:stringSelection datetime, format 'yyyy-mm-dd hh:mm:ss'. Date from which events should be returned
events_detailsxsd:string

Determines if subnodes of events will be visible. Possible values:

  • yes - events subnodes will be shown
  • no - events subnodes will be hidden
competition_idxsd:stringIt allows for comparison within matches played in selected competitions 
competitions_detailsxsd:string

Determines if parent nodes of events will be visible. Possible values:

  • yes - events parent nodes will be shown
  • no - events parent nodes will be hidden
tzxsd:stringDetermines timezone for the output data 

...

Method calling examples

softnetsport.com/v2/participants/136928/compare.xml?token={{YOUR_TOKEN}}&sport_id=5&compare_participant_id=136929
Link
Description
https://api.Returns comparisons between two participants in XML formathttps://api.softnetsportstatscore.com/v2/participants/136928/compare?token={{YOUR_TOKEN}}&compare_participant_id=136929Returns comparisons between two participants in JSON format

...

participants
participants > participant

Include Page
Participant node
Participant node

participants > participant > details
participants > participant > details > detail


foundedDate when the team was founded
phonePhone number
emailEmail address
addressAddress where the team is located
venue_idUnique identifier for the venue in which the team plays home games
venue_nameName of the venue in which the team plays home games
weightParticipants weight
heightParticipants height
nicknameParticipants nickname
position_nameName of the participants position
birthdateParticipants date of birth
born_placeParticipants place of birth
is_retired

Determines if participant has retired. Possible values:

  • yes
  • no
subtype

Participant subtype name. Possible values:

  • athlete
  • coach
  • referee
  • director


head2head
head2head > all_matches_stats


participant1_wonNumber of matches won for the first particant (first compare team) in all head2head matches
participant1_drawNumber of draws for the first particant (first compare team) in all head2head matches
participant1_lostNumber of matches lost for the first particant (first compare team) in all head2head matches
participant2_wonNumber of matches won for the second particant (second compare team) in all head2head matches
participant2_drawNumber of draws for the second particant (second compare team) in all head2head matches
participant2_lostNumber of matches lost for the second particant (second compare team) in all head2head matches
total_events_playedNumber of events played


head2head > last_10_matches_stats


participant1_wonNumber of matches won for the first particant (first compare team) in the last 10 matches
participant1_drawNumber of draws for the first particant (first compare team) in the last 10 matches
participant1_lostNumber of matches lost for the first particant (first compare team) in the last 10 matches
participant2_wonNumber of matches won for the second particant (second compare team) in the last 10 matches
participant2_drawNumber of draws for the second particant (second compare team) in the last 10 matches
participant2_lostNumber of matches lost for the second particant (second compare team) in the last 10 matches


head2head > h2h_events
head2head > h2h_events > competitions
head2head > h2h_events > competitions > competition

Include Page
Competition node
Competition node

head2head > h2h_events > competitions > competition > seasons
head2head > h2h_events > competitions > competition > seasons > season

Include Page
Season node
Season node

head2head > h2h_events > competitions > competition > seasons > season > stages
head2head > h2h_events > competitions > competition > seasons > season > stages > stage

Include Page
Stage node
Stage node

head2head > h2h_events > competitions > competition > seasons > season > stages > stage > groups
head2head > h2h_events > competitions > competition > seasons > season > stages > stage > groups > group

Include Page
Group node
Group node

head2head > h2h_events > competitions > competition > seasons > season > stages > stage > groups > group > events
head2head > h2h_events > competitions > competition > seasons > season > stages > stage > groups > group > events > event

Include Page
Event node
Event node

head2head > h2h_events > competitions > competition > seasons > season > stages > stage > groups > group > events > event > details
head2head > h2h_events > competitions > competition > seasons > season > stages > stage > groups > group > events > event > details > detail

Include Page
Detail2 node
Detail2 node

head2head > h2h_events > competitions > competition > seasons > season > stages > stage > groups > group > events > event > participants
head2head > h2h_events > competitions > competition > seasons > season > stages > stage > groups > group > events > event > participants > participant

Include Page
Participant node
Participant node

head2head > h2h_events > competitions > competition > seasons > season > stages > stage > groups > group > events > event > participants > participant > results
head2head > h2h_events > competitions > competition > seasons > season > stages > stage > groups > group > events > event > participants > participant > results > result

Include Page
Result2 node
Result2 node

head2head > h2h_events > competitions > competition > seasons > season > stages > stage > groups > group > events > event > participants > participant > stats
head2head > h2h_events > competitions > competition > seasons > season > stages > stage > groups > group > events > event > participants > participant > stats > stat

Include Page
Stat2 node
Stat2 node

...