Odds Api
API TOOLS /v2/
Competitions
Params:
sport_id required
name = optionel
country = optionel
Competitions/
Params:
id required
Competitions/{id}
idée de sorti :
Competitions/?page=2 : [
{},
{},
]
Competiton::with('events')->paginate(10)
Competition/7 :
{
id: 7,
name: "",
short_name: "",
season: null,
season: [
Season order by desc
{
"start_time": "1652659200",
"end_time": "1654473599",
},
{
"start_time": "1652659200",
"end_time": "1654473599",
},
]
table: []
}
- Params
- From
- To
- Page
- team_name
- competitions_ids
- status
- event_id
- season=2017
Events/
Events?competition_ids=7&status=inplay&event_id=23456éseason=2018
default max(season) 2021
Event/{id}
(data: enetpulse)
Teams/ ?page=2
Players/ ?page=2&team_id=143
Events/
page : 1
total: 1020
per_page: 100
data: [{},{},]
Event/id : {
"id": 203821,
"time": "2022-06-29 14:20:00",
"timestamp": 1656505200,
"competition": {
"id": 5771,
"name": "Wimbledon Women",
"short_name": null
},
"head_to_head_history": [
5 match
],
"home_history": [
5 match
],
"away_history": [
5 match
],
"odds": [
],
"score": "1-0",
"status": "Finished",
"extra": {
"home_pos": "146",
"away_pos": "94",
"bestofsets": "3",
"stadium_data": {
"id": "1856",
"name": "Court 12",
"city": "London",
"country": "England",
"capacity": null,
"googlecoords": null
},
"round": "R128",
"ground": "Grass"
},
"teams": [
{
"id": 16982,
"name": "Rebeka Masarova",
"country": "es",
"image_id": 0,
"sport": "Tennis",
"status": "home"
"coach": "kglskgs",
},
{
"id": 17035,
"name": "Harriet Dart",
"country": "gb",
"image_id": 0,
"sport": "Tennis",
"status": "away"
}
],
"incidents" : [
{
"id" : "89098",
"name" : "
}
]
}