According to the API specifications the objectIDs field of a search response is an integer array that defaults to []. However, when performing a search that yields no results (such as https://collectionapi.metmuseum.org/public/collection/v1/search?q=noresult) this is the response I receive from the API:
{"total":0,"objectIDs":null}
It seems the API and specs do not match up. This can be (and has been for me) an unexpected stumbling block.
According to the API specifications the
objectIDs
field of a search response is an integer array that defaults to[]
. However, when performing a search that yields no results (such ashttps://collectionapi.metmuseum.org/public/collection/v1/search?q=noresult
) this is the response I receive from the API:It seems the API and specs do not match up. This can be (and has been for me) an unexpected stumbling block.