Description
The Parlay Pricer API allows you to get the odds for a parlay bet across multiple sportsbooks. You can include multiple entries in the parlay from different games and markets. It will only work if all entries are available on the sportsbooks you specify and can be combined into a parlay.
Specific Body Information
sportsbooks
Currently we only support:DraftKings
, Blue Book
, BetMGM
, Bwin
, BetRivers
, Midnite
, Fanatics
, LeoVegas
, BetMGM (UK)
, Unibet
).
Bring your own price
We also support OpticOdds AI
as a special sportsbook this will allow you to bring your own price and use our parlay engine to handle the correlation for you.
You can only pass OpticOdds AI
in the list of sportsbooks or you will get an error.
You will need to add a price_american
or price_decimal
to each of your entries or you will get an error.
Example Requests
Using sportsbooks.
curl --location 'https://api.opticodds.com/api/v3/parlay/odds?key=a861d7a2-9fd4-4276-9f6e-ba50c110c029' \
--header 'Content-Type: application/json' \
--data '{
"sportsbooks": [
"Blue Book",
"DraftKings",
"BetMGM"
],
"entries": [
{
"market": "Player Hits",
"name": "Alec Burleson Over 0.5",
"fixture_id": "E1AFAEAF67DD"
},
{
"market": "Player Hits",
"name": "Brendan Donovan Over 0.5",
"fixture_id": "E1AFAEAF67DD"
},
{
"market": "Player Strikeouts",
"name": "Andre Pallante Over 3.5",
"fixture_id": "E1AFAEAF67DD"
}
]
}'
Bringing your own price
curl --location 'https://api.opticodds.com/api/v3/parlay/odds?key=a861d7a2-9fd4-4276-9f6e-ba50c110c029' \
--header 'Content-Type: application/json' \
--data '{
"sportsbooks": [
"OpticOdds AI"
],
"entries": [
{
"market": "Player Hits",
"name": "Alec Burleson Over 0.5",
"fixture_id": "E1AFAEAF67DD",
"price_american": -125
},
{
"market": "Player Hits",
"name": "Brendan Donovan Over 0.5",
"fixture_id": "E1AFAEAF67DD",
"price_decimal": 2.2
},
{
"market": "Player Strikeouts",
"name": "Andre Pallante Over 3.5",
"fixture_id": "E1AFAEAF67DD",
"price_american": 160
}
]
}'
Example Responses
Bringing your own price
{
"data": {
"OpticOdds AI": {
"error": null,
"missing_entries": null,
"legs": [
{
"fixture_id": "mlb:3D5E0C0B1E12",
"market": "Total Runs",
"name": "Over 8",
"price": -102.0
},
{
"fixture_id": "mlb:3D5E0C0B1E12",
"market": "Moneyline",
"name": "New York Yankees",
"price": -161.0
}
],
"price": 194.0,
"deep_link_urls": null
}
}
}
Using sportsbooks
Success
{
"data":{
"Blue Book":{
"error":null,
"missing_entries":null,
"legs":[
{
"fixture_id":"E1AFAEAF67DD",
"market":"Player Hits",
"name":"Alec Burleson Over 0.5",
"price":-230.0
},
{
"fixture_id":"E1AFAEAF67DD",
"market":"Player Hits",
"name":"Brendan Donovan Over 0.5",
"price":-210.0
},
{
"fixture_id":"E1AFAEAF67DD",
"market":"Player Strikeouts",
"name":"Andre Pallante Over 3.5",
"price":122.0
}
],
"price":336.0
},
"DraftKings":{
"error":null,
"missing_entries":null,
"legs":[
{
"fixture_id":"E1AFAEAF67DD",
"market":"Player Hits",
"name":"Alec Burleson Over 0.5",
"price":-265.0
},
{
"fixture_id":"E1AFAEAF67DD",
"market":"Player Hits",
"name":"Brendan Donovan Over 0.5",
"price":-215.0
},
{
"fixture_id":"E1AFAEAF67DD",
"market":"Player Strikeouts",
"name":"Andre Pallante Over 3.5",
"price":115.0
}
],
"price":280.0
},
"BetMGM":{
"error":null,
"missing_entries":null,
"legs":[
{
"fixture_id":"E1AFAEAF67DD",
"market":"Player Hits",
"name":"Alec Burleson Over 0.5",
"price":-250.0
},
{
"fixture_id":"E1AFAEAF67DD",
"market":"Player Hits",
"name":"Brendan Donovan Over 0.5",
"price":-210.0
},
{
"fixture_id":"E1AFAEAF67DD",
"market":"Player Strikeouts",
"name":"Andre Pallante Over 3.5",
"price":115.0
}
],
"price":310.0
}
}
}
Error (Unable to get parlay
{
"data":{
"BetMGM":{
"error":"Error with response. Try again later.",
"missing_entries":null,
"legs":null,
"price":null
}
}
}
Error (Missing Entries)
{
"data":{
"Blue Book":{
"error":"Missing odds for entries.",
"missing_entries":[
{
"fixture_id":"E1AFAEAF67DD",
"market":"player_hits",
"name":"brendan_donovan_over_0_5",
"price":null
},
{
"fixture_id":"E1AFAEAF67DD",
"market":"player_hits",
"name":"alec_burleson_over_0_5",
"price":null
},
{
"fixture_id":"E1AFAEAF67DD",
"market":"player_strikeouts",
"name":"andre_pallante_over_3_5",
"price":null
}
],
"legs":null,
"price":null
},
"DraftKings":{
"error":"Missing odds for entries.",
"missing_entries":[
{
"fixture_id":"E1AFAEAF67DD",
"market":"player_hits",
"name":"brendan_donovan_over_0_5",
"price":null
},
{
"fixture_id":"E1AFAEAF67DD",
"market":"player_hits",
"name":"alec_burleson_over_0_5",
"price":null
},
{
"fixture_id":"E1AFAEAF67DD",
"market":"player_strikeouts",
"name":"andre_pallante_over_3_5",
"price":null
}
],
"legs":null,
"price":null
},
"BetMGM":{
"error":"Missing odds for entries.",
"missing_entries":[
{
"fixture_id":"E1AFAEAF67DD",
"market":"player_hits",
"name":"brendan_donovan_over_0_5",
"price":null
},
{
"fixture_id":"E1AFAEAF67DD",
"market":"player_hits",
"name":"alec_burleson_over_0_5",
"price":null
},
{
"fixture_id":"E1AFAEAF67DD",
"market":"player_strikeouts",
"name":"andre_pallante_over_3_5",
"price":null
}
],
"legs":null,
"price":null
}
}
}
Error (Unable to combine entries)
{
"Blue Book": {
"error": "Cannot be combined into a parlay on the sportsbook."
},
"DraftKings": {
"error": "SelectionsCannotBeCombined"
},
"BetMGM": {
"error": "Could not create parlay for all games."
}
}