Versions Compared

Key

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

Resource information

URLhttps://api.softnetsportstatscore.com/v2/participants/{participant_id}/compare
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

...