JohnReagan / mtg-winchester-draft

3 stars 0 forks source link

Create api for pulling card packs #3

Open JohnReagan opened 4 years ago

JohnReagan commented 4 years ago

Can use API here https://docs.magicthegathering.io/

JohnReagan commented 4 years ago

That api doesn't look well maintained, may need to roll one. Example from mtgadraft heroku app: https://github.com/Senryoku/MTGADraft/blob/e99084f3c7c6ede4e0bbbb2887e017361d3dd354/Session.js

This json api looks pretty actively maintained, may need to ingress per release. IsStarter field seems to indicate booster: https://www.mtgjson.com/

Should figure out how draftpod does it too

Scryfall has an api as well https://scryfall.com/docs/api/cards

JohnReagan commented 4 years ago

can get images from scryfall with this url: https://api.scryfall.com/cards/:scryfallId?format=image