Obtenir un set
$set = $tcgdex->fetchSet('swsh3');const set = await tcgdex.fetch('sets', 'swsh3');const set = await tcgdex.fetch('sets', 'swsh3');Set set = tcgdex.fetchSet("swsh3");val set = tcgdex.fetchSet("swsh3")https://api.tcgdex.net/v2/fr/sets/swsh3Exemple de Réponse 200
Section intitulée « Exemple de Réponse 200 »{  "cardCount": {    "firstEd": 0,    "holo": 64,    "normal": 137,    "official": 189,    "reverse": 155,    "total": 201  },  "cards": [    {      "id": "swsh3-1",      "image": "https://assets.tcgdex.net/fr/swsh/swsh3/1",      "localId": "1",      "name": "Papilusion V"    },    // ...    {      "id": "swsh3-136",      "image": "https://assets.tcgdex.net/fr/swsh/swsh3/136",      "localId": "136",      "name": "Fouinar"    },    // ...    {      "id": "swsh3-201",      "image": "https://assets.tcgdex.net/fr/swsh/swsh3/201",      "localId": "201",      "name": "Énergie Capture"    }  ],  "id": "swsh3",  "legal": {    "expanded": true,    "standard": false  },  "logo": "https://assets.tcgdex.net/fr/swsh/swsh3/logo",  "name": "Ténèbres Embrasées",  "releaseDate": "2020-08-14",  "serie": {    "id": "swsh",    "name": "Épée et Bouclier"  },  "symbol": "https://assets.tcgdex.net/univ/swsh/swsh3/symbol"}Réponse 404
Section intitulée « Réponse 404 »Le set n’a pas été trouvée :( elle retournera un message d’erreur global (non traduit)
{  "error": "Endpoint or id not found"}