← 游戏

快速抽牌

GET /cards/quickdraw

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

参数

count 可选 默认: 5

Number of cards to draw

请求示例

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

实时响应

{
  "data": {
    "cards": [
      {
        "code": "6H",
        "image": "https://deckofcardsapi.com/static/img/6H.png",
        "suit": "HEARTS",
        "value": "6"
      },
      {
        "code": "JC",
        "image": "https://deckofcardsapi.com/static/img/JC.png",
        "suit": "CLUBS",
        "value": "JACK"
      },
      {
        "code": "7S",
        "image": "https://deckofcardsapi.com/static/img/7S.png",
        "suit": "SPADES",
        "value": "7"
      },
      {
        "code": "5C",
        "image": "https://deckofcardsapi.com/static/img/5C.png",
        "suit": "CLUBS",
        "value": "5"
      },
      {
        "code": "3S",
        "image": "https://deckofcardsapi.com/static/img/3S.png",
        "suit": "SPADES",
        "value": "3"
      }
    ],
    "deck_id": "gns239in1l01",
    "remaining": 47
  },
  "success": true
}