Resource information
URL | https://api.statscore.com/v2/participants/{participant_id}/compare |
---|---|
Method | GET |
Description | Returns the comparisons between two participants |
Cache | 60 seconds |
Authorization required | Yes |
...
Name | Data type | Description |
---|---|---|
token | xsd:string | REQUIRED. More information concerning authorization in API introduction section |
lang | xsd:string | Determines language for the output data |
compare_participant_id | xsd:int | REQUIRED. Second participant id to compare |
date_from | xsd:string | Selection datetime, format 'yyyy-mm-dd hh:mm:ss'. Date from which events should be returned |
events_details | xsd:string | Determines if subnodes of events will be visible. Possible values:
|
competition_id | xsd:string | It allows for comparison within matches played in selected competitions |
competitions_details | xsd:string | Determines if parent nodes of events will be visible. Possible values:
|
tz | xsd:string | Determines timezone for the output data |
...
Method calling examples
Link | Description | https://api.statscore.com/v2/participants/136928/compare.xml?token={{YOUR_TOKEN}}&sport_id=5&compare_participant_id=136929 | Returns comparisons between two participants in XML format
---|---|
https://api.statscore.com/v2/participants/136928/compare?token={{YOUR_TOKEN}}&compare_participant_id=136929 | Returns comparisons between two participants in JSON format |
...