← Jeux vidéo

Tirage rapide

GET /cards/quickdraw

Créez un nouveau jeu de cartes et piochez immédiatement des cartes en une seule requête. Idéal pour le prototypage rapide de jeux de cartes.

Paramètres

count optionnel par défaut: 5

Number of cards to draw

Exemples de requêtes

Utilisation de base
curl "https://nordapi.ee/api/v1/cards/quickdraw?count=5"

Réponse en direct

{
  "data": {
    "cards": [
      {
        "code": "0H",
        "image": "https://deckofcardsapi.com/static/img/0H.png",
        "suit": "HEARTS",
        "value": "10"
      },
      {
        "code": "4H",
        "image": "https://deckofcardsapi.com/static/img/4H.png",
        "suit": "HEARTS",
        "value": "4"
      },
      {
        "code": "KH",
        "image": "https://deckofcardsapi.com/static/img/KH.png",
        "suit": "HEARTS",
        "value": "KING"
      },
      {
        "code": "6H",
        "image": "https://deckofcardsapi.com/static/img/6H.png",
        "suit": "HEARTS",
        "value": "6"
      },
      {
        "code": "AC",
        "image": "https://deckofcardsapi.com/static/img/AC.png",
        "suit": "CLUBS",
        "value": "ACE"
      }
    ],
    "deck_id": "y1e3pz45s6mq",
    "remaining": 47
  },
  "success": true
}