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

Use of the Metropolitan Museum of Art Collection API search parameters #36

Open
mikedjgreen opened this issue Oct 7, 2020 · 2 comments
Labels

Comments

@mikedjgreen
Copy link

Firstly, thank you for providing an API to search your wonderful art collection.

I found it from an article posted on the programmable web's 'API University', (https://www.programmableweb.com/api-university) .

I have found your search portal easy to use and I am working on a study project for the Code Institute,(https://courses.codeinstitute.net/program/FullstackWebDeveloper).

I do have one question though (!?).
When I set criteria of departmentId=11 and q=sunflowers I get 13 objects in the resulting list. So far so good.
When I reverse the order of the criteria, q=sunflower first, departmentId second, then I get only one object id,436703. Title=Madame Jacques-Louis Leblanc by Ingres.

Should this be so?

@stephenhmarsh
Copy link

@spencerk confirmed this is a bug:

https://collectionapi.metmuseum.org/public/collection/v1/search?q=sunflower&departmentId=11 
https://collectionapi.metmuseum.org/public/collection/v1/search?departmentId=11&q=sunflower

yields different results

@stephenhmarsh
Copy link

Some more examples:

1480
https://collectionapi.metmuseum.org/public/collection/v1/search?isHighlight=true&q=""

112
https://collectionapi.metmuseum.org/public/collection/v1/search?q=&isHighlight=true

17
https://collectionapi.metmuseum.org/public/collection/v1/search?q=sun&isHighlight=true

120
https://collectionapi.metmuseum.org/public/collection/v1/search?isHighlight=true&q=sun

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

No branches or pull requests

2 participants