TL;DR
TCGdex is a community-driven, open-source Pokémon Trading Card Game database and API. Query cards by name, set, or category. Each card entry includes its Pokédex number, name, illustrator, rarity, HP, type, attacks, weaknesses, and high-res images. Access all sets (from Base Set to current), search by Pokémon type, or filter by generation. Support for multiple languages. JSON format, no API key, RESTful. Perfect for TCG deck builders and collectors.
Quick start: https://api.tcgdex.net/v2/en/cards?name=Charizard
No API key needed — just make a request!
How to Use This API
1. Search Cards by Name
https://api.tcgdex.net/v2/en/cards?name=Charizard
2. Get All Cards in a Set
https://api.tcgdex.net/v2/en/sets/swsh1
3. JavaScript — Filter by Type
fetch('https://api.tcgdex.net/v2/en/cards?name=Pikachu')
.then(r => r.json())
.then(cards => {
cards.slice(0, 5).forEach(c => {
console.log(`${c.name} — ${c.set.name} #${c.localId}`);
console.log(` HP: ${c.hp}, Type: ${c.types.join(', ')}`);
});
});
4. Python — Build a Deck
import requests
# Find all Fire-type cards from recent sets
sets = requests.get('https://api.tcgdex.net/v2/en/sets').json()
fire_cards = []
for s in sets[:5]:
cards = requests.get(s['href']).json()
for c in cards.get('cards', []):
if 'Fire' in c.get('types', []):
fire_cards.append(c['name'])
print(f"Fire-type cards: {', '.join(fire_cards[:10])}")
Search Charizard cards:
https://api.tcgdex.net/v2/en/cards?name=Charizard
Frequently Asked Questions
- What card data is available?
- Each card includes: name, Pokédex ID, local ID in set, illustrator, rarity, HP, types, retreat cost, attacks (name, cost, damage, effect), weakness/resistance, regulation mark, and high-res image URL.
- What languages are supported?
- English (en), French (fr), German (de), Italian (it), Spanish (es), Portuguese (pt), Dutch (nl), Polish (pl), Russian (ru), Thai (th), Chinese Simplified (zh-Hans), Chinese Traditional (zh-Hant), Korean (ko), Indonesian (id), Hindi (hi).
- How many cards are in the database?
- TCGdex covers tens of thousands of cards across all official Pokémon TCG sets from Base Set (1999) to current expansions.
- Can I get card images?
- Yes, each card entry includes image URLs in various sizes. The images are official card art hosted through the TCGdex CDN.
- What about set data?
- Sets include name, abbreviation, release date, logo image, card count, and list of all cards in that set.
- Is there a rate limit?
- TCGdex encourages reasonable usage. There is no strict rate limit, but the API is free and community-supported.
API Details
- API URL
https://api.tcgdex.net/v2- Documentation
- www.tcgdex.dev
- Category
- Games
- Authentication
- Not Required
- Geographic Coverage
- Global
What You Can Build
- Deck builder with real-time card search and filtering by type/set
- Collection tracker with progress stats by set completion percentage
- Card price lookup integration with market data
- Type matchup calculator for competitive play
- Card of the day gallery for collectors