Skip to main content
Version: 1.0.0

Markets

REQUIREMENT

You'll need a license key to use OpticOdds' API. You can get one by contacting us at www.opticodds.com.

API Endpoint

https://api.opticodds.com/api/feed/markets/

Parameters

NOTE

You can pass in multiple of the same parameters in each GET request.

key (required)

Your OpticOdds API license key.

page

The page of the response you want. Note: the page index starts at 1, and each response returns up to 500 markets.

gameId

The OpticOdds game ID you want to receive markets for (e.g. 2397)

isLive

Flag to filter for odds for live games (supports values true, yes, t, 1)

Example Response

[
{
"game":{
"id":2397,
"sport":"baseball",
"league":"MLB",
"start_date":"2021-09-01T21:45:00-04:00",
"away_team":"Milwaukee Brewers",
"home_team":"San Francisco Giants",
"is_live":false
},
"name":"1st 3 Innings Run Line"
},
{
"game":{
"id":2397,
"sport":"baseball",
"league":"MLB",
"start_date":"2021-09-01T21:45:00-04:00",
"away_team":"Milwaukee Brewers",
"home_team":"San Francisco Giants",
"is_live":false
},
"name":"Moneyline"
},
{
"game":{
"id":2397,
"sport":"baseball",
"league":"MLB",
"start_date":"2021-09-01T21:45:00-04:00",
"away_team":"Milwaukee Brewers",
"home_team":"San Francisco Giants",
"is_live":false
},
"name":"Run Line"
},
{
"game":{
"id":2397,
"sport":"baseball",
"league":"MLB",
"start_date":"2021-09-01T21:45:00-04:00",
"away_team":"Milwaukee Brewers",
"home_team":"San Francisco Giants",
"is_live":false
},
"name":"Total Runs"
},
{
"game":{
"id":2397,
"sport":"baseball",
"league":"MLB",
"start_date":"2021-09-01T21:45:00-04:00",
"away_team":"Milwaukee Brewers",
"home_team":"San Francisco Giants",
"is_live":false
},
"name":"Race To 2 Runs"
},
{
"game":{
"id":2397,
"sport":"baseball",
"league":"MLB",
"start_date":"2021-09-01T21:45:00-04:00",
"away_team":"Milwaukee Brewers",
"home_team":"San Francisco Giants",
"is_live":false
},
"name":"Race To 3 Runs"
},
{
"game":{
"id":2397,
"sport":"baseball",
"league":"MLB",
"start_date":"2021-09-01T21:45:00-04:00",
"away_team":"Milwaukee Brewers",
"home_team":"San Francisco Giants",
"is_live":false
},
"name":"Race To 5 Runs"
},
{
"game":{
"id":2397,
"sport":"baseball",
"league":"MLB",
"start_date":"2021-09-01T21:45:00-04:00",
"away_team":"Milwaukee Brewers",
"home_team":"San Francisco Giants",
"is_live":false
},
"name":"Race To 4 Runs"
},
{
"game":{
"id":2397,
"sport":"baseball",
"league":"MLB",
"start_date":"2021-09-01T21:45:00-04:00",
"away_team":"Milwaukee Brewers",
"home_team":"San Francisco Giants",
"is_live":false
},
"name":"Race To 6 Runs"
},
{
"game":{
"id":2397,
"sport":"baseball",
"league":"MLB",
"start_date":"2021-09-01T21:45:00-04:00",
"away_team":"Milwaukee Brewers",
"home_team":"San Francisco Giants",
"is_live":false
},
"name":"Race To 7 Runs"
},
{
"game":{
"id":2397,
"sport":"baseball",
"league":"MLB",
"start_date":"2021-09-01T21:45:00-04:00",
"away_team":"Milwaukee Brewers",
"home_team":"San Francisco Giants",
"is_live":false
},
"name":"First Team To Score"
},
{
"game":{
"id":2397,
"sport":"baseball",
"league":"MLB",
"start_date":"2021-09-01T21:45:00-04:00",
"away_team":"Milwaukee Brewers",
"home_team":"San Francisco Giants",
"is_live":false
},
"name":"Lead After 3 Innings"
},
...
]