跳转到主要内容
GET
/
markets
获取盘口
curl --request GET \
  --url 'https://v5.oddspapi.io/zh/markets?apiKey='
[
  {
    "marketId": 111,
    "marketLength": 2,
    "sportId": 11,
    "playerProp": false,
    "handicap": 0,
    "period": "result",
    "marketType": "moneyline",
    "marketName": "Winner (incl. overtime)",
    "marketNameShort": "Winner",
    "outcomes": [
      {
        "outcomeId": 111,
        "outcomeName": "1"
      },
      {
        "outcomeId": 112,
        "outcomeName": "2"
      }
    ]
  },
  {
    "marketId": 113,
    "marketLength": 3,
    "sportId": 11,
    "playerProp": false,
    "handicap": 0,
    "period": "fulltime",
    "marketType": "1x2",
    "marketName": "Regular Time Result",
    "marketNameShort": "1X2",
    "outcomes": [
      {
        "outcomeId": 113,
        "outcomeName": "1"
      },
      {
        "outcomeId": 114,
        "outcomeName": "X"
      },
      {
        "outcomeId": 115,
        "outcomeName": "2"
      }
    ]
  }
]

授权

apiKey
string
query
必填

Your API key (query-based auth for v5).

查询参数

marketIds
string | null

Comma- or space-separated market IDs.

sportId
integer | null

Single sport ID.

outcomeIds
string | null

Comma- or space-separated outcome IDs.

响应

Returns Market[]

marketId
integer
必填
sportId
integer | null
marketType
string | null
period
string | null
marketLength
integer | null
playerProp
boolean | null
handicap
number | null
marketName
string | null
marketNameShort
string | null
outcomes
object[]