Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is not clear how to handle sets with more than one word for the name #5

Open
hetd54 opened this issue Apr 27, 2023 · 1 comment
Open

Comments

@hetd54
Copy link

hetd54 commented Apr 27, 2023

Examples using cURL:

It is clear from the docs how to grab cards from a set with a single word name:

fetch(`https://api.pokemontcg.io/v2/cards?q=set.name:generations`
    ,{
    "method": "GET",
    "headers": {
            "X-Api-Key": API_KEY,
            "content-type": "application/json",
            "accept": "application/json"
        },
    })

However, what about Sword & Shield? Crown Zenith?

@Kaappoo
Copy link

Kaappoo commented Sep 14, 2024

Hello, i dont know if you still care for the answer, but in this case its best to use the id:
https://api.pokemontcg.io/v2/cards?q=set.id:swsh1
This would bring all cards from Sword & Shield

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants