ODDS-API

FREEMIUM
By Arbitrage Bettors | Updated 3 days ago | Sports
Popularity

9.8 / 10

Latency

1,563ms

Service Level

100%

Health Check

100%

Back to All Discussions

Documentation

Rapid account: Swam H
SwamH
3 months ago

Is there any documentation or official website for this api. I want to make sure which query params i can pass.

Rapid account: Philippschenk 2000
philippschenk2000 Commented 3 months ago

These are the different bettypes by sport for now: They either are 2way or 3waY bettypes.

if sports == 'soccer':
    bettypes = [['home', 'draw', 'away'], ['b_score_y', 'b_score_n'], ['total_over_05', 'total_under_05'],
                ['total_over_15', 'total_under_15'], ['total_over_25', 'total_under_25'], ['total_over_35', 'total_under_35'],
                ['total_over_45', 'total_under_45'], ['first_g_1', 'first_g_X', 'first_g_2'], ['first_h_1', 'first_h_X', 'first_h_2'],
                ['hand30_1', 'hand30_X', 'hand30_2'], ['hand20_1', 'hand20_X', 'hand20_2'], ['hand10_1', 'hand10_X', 'hand10_2'],
                ['hand03_1', 'hand03_X', 'hand03_2'], ['hand02_1', 'hand02_X', 'hand02_2'], ['hand01_1', 'hand01_X', 'hand01_2'],
                ['last_g_1', 'last_g_X', 'last_g_2'], ['draw_no_bet_1', 'draw_no_bet_2'], ['total_goals_odd', 'total_goals_even']
                ]
elif sports == 'basketball':
    bettypes = [['home_2Way', 'away_2Way'], ['home_3Way', 'draw_3Way', 'away_3Way'], ['first_h_1', 'first_h_2'],
                ['score_o_1745', 'score_u_1745'], ['score_o_1755', 'score_u_1755'], ['score_o_1765', 'score_u_1765'],
                ['score_o_1775', 'score_u_1775'], ['score_o_1785', 'score_u_1785'], ['total_goals_odd', 'total_goals_even']
                ]
elif sports == 'ice-hockey':
    bettypes = [['home_3Way', 'draw_3Way', 'away_3Way'], ['b_score_y', 'b_score_n'],
                ['first_g_1', 'first_g_X', 'first_g_2'], ['first_h_1', 'first_h_X', 'first_h_2'],
                ['last_g_1', 'last_g_X', 'last_g_2'], ['home_2Way', 'away_2Way'], ['total_goals_odd', 'total_goals_even']
                ]
elif sports == 'tennis':
    bettypes = [['home_2Way', 'away_2Way'], ['first_set_1', 'first_set_2'], ['second_set_1', 'second_set_2']]
elif sports == 'baseball':
    bettypes = [['home_2Way', 'away_2Way'], ['total_over_355', 'total_under_355'], ['total_over_345', 'total_under_345'],
                ['total_over_335', 'total_under_335'], ['total_over_325', 'total_under_325'], ['total_over_315', 'total_under_315'],
                ['first_h_1', 'first_h_2'], ['total_goals_odd', 'total_goals_even']]
elif sports == 'darts':
    bettypes = [['home_2Way', 'away_2Way']]
elif sports == 'mma':
    bettypes = [['home_2Way', 'away_2Way']]
elif sports == 'boxing':
    bettypes = [['home_2Way', 'away_2Way']]
elif sports == 'handball':
    bettypes = [['draw_no_bet_1', 'draw_no_bet_2'], ['total_over_595', 'total_under_595'], ['total_over_585', 'total_under_585'],
                ['total_over_575', 'total_under_575'], ['total_over_565', 'total_under_565'], ['total_over_555', 'total_under_555'],
                ['first_h_1', 'first_h_X', 'first_h_2'], ['home_3Way', 'draw_3Way', 'away_3Way'], ['total_goals_odd', 'total_goals_even']]
elif sports == 'volleyball':
    bettypes = [['home_2Way', 'away_2Way'], ['score_o_1865', 'score_u_1865'], ['score_o_1845', 'score_u_1845'],
                ['score_o_1825', 'score_u_1825'], ['score_o_1805', 'score_u_1805'], ['score_o_1785', 'score_u_1785'],
                ['first_set_1', 'first_set_2']]
elif sports == 'rugby-league':
    bettypes = [['home_2Way', 'away_2Way'],  ['first_h_1', 'first_h_X', 'first_h_2'],
                ['home_3Way', 'draw_3Way', 'away_3Way'], ['total_goals_odd', 'total_goals_even']]
elif sports == 'rugby-union':
    bettypes = [['home_2Way', 'away_2Way'],  ['first_h_1', 'first_h_X', 'first_h_2'],
                ['home_3Way', 'draw_3Way', 'away_3Way'], ['total_goals_odd', 'total_goals_even']]
elif sports == 'table-tennis':
    bettypes = [['home_2Way', 'away_2Way'], ['first_game_1', 'first_game_2']]
elif sports == 'cricket':
    bettypes = [['home_2Way', 'away_2Way'], ['coin_toss_1', 'coin_toss_2']]
elif sports == 'snooker':
    bettypes = [['home_2Way', 'away_2Way'], ['first_frame_1', 'first_frame_2']]
elif sports == 'waterpolo':
    bettypes = [['total_over_325', 'total_under_325'], ['total_over_305', 'total_under_305'],
                ['total_over_285', 'total_under_285'], ['total_over_265', 'total_under_265'], ['total_over_245', 'total_under_245'],
                ['home_3Way', 'draw_3Way', 'away_3Way']]
elif sports == 'futsal':
    bettypes = [['home_3Way', 'draw_3Way', 'away_3Way']] 
Rapid account: Swam H
SwamH Commented 3 months ago

Thanks. I want to ask one more question about surebet. In surebet , can i see all the possible bettypes and its pair? For example, I can easily know , total_over_15 and total_under_15 can be pair or home,draw, away also are. But , in some sport that i not familiar with , I cant easily know what to bet by just looking at. (I can compare the profit in some case). So is there any possible way to get a list of pair bet types?

Rapid account: Philippschenk 2000
philippschenk2000 Commented 3 months ago

Hi, in the Code Snippets endpoints you can see helpful pre-written Code for a faster start with the endpoints. There you can always see what you need to send as parameters.
Like this for the Matches-endpoint:
sport = 'soccer’
country = 'england’
competition = 'premier-league’
match_urls = 'false’
API_KEY = ''
url = "https://odds-api1.p.rapidapi.com/matches"
querystring = {“sport”: sport, “country”: country,
“competition”: competition, “match_urls”: match_urls}
headers = {“X-RapidAPI-Key”: API_KEY,
“X-RapidAPI-Host”: “odds-api1.p.rapidapi.com”}
response = requests.get(url, headers=headers, params=querystring)

Or this for the Odds-endpoint:
match_id = ‘’ # id1005141763359
bookies = ‘’ # bet365,pinnacle,bcgame
API_KEY = ''
url = "https://odds-api1.p.rapidapi.com/odds"
querystring = {“matchid”: match_id, “bookmakers”: bookies}
headers = {“X-RapidAPI-Key”: API_KEY,
“X-RapidAPI-Host”: “odds-api1.p.rapidapi.com”}
response = requests.get(url, headers=headers, params=querystring)

Join in the discussion - add comment below:

Login / Signup to post new comments