GET Type by Entity
Returns types which are available per entity
https://api.sportmonks.com/v3/core/types/entities{
"data": {
"CoachStatisticDetail": {
"updated_at": "2023-06-30T12:00:31.000000Z",
"types": [
{
"id": 59,
"name": "Substitutions",
"code": "substitutions",
"developer_name": "SUBSTITUTIONS",
"model_type": "statistic",
"stat_group": "overall"
},
{
"id": 83,
"name": "Redcards",
"code": "redcards",
"developer_name": "REDCARDS",
"model_type": "statistic",
"stat_group": "overall"
},
{
"id": 84,
"name": "Yellowcards",
"code": "yellowcards",
"developer_name": "YELLOWCARDS",
"model_type": "statistic",
"stat_group": "overall"
},Field
Description
Type
Parameters
Query Parameters
Required?
Description
Pagination
Include options
Code Example
require "uri"
require "net/http"
url = URI("https://api.sportmonks.com/v3/core/types/1?api_token={your_token}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
response = https.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.sportmonks.com")
payload = ''
headers = {}
conn.request("GET", "/v3/core/types/1?api_token={your_token}", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))Last updated
Was this helpful?