-
Notifications
You must be signed in to change notification settings - Fork 1
Get Internal Events (API v4)
abler98 edited this page Mar 15, 2023
·
3 revisions
- Send REST request to the following endpoint:
-
Prematch data:
https://api-pr.oddsmarket.org/v4/internal_events/{eventIds}
-
Live data:
https://api-lv.oddsmarket.org/v4/internal_events/{eventIds}
where
{eventIds}
is a comma-separated list of IDs
EventId value should be taken from the BookmakerEvent.eventId field from the websocket feed.
- Get an array of Event objects as a response.
Query example:
https://api-pr.oddsmarket.org/v4/internal_events/41322029,373768726,373761742
Response example:
[
{
"id": 41322029,
"name": "UCAM Murcia - CAI Zaragoza",
"homeId": 23131,
"awayId": 343225,
"sportId": 2,
"leagueId": 4729,
"startDatetime": 1652553900000
},
...
]
Name | Description | Type | Example |
---|---|---|---|
id | Internal ID of a sports event in our system | BIGINT | 41322029 |
name | Internal name of a sports event in our system | VARCHAR | UCAM Murcia - CAI Zaragoza |
homeId | Internal ID of home team in our system | INT | 23131 |
awayId | Internal ID of away team in our system | INT | 343225 |
sportId | Sport ID | SHORTINT | 2 |
leagueId | Internal league ID in our system | INT | 4729 |
startDatetime | Planned date/time of match start | BIGINT (milliseconds from epoch) | 1652553900000 |
This section describes API v4.
If you are using API v3 go to API v3 documentation root page.