← Jeux vidéo

Tirage rapide

GET /cards/quickdraw

Créez un nouveau jeu de cartes et immediately draw cards in one request. Idéal pour les quick card game prototyping.

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": "2H",
        "image": "https://deckofcardsapi.com/static/img/2H.png",
        "suit": "HEARTS",
        "value": "2"
      },
      {
        "code": "8H",
        "image": "https://deckofcardsapi.com/static/img/8H.png",
        "suit": "HEARTS",
        "value": "8"
      },
      {
        "code": "4H",
        "image": "https://deckofcardsapi.com/static/img/4H.png",
        "suit": "HEARTS",
        "value": "4"
      },
      {
        "code": "9C",
        "image": "https://deckofcardsapi.com/static/img/9C.png",
        "suit": "CLUBS",
        "value": "9"
      },
      {
        "code": "2D",
        "image": "https://deckofcardsapi.com/static/img/2D.png",
        "suit": "DIAMONDS",
        "value": "2"
      }
    ],
    "deck_id": "yqp2o0ojtfjx",
    "remaining": 47
  },
  "success": true
}