BETAPI Documentation - V.1 Line Integration
Integration Options Line Version (v1)
Dear users!
 We strongly recommend that you use API version 2.0. . 
Support for v 1.0 (this) version will be discontinued 05/01/2020
																				
									List of parameters for Line version (v1)
| Name | Description | 
|---|---|
| {HOST_LINE_API} | the receiving line host url | 
| {secretKey} | it is the package key, the key is issued by owners API. | 
| {dataType}  | it is a type of the line data. It can be live or line only | 
| {dataLang}  | it is the receiving language of the line. Languages are available in the system | 
| {dataApi}  | it is the receiving name of the method | 
| {sportId}  | it is sports id, numeric value | 
| {countryId}   | it is country id, numeric value | 
| {tourneyId}   | it is tournament id, numeric value | 
| {eventId}    | it is game id, numeric value | 
A structure of sending inquiry:
{HOST_LINE_API}/api/pkg:{secretKey}/{dataType}/{dataLang}/{dataApi} Bright example of url:
{HOST_LINE_API}/api/pkg:so76fd54dsb5j43jdvnt7/live/en/sports
	
	[{
		"ID": 705,
		"text": "Floorball"
		}, {
			"ID": 115,
			"text": "Gaelic soccer"
		}, {
			"ID": 163,
			"text": "Sumo"
		}, {
			"ID": 91,
			"text": "Trotting "
		}, {
			"ID": 2,
			"text": "Herling"
	}]
	
								| Name | Description | 
|---|---|
| ID | id sport | 
| text | the name of sport | 
A structure of sending inquiry:
{HOST_LINE_API}/api/pkg:{secretKey}/{dataType}/{dataLang}/{dataApi}/sport{sportId} Bright example of url:
{HOST_LINE_API}/api/pkg:so76fd54dsb5j43jdvnt7/line/en/countries/sport1
	
	[{
		"ID": 1253,
		"text": "USA "
		}, {
			"ID": 1620,
			"text": "Mexico "
		}, {
			"ID": 0185,
			"text": "Canada "
		}, {
			"ID": 1011,
			"text": "Turkey "
	}]
								| Parameter | Description | 
|---|---|
| ID | id country | 
| text | the name of country | 
A structure of sending inquiry:
{HOST_LINE_API}/api/pkg:{secretKey}/{dataType}/{dataLang}/{dataApi}/sport{sportId}/country{country Id} Bright example of url:
{HOST_LINE_API}/api/pkg:so76fd54dsb5j43jdvnt7/line/en/tournaments/sport1/country78
	
	[{
		"ID": 1355,
		"tourneyName": "KHL"
	}]
								| Parameter | Description | 
|---|---|
| ID | id tournament | 
| text | the name of tournament | 
A structure of sending inquiry:
{HOST_LINE_API}/api/pkg:{secretKey}/{dataType}/{dataLang}/{dataApi}/sport{sportId}/country{countryId}/tourney{tourneyID} Bright example of url:
{HOST_LINE_API}/api/pkg:so76fd54dsb5j43jdvnt7/line/en/events/sport1/country78/tourney127733
	
	{
		"ID": 220417334,
		"main_id": 220417334,
		"sportID": 1,
		"tourneyID": 127733,
		"num": 953,
		"teams": [
				"Osasuna",
				"Levante UD",
				""
			],
		"sportName": "Football",
		"tourneyName": "Spain. La Liga",
		"eventDate": 1579896000000,
		"coefs": [
			{
				"ID": "111",
				"betNameLong": "W1",
				"betNameShort": "W1",
				"ocGroupName": "1x2  ",
				"ocGroupID": 1,
				"rate": 1.97,
				"betslipInfo": [
					"line#220417334|1|1|0#1.97"
				],
			"betslipInfoFull": {
				"a1": null,
				"a2": null,
				"betId": "111",
				"big_bet_pointer": "line#220417334|1|1|0#1.97",
				"eventId": 220417334,
				"fs": 0,
				"isLive": false,
				"rate": 1.97
				},
			"updateStatus": 1579525606
			},
			{
				"ID": "112",
				"betNameLong": "X",
				"betNameShort": "X",
				"ocGroupName": "1x2  ",
				"ocGroupID": 1,
				"rate": 3.8,
				"betslipInfo": [
					"line#220417334|1|2|0#3.8"
				],
			"betslipInfoFull": {
				"a1": null,
				"a2": null,
				"betId": "112",
				"big_bet_pointer": "line#220417334|1|2|0#3.8",
				"eventId": 220417334,
				"fs": 0,
				"isLive": false,
				"rate": 3.8
				},
				"updateStatus": 1579525606
			},
		],
	"additionalBetsCount": 1101
},
								| Parameter | Description | 
