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

contains=imageUrl returning cards without images #37

Open
highspotjeremy opened this issue May 8, 2019 · 5 comments
Open

contains=imageUrl returning cards without images #37

highspotjeremy opened this issue May 8, 2019 · 5 comments

Comments

@highspotjeremy
Copy link

The API used to support (and, this is even noted in the documentation) using contains=imageUrl to filter out cards that don't have images. Recently (within ~1-2 months), this appears to have changed, as cards are now being returned that lack the imageUrl field.

Example URL: https://api.magicthegathering.io/v1/cards?contains=imageUrl&page=1&pageSize=20&types=creature
The third card, Air Elemental, does not have the imageUrl field.

@saikyun
Copy link

saikyun commented May 13, 2019

I have a similar error, though opposite, https://api.magicthegathering.io/v1/cards?name=gravedigger&contains=multiverseid doesn't return anything. As soon as I use contains=multiverseid I get no cards back, even though it used to work.

@highspotjeremy
Copy link
Author

I have a similar error, though opposite, https://api.magicthegathering.io/v1/cards?name=gravedigger&contains=multiverseid doesn't return anything. As soon as I use contains=multiverseid I get no cards back, even though it used to work.

Definitely looks to be related, as searches without contains produce results that have a multiverseid.

@highspotjeremy
Copy link
Author

@adback03 - this looks to be affecting multiple fields. I tried a few others, too. cmc was the only other one I tried that didn't produce results when the query without contains= had results that did contain it.

@mhel14
Copy link

mhel14 commented Oct 2, 2020

Got the same issue, I'm getting empty imageUrl even though I specify it in param contains=imageUrl. any help or work around to filter only the cards with imageUrl?

@rycastaneda
Copy link

https://api.magicthegathering.io/v1/cards?random=true&pageSize=10&contains=imageUrl

Same issue, trying to filter cards with images

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

4 participants