← 游戏

快速抽牌

GET /cards/quickdraw

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

参数

count 可选 默认: 5

Number of cards to draw

请求示例

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

实时响应

{
  "data": {
    "cards": [
      {
        "code": "8S",
        "image": "https://deckofcardsapi.com/static/img/8S.png",
        "suit": "SPADES",
        "value": "8"
      },
      {
        "code": "JS",
        "image": "https://deckofcardsapi.com/static/img/JS.png",
        "suit": "SPADES",
        "value": "JACK"
      },
      {
        "code": "3S",
        "image": "https://deckofcardsapi.com/static/img/3S.png",
        "suit": "SPADES",
        "value": "3"
      },
      {
        "code": "7C",
        "image": "https://deckofcardsapi.com/static/img/7C.png",
        "suit": "CLUBS",
        "value": "7"
      },
      {
        "code": "9S",
        "image": "https://deckofcardsapi.com/static/img/9S.png",
        "suit": "SPADES",
        "value": "9"
      }
    ],
    "deck_id": "qzpu3rdhxxlg",
    "remaining": 47
  },
  "success": true
}