← 游戏

快速抽牌

GET /cards/quickdraw

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

参数

count 可选 默认: 5

Number of cards to draw

请求示例

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

实时响应

{
  "data": {
    "cards": [
      {
        "code": "3D",
        "image": "https://deckofcardsapi.com/static/img/3D.png",
        "suit": "DIAMONDS",
        "value": "3"
      },
      {
        "code": "9C",
        "image": "https://deckofcardsapi.com/static/img/9C.png",
        "suit": "CLUBS",
        "value": "9"
      },
      {
        "code": "9D",
        "image": "https://deckofcardsapi.com/static/img/9D.png",
        "suit": "DIAMONDS",
        "value": "9"
      },
      {
        "code": "6S",
        "image": "https://deckofcardsapi.com/static/img/6S.png",
        "suit": "SPADES",
        "value": "6"
      },
      {
        "code": "6H",
        "image": "https://deckofcardsapi.com/static/img/6H.png",
        "suit": "HEARTS",
        "value": "6"
      }
    ],
    "deck_id": "xlo2eqe04413",
    "remaining": 47
  },
  "success": true
}