← 游戏

快速抽牌

GET /cards/quickdraw

在一次请求中创建新牌组并立即抽牌。非常适合快速卡牌游戏原型开发。

参数

count 可选 默认: 5

Number of cards to draw

请求示例

基本用法
curl "https://nordapi.ee/api/v1/cards/quickdraw?count=5"

实时响应

{
  "data": {
    "cards": [
      {
        "code": "6D",
        "image": "https://deckofcardsapi.com/static/img/6D.png",
        "suit": "DIAMONDS",
        "value": "6"
      },
      {
        "code": "JC",
        "image": "https://deckofcardsapi.com/static/img/JC.png",
        "suit": "CLUBS",
        "value": "JACK"
      },
      {
        "code": "AS",
        "image": "https://deckofcardsapi.com/static/img/AS.png",
        "suit": "SPADES",
        "value": "ACE"
      },
      {
        "code": "QH",
        "image": "https://deckofcardsapi.com/static/img/QH.png",
        "suit": "HEARTS",
        "value": "QUEEN"
      },
      {
        "code": "6C",
        "image": "https://deckofcardsapi.com/static/img/6C.png",
        "suit": "CLUBS",
        "value": "6"
      }
    ],
    "deck_id": "ggh580911yg1",
    "remaining": 47
  },
  "success": true
}