← 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": "JS",
        "image": "https://deckofcardsapi.com/static/img/JS.png",
        "suit": "SPADES",
        "value": "JACK"
      },
      {
        "code": "2C",
        "image": "https://deckofcardsapi.com/static/img/2C.png",
        "suit": "CLUBS",
        "value": "2"
      },
      {
        "code": "QC",
        "image": "https://deckofcardsapi.com/static/img/QC.png",
        "suit": "CLUBS",
        "value": "QUEEN"
      },
      {
        "code": "7C",
        "image": "https://deckofcardsapi.com/static/img/7C.png",
        "suit": "CLUBS",
        "value": "7"
      },
      {
        "code": "6H",
        "image": "https://deckofcardsapi.com/static/img/6H.png",
        "suit": "HEARTS",
        "value": "6"
      }
    ],
    "deck_id": "juonr3jveif4",
    "remaining": 47
  },
  "success": true
}