|---|---|
| ID | id tournament | 
| text | the name of tournament | 
A structure of sending inquiry:
{HOST_LINE_API}/api/pkg:{secretKey}/{dataType}/{dataLang}/{dataApi}/{eventId} Bright example of url:
{HOST_LINE_API}/api/pkg:so76fd54dsb5j43jdvnt7/line/en/event/186227077
	
	{
    "teams": ["DzhokhorDarulTakzim", "Kyonnam", ""],
    "ID": 187167882,
    "num": 25652,
    "timestamp": 1552399129,
    "sportID": 1,
    "countryID": 0,
    "tourneyID": 24581,
    "tourneyName": "Champions League of AFK",
    "eventDate": 1552393800000,
    "comment": "",
    "coefGroups": [{
        "ID": "111",
        "ocGroupName": "1x2",
        "ocGroupID": 1,
        "block": false,
        "betrouteID": "111",
        "betNameShort": "P1",
        "betNameLong": "P1",
        "betslipInfo": ["live#187167882|1|1|0#8.2"],
        "betslipInfoFull": {
            "a1": null,
            "a2": null,
            "betId": "111",
            "big_bet_pointer": "live#187167882|1|1|0#8.2",
            "eventId": "187167882",
            "fs": 0,
            "isLive": true,
            "rate": 8.2
        },
        "rate": 8.2,
        "totalSize": 0
    }],
    "scores": "0 - 1",
    "pscores": {
        "P_1": {
            "SCORE_ONE": 0,
            "SCORE_TWO": 0
        },
        "P_2": {
            "SCORE_ONE": 0,
            "SCORE_TWO": 1
        }
    },
    "actplayer": 0,
    "opp1id": 4034,
    "opp2id": 3930,
    "time": 3260,
    "gym": null,
    "sinfo": [{
        "Key": "ICorner1",
        "Value": "5"
    }, {
        "Key": "IYellowCard1",
        "Value": "0"
    }, {
        "Key": "IRedCard1",
        "Value": "0"
    }, {
        "Key": "IPenalty1",
        "Value": "0"
    }, {
        "Key": "ISub1",
        "Value": "1"
    }, {
        "Key": "ShotsOn1",
        "Value": "4"
    }, {
        "Key": "ShotsOff1",
        "Value": "6"
    }, {
        "Key": "Attacks1",
        "Value": "63"
    }, {
        "Key": "DanAttacks1",
        "Value": "54"
    }, {
        "Key": "ICorner2",
        "Value": "4"
    }, {
        "Key": "IYellowCard2",
        "Value": "1"
    }, {
        "Key": "IRedCard2",
        "Value": "0"
    }, {
        "Key": "IPenalty2",
        "Value": "0"
    }, {
        "Key": "ISub2",
        "Value": "1"
    }, {
        "Key": "ShotsOn2",
        "Value": "2"
    }, {
        "Key": "ShotsOff2",
        "Value": "1"
    }, {
        "Key": "Attacks2",
        "Value": "64"
    }, {
        "Key": "DanAttacks2",
        "Value": "36"
    }, {
        "Key": "Stat",
        "Value": "63;54;45;4;6-64;36;55;2;1"
    }],
    "dinfo": []
}
								| Parameter | Description | 
|---|---|
| SCORE_ONE | score of the first team | 
| SCORE_TWO | >score of the second team | 
| actplayer | active player in games, in which there are submissions, is indicated oponentID | 
| opp1id | id of the first opponent | 
| opp2id | id of the second opponent | 
| time | time that has gone since the start of the game | 
| gym | game score(tennis) | 
| sinfo | additional statistics of a game | 
| IYellowCard1 | yellow cards of the first team | 
| IRedCard1 | red cards of the first team | 
| dinfo | additional information of the game, (guest hosts, team name.) | 
Structure of sending inquiry:
{HOST_LINE_API}/api/pkg:{secretKey}/{dataType}/{dataLang}/{dataApi}/sport{sportId}/tourney{tourneyID}/{eventId} Bright example of url:
{HOST_LINE_API}/api/pkg:so76fd54dsb5j43jdvnt7/line/en/extgames/sport1/tourney127733/186227077
	
	{
		"1": {
			"START": 1552398129,
			"ID": 186227078,
			"MAIN_ID": 186227077,
			"NUM": 168,
			"LIGA_ID": 127733,
			"OPP1_NAME": "Real Sociedad",
			"OPP2_NAME": "Levante UD",
			"OPP1_RUS": "Реал Сосьедад",
			"OPP2_RUS": "Леванте",
			"OPP1_ENG": "Real Sociedad",
			"OPP2_ENG": "Levante UD",
			"OPP1_ID": 0,
			"OPP2_ID": 0,
			"EXTENDET_NAME": "[The 1st Time ]"
		}
	}
									
	
	| Parameter | Description | 
|---|---|
| START | {startGame:int}, - start date of a match, in seconds | 
| ID | {gameId:int}, - id of the game | 
| MAIN_ID | {mainId:int} - id of the main game. It can be the same as “ID” | 
| NUM | {numberGame:int}, -game number | 
| LIGA_ID | {ligaId:int}, - id of the league | 
| OPP1_NAME | {opp1Name:string}", - name of the first team, current language | 
| OPP2_NAME | {opp2Name:string}", - name of the second team, current language | 
| OPP1_RUS | {opp1Name:string}", - name of the first team, Russian | 
| OPP2_RUS | {opp2Name:string}", - name of the second team, Russian | 
| OPP1_ENG | {opp1Name:string}", - name of the first team, English | 
| OPP2_ENG | {opp2Name:string}", - name of the second team, English | 
| OPP1_ID | {opp1Id:int}, - id of the first team | 
| OPP2_ID | {opp2Id:int} , - id of the second team | 
| EXTENDET_NAME | "[dopName:string]" - additional name of the match | 
 
						
					 Русский
 Русский