Skip to content

type-null/PTCG-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokémon Card Database

EN version JP version TC version Pocket version

Card information for Pokemon TCG. Potential use for data analysis.

Card Download

Official and unofficial sources, such as tcgo, tcgl, carddex, pokemon.com, pkmncards.com, etc. (malie.io)

English version

The official Pokémon.com has TCG database but the card images are low quality.

Info source: pkmncards

Image source: malie.io

Japanese Version

Source: Official Japan Pokemon Card Website

Traditional Chinese Version

Source: Pokemon Asia - Taiwan

  • The Pokemon Asia website contains other languages as well (including Indonesia, Thailand, and other regions using English Version) but not Simplified Chinese. So the scraper for Traditional Chinese can be used for these Asian regions with trivial changes.
  • It is very similar to the Japanese website.

⚠️ Warning: The attacks section of many cards are messed up. Our scraped result only reflects the website's source code. It may be wrong. Below is an example. tc-wrong-attack-example.png

TCG Pocket

Add TCG Pocket data on Feb 18, 2025.

It is a simplified version of Pokémon TCG, which makes it a better case to test RL in PTCG.

Source: limitlesstcg.com (English)

Card Data

Good reference: malie.io Pokémon Trading Card Game export format, it has great illustration of different fields.

Example:

Click to expand JSON

{
    "language": "en-US",    [REQUIRED]
    "jp_id": "",            [REQUIRED]
    "url": "https://pkmncards.com/card/golisopod-sun-moon-promos-smp-sm52/",
                            [REQUIRED]
    "img": "https://pkmncards.com/wp-content/uploads/en_US-Promo_SM-SM52-golisopod.jpg", 
                            [REQUIRED]
    "card_type": "Pokemon", [REQUIRED] 
                                
    "sub_type": "",         [OPTIONAL]
                                
                                
    "name": "Golisopod",    [REQUIRED]
    "authors": ["Naoki Saito"], 
                            [OPTIONAL]
    "regulation": "",       [OPTIONAL]
                                
    "set_name": "SM PROMO", [REQUIRED]
    "set_img": "",          [OPTIONAL]
    "number": "SM52",       [REQUIRED]
    "rarity": "PROMO",      [OPTIONAL]
    "tags": [],             [OPTIONAL]
                                
    "technical_machine_rule": "",
                            [OPTIONAL]
    "abilities": [
        {
            "name": "Armor",
            "text": "This Pokémon takes 30 less damage from attacks (after applying Weakness and Resistance).",
        },
    ],                      [OPTIONAL]
    "ancient_trait": {
        "name": "",
        "effect": "",
    },                      [OPTIONAL]
    "poke_power": {
        "name": "",
        "effect": "",
    },                      [OPTIONAL]
    "poke_body": {
        "name": "",
        "effect": "",
    },                      [OPTIONAL]
    "held_item": {
        "item": "",
        "effect": "",
    },                      [OPTIONAL]
    "held_berry": {
        "berry": "",
        "effect": "",
    },                      [OPTIONAL]
    "attack": [
        {
            "cost": ["Grass", "Colorless", "Colorless"],
            "name": "Resolute Claws",
            "damage": {
                "amount": 80,
                "suffix": "+",
            },
            "text": "If your opponent’s Active Pokémon is a Pokémon-GX or a Pokémon-EX, this attack does 70 more damage (before applying Weakness and Resistance).",
        },
    ],                      [OPTIONAL]
    "vstar_power": {}       [OPTIONAL]
    "reminder": "",         [OPTIONAL]
                                
    "rule_box": {
        "name": "",             
        "rule": "",             
    },                      [OPTIONAL]
    "effect": "",           [OPTIONAL]
                                
    "tera_effect": "",      [OPTIONAL]
                                
    "stage": "STAGE1",      [REQUIRED]
    "evolve_from": "Wimpod",
                            [REQUIRED]
    "hp": 130,              [REQUIRED]
    "types": ["Grass"],     [REQUIRED]
    "weakness": {
        "types": ["Fire"],
        "value": "×2",
    },                      [OPTIONAL]
    "resistance": {
        "types": [],
        "value": "",
    },                      [OPTIONAL]
    "retreat": 2,           [REQUIRED]
    "flavor_text": "With a flashing slash of its giant sharp claws, it cleaves seawater—or even air—right in two.",
                            [OPTIONAL]
    "pokedex_number": 768,  [OPTIONAL]
    "pokemon_category": "Hard Scale Pokémon",
                            [OPTIONAL]
    "height": "6'07\"",     [OPTIONAL]
    "weight": "238.1 lbs",  [OPTIONAL]
}

