NAV
bash javascript

Totobrief API

Welcome to Totobrief API. Get Postman Collection

Drawings

Доступные названия тиражей

Example request:

curl -X GET \
    -G "https://totobrief.com/api/v1/community/supported-drawings" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://totobrief.com/api/v1/community/supported-drawings"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    "fonbet-main",
    "baltbet-main",
    "betcity-main",
    "marathonbet-main",
    "xbet-main"
]

HTTP Request

GET api/v1/community/supported-drawings

Список тиражей по имени

Example request:

curl -X GET \
    -G "https://totobrief.com/api/v1/community/baltbet-main/drawings?page=2" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://totobrief.com/api/v1/community/baltbet-main/drawings"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": [
        {
            "id": 202,
            "name": "baltbet-main",
            "number": 2759,
            "status": "finished",
            "ended_at": "2020-07-06T16:00:00.000000Z",
            "jackpot": 6689579,
            "pool_sum": 1352239,
            "payments": null
        },
        {
            "id": 251,
            "name": "baltbet-main",
            "number": 2808,
            "status": "finished",
            "ended_at": "2020-08-26T15:30:00.000000Z",
            "jackpot": 3228252,
            "pool_sum": 1919420,
            "payments": null
        }
    ],
    "links": {
        "first": "http:\/\/localhost\/api\/v1\/community\/baltbet-main\/drawings?page=1",
        "last": "http:\/\/localhost\/api\/v1\/community\/baltbet-main\/drawings?page=4",
        "prev": null,
        "next": "http:\/\/localhost\/api\/v1\/community\/baltbet-main\/drawings?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 4,
        "path": "http:\/\/localhost\/api\/v1\/community\/baltbet-main\/drawings",
        "per_page": 50,
        "to": 50,
        "total": 200
    }
}

HTTP Request

GET api/v1/community/{name}/drawings

URL Parameters

Parameter Status Description
name required The ID of the post.

Данные тиража

Метод служит для получения подробных данные тиража.

События тиража и их свойства содержаться в структуре data->events

Свойство number является номером тиража в конторе

Example request:

curl -X GET \
    -G "https://totobrief.com/api/v1/community/drawing-info/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://totobrief.com/api/v1/community/drawing-info/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "name": "xbet-main",
        "number": 2128,
        "status": "finished",
        "ended_at": "2020-07-07T15:30:00.000000Z",
        "jackpot": 86256357,
        "pool_sum": 15825475,
        "payments": null,
        "events": [
            {
                "id": 1,
                "name": "Мирандес - Эльче",
                "name_en": null,
                "championship": "Чемпионат Испании. Второй дивизион",
                "order": 0,
                "start_at": "2020-07-07T17:30:00.000000Z",
                "result": "1",
                "score": "1:0",
                "quotes": {
                    "pool_win_1": 40.9,
                    "pool_draw": 29.33,
                    "pool_win_2": 29.77,
                    "bk_win_1": 42,
                    "bk_draw": 30,
                    "bk_win_2": 28,
                    "norm_win_1": null,
                    "norm_draw": null,
                    "norm_win_2": null
                }
            },
            {
                "id": 14,
                "name": "Арсенал Тула - Крылья Советов",
                "name_en": null,
                "championship": "Чемпионат России. Премьер-лига",
                "order": 13,
                "start_at": "2020-07-07T17:30:00.000000Z",
                "result": "2",
                "score": "2:4",
                "quotes": {
                    "pool_win_1": 50.45,
                    "pool_draw": 27.35,
                    "pool_win_2": 22.2,
                    "bk_win_1": 50,
                    "bk_draw": 25,
                    "bk_win_2": 25,
                    "norm_win_1": null,
                    "norm_draw": null,
                    "norm_win_2": null
                }
            },
            {
                "id": 15,
                "name": "КуПС - Интер Турку",
                "name_en": null,
                "championship": "Чемпионат Финляндии. Высшая лига",
                "order": 14,
                "start_at": "2020-07-07T15:30:00.000000Z",
                "result": "1",
                "score": "1:0",
                "quotes": {
                    "pool_win_1": 60.06,
                    "pool_draw": 18.02,
                    "pool_win_2": 21.92,
                    "bk_win_1": 50,
                    "bk_draw": 24,
                    "bk_win_2": 26,
                    "norm_win_1": null,
                    "norm_draw": null,
                    "norm_win_2": null
                }
            }
        ]
    },
    "version": "1.0"
}

HTTP Request

GET api/v1/community/drawing-info/{id}