NAV
bash javascript

API TotoBrief

Welcome to the API TotoBrief

Поддержка: [email protected]

Фонбет

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

Возвращает список тиражей Фонбет

status=0 тираж рассчитан, status=1 в игре, status=2 идет прием

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

Example request:

curl -X GET -G "https://totobrief.ru/api/v1/fonbet/drawings?page=1" 
const url = new URL("https://totobrief.ru/api/v1/fonbet/drawings");

    let params = {
            "page": "1",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

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

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

Example response (200):

{
    "data": [
        {
            "id": 245,
            "totoId": 306,
            "status": 2,
            "ended": "2019-10-08T18:00:00.000000Z",
            "jackpot": 1500000,
            "poolSum": 104262
        },
        {
            "id": 244,
            "totoId": 305,
            "status": 1,
            "ended": "2019-10-07T15:00:00.000000Z",
            "jackpot": 9924275,
            "poolSum": 12080870
        }
    ],
    "links": {
        "first": "http:\/\/localhost\/api\/v1\/fonbet\/drawings?page=1",
        "last": "http:\/\/localhost\/api\/v1\/fonbet\/drawings?page=123",
        "prev": null,
        "next": "http:\/\/localhost\/api\/v1\/fonbet\/drawings?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 123,
        "path": "http:\/\/localhost\/api\/v1\/fonbet\/drawings",
        "per_page": 2,
        "to": 2,
        "total": 245
    }
}

HTTP Request

GET api/v1/fonbet/drawings

Query Parameters

Parameter Status Description
page optional The page number.

Данные тиража Фонбет

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

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

Для получения {id} нужного вам тиража используйте метод api/v1/fonbet/drawings

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

Example request:

curl -X GET -G "https://totobrief.ru/api/v1/fonbet/drawing/243" 
const url = new URL("https://totobrief.ru/api/v1/fonbet/drawing/243");

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

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

Example response (200):

{
    "data": {
        "id": 243,
        "totoId": 304,
        "status": 0,
        "ended": "2019-10-06 14:30:00",
        "jackpot": 7333859,
        "poolSum": 14391192,
        "complexity": 8.9199999999999999289457264239899814128875732421875,
        "couponCount": 156545,
        "stakeCount": 281860,
        "optionCount": 247262,
        "prizeMoney": 12952073,
        "pJackpot": 0.040536749800000000665267663180202362127602100372314453125,
        "p14": 0.669249297899999984196028890437446534633636474609375,
        "pAllFavorites": 2.38140000000000018806341033072992985353266703896224498748779296875e-6,
        "pTop1K": 0.001199985800000000039922110062207138980738818645477294921875,
        "pTop5K": 0.00450060830000000022810269229012192226946353912353515625,
        "pTop20K": 0.01220406299999999936989336646320225554518401622772216796875,
        "maxPrize": 1355818.0550441280938684940338134765625,
        "created_at": "2019-10-05 18:15:02",
        "updated_at": "2019-10-07 02:30:02",
        "K_15": 0,
        "K_14": 0,
        "K_13": 25904.139999999999417923390865325927734375,
        "K_12": 1025.910000000000081854523159563541412353515625,
        "K_11": 125.2900000000000062527760746888816356658935546875,
        "K_10": 41.969999999999998863131622783839702606201171875,
        "K_9": 19.050000000000000710542735760100185871124267578125,
        "K_8": 0,
        "events": [
            {
                "id": 19175,
                "name": "Сельта - Атлетик Бильбао",
                "name_en": "Celta Vigo - Athletic Bilbao",
                "championships": "Футбол. Испания. Премьер-Лига",
                "order": 0,
                "date": "2019-10-06 15:00:00",
                "idEvent": 51181,
                "resultCode": "1",
                "score": "1:0",
                "win1Pool": 35.659999999999996589394868351519107818603515625,
                "win1Bk": 41,
                "drawPool": 30.660000000000000142108547152020037174224853515625,
                "drawBk": 31,
                "win2Pool": 33.67999999999999971578290569595992565155029296875,
                "win2Bk": 28,
                "win1Norm": 2.37999999999999989341858963598497211933135986328125,
                "drawNorm": 3.109999999999999875655021241982467472553253173828125,
                "win2Norm": 3.479999999999999982236431605997495353221893310546875,
                "id_stat": 515238,
                "created_at": "2019-10-05 18:15:02",
                "updated_at": "2019-10-07 02:30:02",
                "name_norm": "Celta Vigo - Ath Bilbao",
                "date_norm": "2019-10-06 15:00:00",
                "link": "soccer\/spain\/laliga\/celta-vigo-ath-bilbao-2eugzTjq"
            },
            {
                "id": 19176,
                "name": "Айнтрахт Франкфурт - Вердер",
                "name_en": "Eintracht Frankfurt - Werder Bremen",
                "championships": "Футбол. Германия. Бундеслига",
                "order": 1,
                "date": "2019-10-06 19:00:00",
                "idEvent": 51182,
                "resultCode": "X",
                "score": "2:2",
                "win1Pool": 53.2999999999999971578290569595992565155029296875,
                "win1Bk": 45,
                "drawPool": 22.35000000000000142108547152020037174224853515625,
                "drawBk": 26,
                "win2Pool": 24.35000000000000142108547152020037174224853515625,
                "win2Bk": 29,
                "win1Norm": 2.1699999999999999289457264239899814128875732421875,
                "drawNorm": 3.689999999999999946709294817992486059665679931640625,
                "win2Norm": 3.350000000000000088817841970012523233890533447265625,
                "id_stat": 513353,
                "created_at": "2019-10-05 18:15:02",
                "updated_at": "2019-10-07 02:30:02",
                "name_norm": "Eintracht Frankfurt - Werder Bremen",
                "date_norm": "2019-10-06 19:00:00",
                "link": "soccer\/germany\/bundesliga\/eintracht-frankfurt-werder-bremen-rP7gnqAf"
            },
            {
                "id": 19177,
                "name": "Хайденхайм - Бохум",
                "name_en": "Heidenheim - Vfl Bochum",
                "championships": "Футбол. Германия. Бундеслига-2",
                "order": 2,
                "date": "2019-10-06 14:30:00",
                "idEvent": 51183,
                "resultCode": "2",
                "score": "2:3",
                "win1Pool": 51.409999999999996589394868351519107818603515625,
                "win1Bk": 45,
                "drawPool": 22.6400000000000005684341886080801486968994140625,
                "drawBk": 27,
                "win2Pool": 25.949999999999999289457264239899814128875732421875,
                "win2Bk": 28,
                "win1Norm": 2.229999999999999982236431605997495353221893310546875,
                "drawNorm": 3.54000000000000003552713678800500929355621337890625,
                "win2Norm": 3.29000000000000003552713678800500929355621337890625,
                "id_stat": 514060,
                "created_at": "2019-10-05 18:15:02",
                "updated_at": "2019-10-07 02:30:02",
                "name_norm": "Heidenheim - Bochum",
                "date_norm": "2019-10-06 14:30:00",
                "link": "soccer\/germany\/2-bundesliga\/heidenheim-bochum-lfzxEl5s"
            },
            {
                "id": 19178,
                "name": "Нюрнберг - Ст. Паули",
                "name_en": "FC Nurnberg - FC St. Pauli",
                "championships": "Футбол. Германия. Бундеслига-2",
                "order": 3,
                "date": "2019-10-06 14:30:00",
                "idEvent": 51184,
                "resultCode": "X",
                "score": "1:1",
                "win1Pool": 52.10000000000000142108547152020037174224853515625,
                "win1Bk": 48,
                "drawPool": 25.300000000000000710542735760100185871124267578125,
                "drawBk": 26,
                "win2Pool": 22.6099999999999994315658113919198513031005859375,
                "win2Bk": 26,
                "win1Norm": 2.0800000000000000710542735760100185871124267578125,
                "drawNorm": 3.75,
                "win2Norm": 3.479999999999999982236431605997495353221893310546875,
                "id_stat": 514058,
                "created_at": "2019-10-05 18:15:02",
                "updated_at": "2019-10-07 02:30:02",
                "name_norm": "Nurnberg - St. Pauli",
                "date_norm": "2019-10-06 14:30:00",
                "link": "soccer\/germany\/2-bundesliga\/nurnberg-st-pauli-IBq6JAsK"
            },
            {
                "id": 19179,
                "name": "Болонья - Лацио",
                "name_en": "Bologna - Lazio",
                "championships": "Футбол. Италия. Серия А",
                "order": 4,
                "date": "2019-10-06 16:00:00",
                "idEvent": 51185,
                "resultCode": "X",
                "score": "2:2",
                "win1Pool": 20.8900000000000005684341886080801486968994140625,
                "win1Bk": 28,
                "drawPool": 23.10000000000000142108547152020037174224853515625,
                "drawBk": 25,
                "win2Pool": 56,
                "win2Bk": 47,
                "win1Norm": 3.4900000000000002131628207280300557613372802734375,
                "drawNorm": 3.70999999999999996447286321199499070644378662109375,
                "win2Norm": 2.109999999999999875655021241982467472553253173828125,
                "id_stat": 525718,
                "created_at": "2019-10-05 18:15:02",
                "updated_at": "2019-10-07 02:30:02",
                "name_norm": "Bologna - Lazio",
                "date_norm": "2019-10-06 16:00:00",
                "link": "soccer\/italy\/serie-a\/bologna-lazio-S8ctZNXB"
            },
            {
                "id": 19180,
                "name": "Интер Милан - Ювентус",
                "name_en": "Internazionale Milano - Juventus",
                "championships": "Футбол. Италия. Серия А",
                "order": 5,
                "date": "2019-10-06 21:45:00",
                "idEvent": 51186,
                "resultCode": "2",
                "score": "1:2",
                "win1Pool": 30.53999999999999914734871708787977695465087890625,
                "win1Bk": 37,
                "drawPool": 33.38000000000000255795384873636066913604736328125,
                "drawBk": 30,
                "win2Pool": 36.0799999999999982946974341757595539093017578125,
                "win2Bk": 33,
                "win1Norm": 2.660000000000000142108547152020037174224853515625,
                "drawNorm": 3.189999999999999946709294817992486059665679931640625,
                "win2Norm": 2.930000000000000159872115546022541821002960205078125,
                "id_stat": 525726,
                "created_at": "2019-10-05 18:15:02",
                "updated_at": "2019-10-07 02:30:02",
                "name_norm": "Inter - Juventus",
                "date_norm": "2019-10-06 21:45:00",
                "link": "soccer\/italy\/serie-a\/inter-juventus-IwQ2jP2n"
            },
            {
                "id": 19181,
                "name": "Ренн - Реймс",
                "name_en": "Rennes - Reims",
                "championships": "Футбол. Франция. Премьер-Лига",
                "order": 6,
                "date": "2019-10-06 18:00:00",
                "idEvent": 51187,
                "resultCode": "2",
                "score": "0:1",
                "win1Pool": 51.10000000000000142108547152020037174224853515625,
                "win1Bk": 44,
                "drawPool": 27.809999999999998721023075631819665431976318359375,
                "drawBk": 31,
                "win2Pool": 21.089999999999999857891452847979962825775146484375,
                "win2Bk": 25,
                "win1Norm": 2.310000000000000053290705182007513940334320068359375,
                "drawNorm": 3.12000000000000010658141036401502788066864013671875,
                "win2Norm": 3.62000000000000010658141036401502788066864013671875,
                "id_stat": 505456,
                "created_at": "2019-10-05 18:15:02",
                "updated_at": "2019-10-07 02:30:02",
                "name_norm": "Rennes - Reims",
                "date_norm": "2019-10-06 18:00:00",
                "link": "soccer\/france\/ligue-1\/rennes-reims-8ng4HyTC"
            },
            {
                "id": 19182,
                "name": "Сент-Этьен - Лион",
                "name_en": "St Etienne - Lyon",
                "championships": "Футбол. Франция. Премьер-Лига",
                "order": 7,
                "date": "2019-10-06 22:00:00",
                "idEvent": 51188,
                "resultCode": "1",
                "score": "1:0",
                "win1Pool": 18.53999999999999914734871708787977695465087890625,
                "win1Bk": 28,
                "drawPool": 24.03999999999999914734871708787977695465087890625,
                "drawBk": 26,
                "win2Pool": 57.4200000000000017053025658242404460906982421875,
                "win2Bk": 46,
                "win1Norm": 3.79000000000000003552713678800500929355621337890625,
                "drawNorm": 3.600000000000000088817841970012523233890533447265625,
                "win2Norm": 2.04999999999999982236431605997495353221893310546875,
                "id_stat": 505448,
                "created_at": "2019-10-05 18:15:02",
                "updated_at": "2019-10-07 02:30:02",
                "name_norm": "St Etienne - Lyon",
                "date_norm": "2019-10-06 22:00:00",
                "link": "soccer\/france\/ligue-1\/st-etienne-lyon-MkJwWzr6"
            },
            {
                "id": 19183,
                "name": "Аустрия Вена - Штурм Грац",
                "name_en": "Austria Vienna - Sturm Graz",
                "championships": "Футбол. Австрия. Бундеслига",
                "order": 8,
                "date": "2019-10-06 18:00:00",
                "idEvent": 51189,
                "resultCode": "1",
                "score": "1:0",
                "win1Pool": 37.28999999999999914734871708787977695465087890625,
                "win1Bk": 33,
                "drawPool": 24.190000000000001278976924368180334568023681640625,
                "drawBk": 26,
                "win2Pool": 38.52000000000000312638803734444081783294677734375,
                "win2Bk": 41,
                "win1Norm": 2.729999999999999982236431605997495353221893310546875,
                "drawNorm": 3.6699999999999999289457264239899814128875732421875,
                "win2Norm": 2.53000000000000024868995751603506505489349365234375,
                "id_stat": 515665,
                "created_at": "2019-10-05 18:15:02",
                "updated_at": "2019-10-07 02:30:02",
                "name_norm": "Austria Vienna - Sturm Graz",
                "date_norm": "2019-10-06 18:00:00",
                "link": "soccer\/austria\/tipico-bundesliga\/austria-vienna-sturm-graz-OMJcWGqE"
            },
            {
                "id": 19184,
                "name": "Антверпен - Стандард Льеж",
                "name_en": "Antwerp - Standard Liege",
                "championships": "Футбол. Бельгия. Премьер-Лига",
                "order": 9,
                "date": "2019-10-06 19:00:00",
                "idEvent": 51190,
                "resultCode": "X",
                "score": "2:2",
                "win1Pool": 48.32000000000000028421709430404007434844970703125,
                "win1Bk": 45,
                "drawPool": 24.010000000000001563194018672220408916473388671875,
                "drawBk": 27,
                "win2Pool": 27.67999999999999971578290569595992565155029296875,
                "win2Bk": 28,
                "win1Norm": 2.029999999999999804600747665972448885440826416015625,
                "drawNorm": 3.9199999999999999289457264239899814128875732421875,
                "win2Norm": 3.4900000000000002131628207280300557613372802734375,
                "id_stat": 515994,
                "created_at": "2019-10-05 18:15:02",
                "updated_at": "2019-10-07 02:30:02",
                "name_norm": "Antwerp - St. Liege",
                "date_norm": "2019-10-06 19:00:00",
                "link": "soccer\/belgium\/jupiler-league\/antwerp-st-liege-MaSIODxi"
            },
            {
                "id": 19185,
                "name": "Рандерс - Орхус",
                "name_en": "Randers - Aarhus AGF",
                "championships": "Футбол. Дания. Суперлига",
                "order": 10,
                "date": "2019-10-06 17:00:00",
                "idEvent": 51191,
                "resultCode": "1",
                "score": "2:0",
                "win1Pool": 37.39999999999999857891452847979962825775146484375,
                "win1Bk": 34,
                "drawPool": 30.64999999999999857891452847979962825775146484375,
                "drawBk": 28,
                "win2Pool": 31.96000000000000085265128291212022304534912109375,
                "win2Bk": 38,
                "win1Norm": 2.859999999999999875655021241982467472553253173828125,
                "drawNorm": 3.3300000000000000710542735760100185871124267578125,
                "win2Norm": 2.600000000000000088817841970012523233890533447265625,
                "id_stat": 506372,
                "created_at": "2019-10-05 18:15:02",
                "updated_at": "2019-10-07 02:30:02",
                "name_norm": "Randers FC - Aarhus",
                "date_norm": "2019-10-06 17:00:00",
                "link": "soccer\/denmark\/superliga\/randers-fc-aarhus-W000hjSE"
            },
            {
                "id": 19186,
                "name": "Ризеспор - Трабзонспор",
                "name_en": "Caykur Rizespor - Trabzonspor",
                "championships": "Футбол. Турция. Суперлига",
                "order": 11,
                "date": "2019-10-06 19:00:00",
                "idEvent": 51192,
                "resultCode": "2",
                "score": "1:2",
                "win1Pool": 26.6700000000000017053025658242404460906982421875,
                "win1Bk": 34,
                "drawPool": 25.620000000000000994759830064140260219573974609375,
                "drawBk": 27,
                "win2Pool": 47.71000000000000085265128291212022304534912109375,
                "win2Bk": 39,
                "win1Norm": 2.689999999999999946709294817992486059665679931640625,
                "drawNorm": 3.729999999999999982236431605997495353221893310546875,
                "win2Norm": 2.53000000000000024868995751603506505489349365234375,
                "id_stat": 527832,
                "created_at": "2019-10-05 18:15:02",
                "updated_at": "2019-10-07 02:30:02",
                "name_norm": "Rizespor - Trabzonspor",
                "date_norm": "2019-10-06 19:00:00",
                "link": "soccer\/turkey\/super-lig\/rizespor-trabzonspor-00UEshSq"
            },
            {
                "id": 19187,
                "name": "Лахти - Коккола ПВ",
                "name_en": "Lahti - KPV",
                "championships": "Футбол. Финляндия. Суперлига",
                "order": 12,
                "date": "2019-10-06 16:00:00",
                "idEvent": 51193,
                "resultCode": "2",
                "score": "1:4",
                "win1Pool": 54.28999999999999914734871708787977695465087890625,
                "win1Bk": 38,
                "drawPool": 23.629999999999999005240169935859739780426025390625,
                "drawBk": 29,
                "win2Pool": 22.0799999999999982946974341757595539093017578125,
                "win2Bk": 33,
                "win1Norm": 2.479999999999999982236431605997495353221893310546875,
                "drawNorm": 3.2599999999999997868371792719699442386627197265625,
                "win2Norm": 3.0800000000000000710542735760100185871124267578125,
                "id_stat": 530646,
                "created_at": "2019-10-05 18:15:02",
                "updated_at": "2019-10-07 02:30:02",
                "name_norm": "Lahti - KPV Kokkola",
                "date_norm": "2019-10-06 16:00:00",
                "link": "soccer\/finland\/veikkausliiga\/lahti-kpv-kokkola-QNiACf1i"
            },
            {
                "id": 19188,
                "name": "Юргорден - Хаммарбю",
                "name_en": "Djurgardens - Hammarby IF",
                "championships": "Футбол. Швеция. Премьер-Лига",
                "order": 13,
                "date": "2019-10-06 16:00:00",
                "idEvent": 51194,
                "resultCode": "2",
                "score": "1:2",
                "win1Pool": 48.17999999999999971578290569595992565155029296875,
                "win1Bk": 43,
                "drawPool": 25.699999999999999289457264239899814128875732421875,
                "drawBk": 26,
                "win2Pool": 26.120000000000000994759830064140260219573974609375,
                "win2Bk": 31,
                "win1Norm": 2.270000000000000017763568394002504646778106689453125,
                "drawNorm": 3.609999999999999875655021241982467472553253173828125,
                "win2Norm": 3.140000000000000124344978758017532527446746826171875,
                "id_stat": 491779,
                "created_at": "2019-10-05 18:15:02",
                "updated_at": "2019-10-07 02:30:02",
                "name_norm": "Djurgarden - Hammarby",
                "date_norm": "2019-10-06 16:00:00",
                "link": "soccer\/sweden\/allsvenskan\/djurgarden-hammarby-8CtieeUB"
            },
            {
                "id": 19189,
                "name": "Ботафого РЖ - Флуминенсе РЖ",
                "name_en": "Botafogo RJ - Fluminense RG",
                "championships": "Футбол. Бразилия. Серия А",
                "order": 14,
                "date": "2019-10-06 22:00:00",
                "idEvent": 51195,
                "resultCode": "2",
                "score": "0:1",
                "win1Pool": 38.2000000000000028421709430404007434844970703125,
                "win1Bk": 32,
                "drawPool": 30.6400000000000005684341886080801486968994140625,
                "drawBk": 30,
                "win2Pool": 31.160000000000000142108547152020037174224853515625,
                "win2Bk": 38,
                "win1Norm": 3.12000000000000010658141036401502788066864013671875,
                "drawNorm": 3.189999999999999946709294817992486059665679931640625,
                "win2Norm": 2.5,
                "id_stat": 502853,
                "created_at": "2019-10-05 18:15:02",
                "updated_at": "2019-10-07 02:30:02",
                "name_norm": "Botafogo RJ - Fluminense",
                "date_norm": "2019-10-06 22:00:00",
                "link": "soccer\/brazil\/serie-a\/botafogo-rj-fluminense-0tON7zkT"
            }
        ]
    },
    "version": "1.0"
}

HTTP Request

GET api/v1/fonbet/drawing/{id}