Omitted:

  • name
    • "subtitle": e.g., "Profesor Turo" in "Professor's Research"
    • "prefix": e.g., "Paldean" in Paldean Pokemon
    • "suffix": e.g., "with Grey Felt Hat" in Van Gogh Pikachu
  • "copyright": {"text": "©2024 Pokémon / Nintendo / Creatures / GAME FREAK", ...}

Type symbols:

Grass Fire Water Lightning Psychic Fighting Dark Metal Fairy Dragon Colorless
{G} {R} {W} {L} {P} {F} {D} {M} {Y} {N} {C}

Gender symbols: E.g., Nidoran♀

UTF-8 JSON unicode
\u2640
\u2642

English Rarity key, SV1-onwards:

promo common uncommon rare double_rare ultra_rare illustration_rare special_illustration_rare hyper_rare shiny_rare shiny_ultra_rare shiny_ultra_rare
promo common uncommon rare double rare ultra rare illustration rare special illustration rare hyper rare shiny rare shiny ultra rare ace spec rare

Pocket Rarity key:

Empty 1_diamond 1_diamond1_diamond 1_diamond1_diamond1_diamond 1_diamond1_diamond1_diamond1_diamond 1_star 1_star1_star 1_star1_star1_star crown
promo 1 diamond 2 diamond 3 diamond 4 diamond 1 star 2 star 3 star crown

Downloaded data

Japanese version

  • Info

    • Card content: data_jp/
      • /data_jp/set_name/<individual-card>.json
      • set_name is automatically scraped from the set image under the card image shown on the webpage
      • Last jp downloaded time: February 28, 2025
      • Last jp downloaded card_id: 47295
    • Logs: logs/
  • Image

    • Set package cover: See table here
    • Card image: Haven't downloaded, but the urls for image are saved in their .json files
    • Set logo imgae: Same as above
    • Rarity image: Same as above

English version

  • Info
    • Card content: data_en/

      • /data_en/series/set_name/<individual-card>.json
      • series and set_name are automatically scraped from the set image under the card image shown on the webpage
      • Last en downloaded time: February 03, 2025
      • Last en downloaded card_id: SVP128
    • Logs: logs/

Traditional Chinese version

  • Info

    • Card content: data_tc/

      • /data_tc/series/set_name/<individual-card>.json
      • series and set_name are automatically scraped from the set image under the card image shown on the webpage
      • Last tc downloaded time: March 01, 2025
      • Last tc downloaded card_id: 12626
    • Logs: logs/

  • Todo

    • Some cards have dirty set_names, such as '-1', 'svf.png', and '[email protected]' due to incomprehensive regex.
      • Need to clean these cards.
    • Some cards have mismatch texts on the website, such as example shown in above warning.
      • Need to correct the data input.
    • The ids of cards are not consecutive all the way from 2 to current. Thus, a lot of ids have no card attached. But these ids might be used in the future.
      • Need to examine these ids when update the card pool.
      • Or, can just update the new cards by set.

TCG Pocket

  • Info
    • Card content: data_pocket/

      • /data_pocket/series/set_name/<individual-card>.json
      • series and set_name are automatically scraped from the set image under the card image shown on the webpage
      • Last pocket downloaded time: March 05, 2025
      • Last pocket downloaded card_id: P-A-49
    • Logs: logs/

Maintainer

This project is maintained and developed by type-null.

About

Pokémon Card Database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages