PokemonTCG / pokemon-tcg-api

Pokemon TCG API allows developers to easily consume Pokemon card and set data in JSON format.
63 stars 3 forks source link

Ability to search for multiple cards though multiple sets #101

Closed RichardHpa closed 1 year ago

RichardHpa commented 1 year ago

Since every card has its own unique ID, it would be great if there was a way to be able to retrieve multiple cards in a single api search. Since there is an api limit, if you wanted to retrieve all your cards in a 60 card deck. It would require 60 apis calls whichout using an api key, you wouldnt be able to do since you can only get 30 cards a minute.

So rather than saying

maybe something like https://api.pokemontcg.io/v2/cards/xy1-1,swsh1-1

jaymarvels commented 1 year ago

You should already be able to do something like this already

i.e. cards/q=id:xy-1-1 OR id:swsh1-1

RichardHpa commented 1 year ago

oh of course. Didn't think of that. Il close this issue but for people who are interesting the api call would be https://api.pokemontcg.io/v2/cards?pageSize=2&q=(id:xy1-1 OR id:swsh1-1)