Retrieve the markets and selections

To retrieve market and selection information in an event, you can make a GET request to the following endpoint:

Endpoint

GET /event/[event_id]/ CURL example

curl -X GET https://betmatic.app/api/event/13322/ \
  -H 'Accept: application/json' \
  -H 'Authorization: Token {token}'

This will return a list of future events with details such as their names and their start time. You can use this information when creating notifications.

Responses

Status
Meaning
Description
Schema

200

Success

See below

200 Response example

{
    "id": 13322,
    "scompetition": {
        "created_at": "2023-02-11T23:40:02+11:00",
        "description": "Australian Rules",
        "enabled": true,
        "title": "AFL"
    },
    "markets": [
        {
            "id": 50784,
            "selections": [
                {
                    "id": 434974,
                    "title": "SYDNEY",
                    "price": 0.0,
                    "handicap": 0.0,
                    "margin_number": null,
                    "market": 50784
                },
                {
                    "id": 434975,
                    "title": "WESTERN BULLDOGS",
                    "price": 0.0,
                    "handicap": 0.0,
                    "margin_number": null,
                    "market": 50784
                }
            ],
            "title": "HEAD TO HEAD",
            "event": 13322
        }       
    ],
    "title": "SYDNEY V WESTERN BULLDOGS",
    "startTime": "2023-07-13T19:20:00+10:00",
    "status": "ACTIVE",
    "created_at": "2023-07-09T01:36:21.736229+10:00",
    "participant1": "SYDNEY SWANS",
    "participant2": "WESTERN BULLDOGS",
    "sports": "AFL",
    "bookie": 25
}

Response Schema

Status Code 200

Name
Type
Description

id

integer

Event id used in this system.

title

string

The name of the event

sports

string

Sports should be one of the following options: AFL, NBA, American Football, Baseball, Basketball, Boxing, Cricket, Darts, Handball, Ice Hockey, Rugby League, Rugby Union, Soccer, Tennis, or Volleyball.

startTime

string

Start Time of an event.

status

string

Status of an event.

participant1

string

Team Name

participant2

string

Team Name

markets

Markets

Market Informations

Last updated