← 游戏

快速抽牌

GET /cards/quickdraw

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

参数

count 可选 默认: 5

Number of cards to draw

请求示例

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

实时响应

{
  "data": {
    "cards": [
      {
        "code": "AH",
        "image": "https://deckofcardsapi.com/static/img/AH.png",
        "suit": "HEARTS",
        "value": "ACE"
      },
      {
        "code": "9C",
        "image": "https://deckofcardsapi.com/static/img/9C.png",
        "suit": "CLUBS",
        "value": "9"
      },
      {
        "code": "5S",
        "image": "https://deckofcardsapi.com/static/img/5S.png",
        "suit": "SPADES",
        "value": "5"
      },
      {
        "code": "JD",
        "image": "https://deckofcardsapi.com/static/img/JD.png",
        "suit": "DIAMONDS",
        "value": "JACK"
      },
      {
        "code": "8S",
        "image": "https://deckofcardsapi.com/static/img/8S.png",
        "suit": "SPADES",
        "value": "8"
      }
    ],
    "deck_id": "4iejpsodqx4r",
    "remaining": 47
  },
  "success": true
}