Skip to content

type-null/PTCG-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokémon Card Database

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

Info source: pkmncards

Image source: malie.io

Japanese Version

Source: Official Japan Pokemon Card Website

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 [ACE]
promo common uncommon rare double rare ultra rare illustration rare special illustration rare hyper rare shiny rare shiny ultra rare ace spec rare

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: November 15, 2024
      • Last jp downloaded card_id: 46661
    • 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: November 15, 2024
      • Last en downloaded card_id: SVP128
    • Logs: logs/

About

Pokemon Card Database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages