sports.show

sports.show

Resource information

URL

https://api.statscore.com/v2/sports/{sport_id}

Method

GET

Description

Returns information including statuses, result types, details and statistics available for the requested sport 

Cache

60 seconds

Authorization required

Yes

Method parameters

Name

Type

Description

Name

Type

Description

sport_id

xsd:int

REQUIRED. The requested sport identifier

Query parameters

Name

Type

Description

Name

Type

Description

token

xsd:string

REQUIRED. More information concerning authorization in API introduction section

lang

xsd:string

Determines language for the output data 

Method calling examples

Link

Description

Link

Description

https://api.statscore.com/v2/sports/5?token={{YOUR_TOKEN}}

Returns detailed data for the selected sport in JSON format

Output elements

sport

sport

id

Unique identifier for the sport

ls_id

For internal purposes

name

Name of the sport

url

Name which is used in url address in  API

active

Sport status which means if the sport is supported or not supported in API. Possible values:

  • yes - sport is supported

  • no - sport will be supported in the near future

has_timer

Defines if sport use timer.
Possible values:

  • yes

  • no

participant_quantity

Show information about events participants quantity in sport. Possible values:

  • 2

  • more

template

Internal attribute.

Possible values:

  • default

  • fixed_incidents

incidents_positions

Defines if sport uses incidents positions.
Possible values:

  • yes

  • no

sub_sports

Information about sub-sports within the given sport. Available only for Athletics and Winter Sports

ut

Information about the date and time of when the record was last updated. Format UNIX_TIMESTAMP

sport > statuses

sport > statuses > status

id

Unique identifier for the status

name

Name of the status

short_name

Abbreviated name of the status. Max 10 characters

type

Type of the status. Possible values:

  • live

  • scheduled

  • finished

  • cancelled

  • interrupted

  • deleted

  • other

ut

Information about the date and time of when the record was last updated. Format UNIX_TIMESTAMP

sport > results

sport > results > result

id

Unique identifier for the result

short_name

Abbreviated name of the result.

name

Name of the result available in all events for the selected sport

code

Attribute for internal purpose

type

Defines type of the result. Possible values:

  • team,

  • person,

  • team_and_person

data_type

Defines type of field generated on front (internal purpose only)

  • integer

  • decimal

  • binary_text

  • binary

  • text

  • signed_integer

sport > stats

sport > stats > team

sport > stats > team > stat

id

Unique identifier for the stat

short_name

Abbreviated name of the statistic.

name

Name of the stats available for teams in the selected sport

code

Attribute for internal purpose

data_type

Defines type of field generated on front (internal purpose only)

  • integer

  • decimal

  • binary_text

  • binary

  • text

  • signed_integer

sport > stats > person

sport > stats > person > stat

id

Unique identifier for the stat

short_name

Abbreviated name of the statistic.

name

Name of the stats available for individuals in the selected sport

code

Attribute for internal purpose

data_type

Defines type of field generated on front (internal purpose only)

  • integer

  • decimal

  • binary_text

  • binary

  • text

  • signed_integer

sport > details

sport > details > detail

id

Unique identifier for the detail

name

Name of the detail available in all events for the selected sport

code

Attribute for internal purpose

data_type

Defines type of field generated on front (internal purpose only)

  • integer

  • decimal

  • binary_text

  • binary

  • text

  • signed_integer

is_season_detail

For internal purposes

description

Description note of detail

input

Input name e.g. select/input etc

type

Type attribute of input

related_statuses

Statuses related to detail

format

Input format e.g. for date: "Y-m-d H:i:s"

nullable

Determines if input can be sended with null value

default

Determines default value

sport > details > detail > possible_values

sport > details > detail > possible_values > possible_value

key

Label of value

value

Possible value

sport > incidents

sport > incidents > incident

id

Unique identifier for the incident

name

Name of the incident available in all events for the selected sport

important

Determines if the incident is important e.g. goals, cards, substitutions. Possible values:

  • yes

  • no

important_for_trader

Determines if incident is important for traders. Possible values:

  • yes - incident is important for trader

  • no - incident isn't important for trader

sport_id

Unique identifier for the sport in which a event is played. The complete list of possible sports can be retrieved using the API resource: sports.index

type

Type of incident. Possible values:

  • team

  • event

group

A group which incident belongs to.

category

Incident category. Possible value:

  • standard

  • emergency

ut

Information about the date and time of when the record was last updated. Format UNIX_TIMESTAMP

code

Attribute for internal purpose

for

Determine what the participant includes incident

  • all

  • own

  • rival

  • none

game_break

Attribute for internal purpose

sport > incidents > incident

sport > incidents > incident > attributes

ids

Unique identifier for the attribute

name

Name of the attribute

short_name

Short name of the attribute

sort_order



sport > standings_types

sport > standings_types > standings_type

id

Unique identifier for the standings type

name

Name of the standing type

ut

Information about the date and time of when the record was last updated. Format UNIX_TIMESTAMP

sport > standings_types > standings_type > columns

sport > standings_types > standings_type > columns > column

id

Unique identifier for the column

name

Name of the column

short_name

Abbreviated name of the column

code

Attribute for an internal purpose

sport > venues_details

sport > venues_details > detail

id

Unique identifier for the venue detail

name

Name of the venue detail

description

Description of the venue detail

sport > formations

 

List of formations used in the events (available only for the Soccer)