Resource information
URL | https://api.softnetsport.com/v2/feed/{event_id} |
---|---|
XSD | https://api.softnetsport.com/assets/API/docs/xsd/feed.show.xsd |
Method | GET |
Description | Returns all incidents from a single event. |
Cache | 0 seconds |
Authorization required | Yes |
Method parameters
Name | Type | Description |
---|---|---|
event_id | xsd:int | REQUIRED. The requested event identifier |
Query parameters
Name | Type | Description |
---|---|---|
token | xsd:string | REQUIRED. More information concerning authorization in API introduction section |
page | xsd:int | Determines offset of paginated data. Default value is 1 which means first page. |
limit | xsd:int | Determines maximum number of returned records on page. Used in paginated data. Default value is 500. Possible values: 5, 10, 25, 50, 100, 250, 500 |
important | xsd:string | Determines if incident is important e.g. goals, cards, substitution. By default all types are included. Allowed values:
|
important_for_trader | xsd:string | Determines the type of incidents (if they are important for the trader). By default all types are included.
|
timestamp | xsd:unix_timestamp | Selection date, format UNIX_TIMESTAMP. Only incidents that occurred after this timestamp will be returned. |
timestamp_to | xsd:unix_timestamp | Selection date, format UNIX_TIMESTAMP. Only incidents that occurred before this timestamp will be returned. |
type | xsd:string | Determines type of message
|
incident_ids | xsd:string | List of incidents type identifiers separated by a comma (e.g. 123,234,321) for which you want to get the incident details. |
status_id | xsd:int | Determines the event status identifier. |
Method calling examples
Link | Description |
---|---|
https://api.softnetsport.com/v2/feed/6367.xml?token={{YOUR_TOKEN}} | Returns all incidents from the last 24 hours for the selected event in XML format |
https://api.softnetsport.com/v2/feed/6367?token={{YOUR_TOKEN}} | Returns all incidents from the last 24 hours for the selected event in JSON format |
Output elements
.feed | |
---|---|
id | Unique identifier for the message |
type | Possible value:
|
source | Internal attribute, please dont use this attribute |
ut | Information about the date and time of when the message was created. Format UNIX_TIMESTAMP. |
..data | |
...incident | node available only if message type is incident |
id | Unique identifier for the incident occurred in the event |
action | Describes type of scout operation for the incident. Possible values:
|
incident_id | Identifier for the incident |
incident_name | Name of the incident. e.g. goal, yellow card, red card etc. |
participant_id | Unique identifier for participants name (player, team or coach) related to incident |
participant_name | Participants name (player, team or coach) related to incident. |
subparticipant_id | Team id for which the player or coach is part |
competition | |
season_id | Unique identifier for the season. |
stage_id | Unique identifier for the stage |
tour_id | Unique identifier for the tour in which competition is |
played | |
gender | Competition gender. Possible values:
|
bet_status | Bet status. Possible values:
|
.....details | |
---|---|
id | Unique identifier for the detail. Possible values are different depending on the sport |
value | Value related to the detail |
.....participants | |
counter | Number of participans in the event. Participant with counter="1" is the home team, "2" is the away team |
id | Unique identifier of the |
participant | |
......results | |
---|---|
id | Unique identifier for the result. Possible values are different depending on the sport |
value | Value related to the results |
......stats | |
id | Unique identifier for the statistic. Possible values are different depending on the sport |
value | Value related to the statistic |