Getting a single Serie
Este conteúdo não está disponível em sua língua ainda.
Request
$serie = $tcgdex->fetchSerie('swsh');
const serie = await tcgdex.fetch('series', 'swsh');
const serie = await tcgdex.fetch('series', 'swsh');
Serie serie = tcgdex.fetchSerie("swsh");
val serie = tcgdex.fetchSerie("swsh")
https://api.tcgdex.net/v2/en/series/swsh
Sample Response
200 Response
The request return a Serie object
{ "id": "swsh", "logo": "https://assets.tcgdex.net/en/swsh/swshp/logo", "name": "Sword & Shield", "sets": [ { "cardCount": { "official": 107, "total": 166 }, "id": "swshp", "logo": "https://assets.tcgdex.net/en/swsh/swshp/logo", "name": "SWSH Black Star Promos", "symbol": "https://assets.tcgdex.net/univ/swsh/swshp/symbol" }, // ... { "cardCount": { "official": 159, "total": 230 }, "id": "swsh12.5", "logo": "https://assets.tcgdex.net/en/swsh/swsh12.5/logo", "name": "Crown Zenith" } ]}
404 Response
The serie was not found :( it will return a global error message (not translated)
{ "error": "Endpoint or id not found"}