cards
Find card by ID
Changed onReturns detailed information about a specified card
get/cards/{cardId}
Request
- Base URLhttps://api.tcgdex.net/v2/en
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
cardIdstring required
ID of card to return
Response
Successful request
Example response
{
"id": "base1-1",
"localId": "1",
"image": "https://assets.tcgdex.net/en/base/base1/1",
"name": "Alakazam",
"category": "Pokemon",
"rarity": "Rare",
"set": {
"id": "base1",
"name": "Base Set",
"logo": "https://assets.tcgdex.net/en/base/base1/logo",
"symbol": "https://assets.tcgdex.net/univ/base/base1/symbol",
"cardCount": {
"total": 101,
"official": 100
}
},
"hp": 80,
"types": [
"Psychic"
],
"legal": {
"expanded": true
},
"abilities": [
{
"type": "Poké-Power",
"name": "Damage Swap"
}
],
"attacks": [
{
"cost": [
"Psychic"
],
"name": "Confuse Ray"
}
],
"weaknesses": [
[
{
"type": "Psychic"
}
]
],
"resistances": [
[
{
"type": "Psychic"
}
]
],
"boosters": [
{
"id": "boo_A1-mewtwo",
"name": "Mewtwo",
"logo": "https://assets.tcgdex.net/en/tcgp/A1/boosters/mewtwo-logo",
"artwork_front": "https://assets.tcgdex.net/en/tcgp/A1/boosters/mewtwo-front",
"artwork_back": "https://assets.tcgdex.net/en/tcgp/A1/boosters/mewtwo-front"
}
]
}Changes
- breaking
the response property
became nullable for the status - breaking
the
//response's property type changed fromnumbertonumberstringfor status - breaking
the
response's property type changed fromnumbertonumberstringfor status - info
api operation id
findPetsByTagsremoved and replaced withgetCardById - info
added the media type
application/problem+jsonfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status
- breaking