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 17 Next »

Resource information

URLhttps://api.softnetsport.com/v2/feed/{event_id}
XSDhttps://api.softnetsport.com/assets/API/docs/xsd/feed.show.xsd
MethodGET

Description

Returns all incidents from a single event.
PackageThis resource is included in the SCOUTSFEED package
Cache0 seconds
Authorization requiredYes

Method parameters

NameTypeDescription
event_idxsd:intREQUIRED. The requested event identifier

 

Query parameters

NameTypeDescription
tokenxsd:string

REQUIRED. More information concerning oAuth token: oAuth 2.0 authorization

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 500

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

importantxsd:string

Determines if incident is important e.g. goals, cards, substitution. By default all types are included.

Allowed values:

  • yes - returns only important incidents
  • no - returns all incident types
important_for_traderxsd:string

Determines the type of incidents (if they are important for the trader). By default all types are included.
Allowed values:

  • yes - returns only incidents important for the trader
  • no - returns only incidents not important for the trader
timestampxsd:unix_timestampSelection date, format UNIX_TIMESTAMP. Only incidents that occurred after this timestamp will be returned.
timestamp_toxsd:unix_timestampSelection date, format UNIX_TIMESTAMP. Only incidents that occurred before this timestamp will be returned.

 

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

.messages 
..message 
idUnique identifier for the message
type

Possible value:

  • incident
  • event_changes
sourceInternal attribute, please dont use this attribute
utInformation about the date and time of when the message was created. Format UNIX_TIMESTAMP.
...data 
....incidentnode available only if message type is incident
idUnique identifier for the incident occurred in the event. This feature will be removed in a future release. Please dont use this attribute
incident_idIdentifier for the incident. softnetSPORT API provides the following incidents: incidents.index
incident_nameName of the incident. e.g. goal, yellow card, red card etc.
participant_idUnique identifier for participants name (player, team or coach) related to incident. softnetSPORT API provides the following participants: participants.index
participant_nameParticipants name (player, team or coach) related to incident.  
subparticipant_idTeam id for which the player or coach is part of. softnetSPORT API provides the following subparticipants: participants.index
subparticipant_nameTeam name for which the player or coach is part of
infoInternal attribute, please dont use this attribute
add_dataInternal attribute, please dont use this attribute
action

Describes type of scout operation for the incident. Possible values:

  • insert - new incident generated by the scout
  • update - incident was updated by the scout (e.g. incident "yellow card" is updated when scout fills in the name of the player (participant)
  • delete - incident was deleted (e.g. when the scout adds an incident by mistake, he can delete it)
....event 
idIdentifier of the event
nameName of the event
start_dateStart date for the event in format: YYYY-MM-DD hh:mm
ft_only

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

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

Type of event coverage. Possible values:

  • from_venue - means the scout is relaying the event directly from the stadium (max. latency 1 second)
  • from_low_latency_tv - means the scout is relaying the event from tv transmission (max. latency 3 seconds)
  • from_tv - means the scout is relaying the event from tv transmission (max. latency 8 seconds)
  • basic - for this type of coverage we don't provide detailed events incidents (max. latency around 60 seconds)
status_idUnique identifier of the event status. softnetSPORT API provides the following statuses: statuses.index
sport_idIdentifier of the sport which the event is played. softnetSPORT API provides the following sports: sports.index
dayDay of the season
neutral_venue

Determines if event is played at a neutral venue. Possible values:

  • yes
  • no
item_status

Describes status of the item (record). Possible values:

  • active - the record is active
  • deleted - the record was deleted by the admin. In case when event was added by mistake
clock_timeNumber of seconds passed in the current period
clock_status

Clock status. Possible value:

  • running - the clock is in the running mode
  • stopped - the clock is in the stopped mode
area_idIdentifier for the area in which competitions are played
competition_idUnique identifier for the competition. softnetSPORT API provides the following competitions: competitions.index
season_idUnique identifier for the season.
stage_idUnique identifier for the stage
tour_idUnique identifier for the tour in which competition is played. softnetSPORT API provides the following tours: tours.index
gender

Competition gender. Possible values:

  • male
  • female
  • mixed
bet_status

Bet status. Possible values:

  • active
  • suspended
.....details 
idUnique identifier for the detail. Possible values are different depending on the sport. For more information please find node details in the sports.show: sports.show
valueValue related to the detail
.....participants 
counterNumber of participans in the event. Participant with counter="1" is the home team, "2" is the away team
idUnique identifier of the participant. softnetSPORT API provides the following subparticipants: participants.index
......results 
idUnique identifier for the result. Possible values are different depending on the sport. For more information please find node details in the sports.show: sports.show
valueValue related to the results
......statsThe stats node is filled only at the moment when some changes were made in this node. This nodes are always returned, but sometimes can include an empty array.
idUnique identifier for the statistic. Possible values are different depending on the sport. For more information please find node details in the sports.show: sports.show
valueValue related to the statistic
  • No labels