👼Making your first request

Now that all prerequisites have been fulfilled, we’re ready to send our first request to the API!

Build the request

The request is builded by

  • base url

  • path parameter

  • api token

Base URL

The full url for starting with Providers ODDS API:

https://enterprise.sportsanalytics.com.br/v1/markets

Before you start, make sure that you have the api token

First Request

In the example below, we are making a request on the markets for provider endpoint.

curl "https://enterprise.sportsanalytics.com.br/v1/markets/market/provider/48954843?api_key=SEU_TOKEN"
Response
{
    "data": [
        {
            "eventId": "48954843",
            "marketType": "MATCH_ODDS",
            "provider": "estrelabet",
            "createdAt": "2023-07-06T19:43:18.207Z",
            "marketId": "7988",
            "marketMoment": "live",
            "marketStatus": "OPEN",
            "name": "Resultado",
            "runners": [
                {
                    "name": "Casa - AD Guarulhos SP U23",
                    "price": 97.05,
                    "runnerId": "1231747"
                },
                {
                    "name": "Empate",
                    "price": 7.52,
                    "runnerId": "1231761"
                },
                {
                    "name": "Fora - Independente SP U23",
                    "price": 1.07,
                    "runnerId": "1231765"
                }
            ],
            "updatedAt": "2023-07-06T19:43:18.207Z",
            "deepLink": "https://estrelabet.com/ptb/bet/live/detail/48954843"
        },
        {
            "eventId": "48954843",
            "marketType": "OVER_UNDER",
            "provider": "estrelabet",
            "createdAt": "2023-07-06T19:43:18.221Z",
            "marketId": "7689",
            "marketMoment": "live",
            "marketStatus": "OPEN",
            "name": "Total Gols",
            "runners": [
                {
                    "name": "Total - Mais de 3.5",
                    "price": 3.05,
                    "runnerId": "1231453"
                },
                {
                    "name": "Total - Menos de 3.5",
                    "price": 1.33,
                    "runnerId": "1231455"
                }
            ],
            "updatedAt": "2023-07-06T19:43:18.221Z",
            "deepLink": "https://estrelabet.com/ptb/bet/live/detail/48954843"
        }
    ],
    "meta": {
        "page": 1,
        "take": 10,
        "itemCount": 2,
        "pageCount": 1,
        "hasPreviousPage": false,
        "hasNextPage": false
    }
}

Last updated