YGOPRODeck icon indicating copy to clipboard operation
YGOPRODeck copied to clipboard

Expand API for more precise pricing

Open LtJGPliskin opened this issue 4 years ago • 1 comments

I've developed an app for pack openings. You list out the cards that you got from the pack and it tells you the net gain+-

I think expanding your all cards API to return different site prices for individual sets would be helpful. Instead of returning:

`{ "data": [ { "id": 29354228, "name": "Dogmatika Encounter", "type": "Trap Card",

        "desc": "Activate one of these effects;\r\n● Special Summon 1 \"Dogmatika\" monster or \"Fallen of Albaz\" from your hand.\r\n● Add to your hand or Special Summon 1 \"Dogmatika\" monster or \"Fallen of Albaz\" from your GY.\r\nYou can only activate 1 \"Dogmatika Encounter\" per turn.",
        "race": "Normal",
        "archetype": "Dogmatika",
        "card_sets": [
            {
                "set_name": "2021 Tin of Ancient Battles",
                "set_code": "MP21-EN148",
                "set_rarity": "C",
                "set_rarity_code": "",
                "set_price": "1.09"
            },
            {
                "set_name": "Rise of the Duelist",
                "set_code": "ROTD-EN071",
                "set_rarity": "Common",
                "set_rarity_code": "(C)",
                "set_price": "0.95"
            }
        ],
        "card_images": [
            {
                "id": 29354228,
                "image_url": "https://storage.googleapis.com/ygoprodeck.com/pics/29354228.jpg",
                "image_url_small": "https://storage.googleapis.com/ygoprodeck.com/pics_small/29354228.jpg"
            }
        ],
        "card_prices": [
            {
                "cardmarket_price": "0.04",
                "tcgplayer_price": "0.11",
                "ebay_price": "1.00",
                "amazon_price": "0.25",
                "coolstuffinc_price": "0.49"
            }
        ]
    }
]

}`

have

`{ "data": [ { "id": 29354228, "name": "Dogmatika Encounter", "type": "Trap Card",

        "desc": "Activate one of these effects;\r\n● Special Summon 1 \"Dogmatika\" monster or \"Fallen of Albaz\" from your hand.\r\n● Add to your hand or Special Summon 1 \"Dogmatika\" monster or \"Fallen of Albaz\" from your GY.\r\nYou can only activate 1 \"Dogmatika Encounter\" per turn.",
        "race": "Normal",
        "archetype": "Dogmatika",
        "card_sets": [
            {
                "set_name": "2021 Tin of Ancient Battles",
                "set_code": "MP21-EN148",
                "set_rarity": "C",
                "set_rarity_code": "",
                "set_price": "1.09",
                "set_card_prices": [
                    {
                        "cardmarket_price": "0.04",
                        "tcgplayer_price": "0.11",
                        "ebay_price": "1.00",
                        "amazon_price": "0.25",
                        "coolstuffinc_price": "0.49"
                    }
                ]
            },
            {
                "set_name": "Rise of the Duelist",
                "set_code": "ROTD-EN071",
                "set_rarity": "Common",
                "set_rarity_code": "(C)",
                "set_price": "0.95",
                "set_card_prices": [
                    {
                        "cardmarket_price": "0.04",
                        "tcgplayer_price": "0.11",
                        "ebay_price": "1.00",
                        "amazon_price": "0.25",
                        "coolstuffinc_price": "0.49"
                    }
                ]
            }
        ],
        "card_images": [
            {
                "id": 29354228,
                "image_url": "https://storage.googleapis.com/ygoprodeck.com/pics/29354228.jpg",
                "image_url_small": "https://storage.googleapis.com/ygoprodeck.com/pics_small/29354228.jpg"
            }
        ]
    }
]

}`

LtJGPliskin avatar Oct 08 '21 07:10 LtJGPliskin

Strongly agree with this, would love to display accurate pricing information

smartcontracts avatar Aug 15 '22 15:08 smartcontracts