Is there an OR operator for searchNFTs API?

Is there a way to add OR operator for a query string with type values for the same attribute?

This query searches for 2 different attributes and works relatively well:

https://deep-index.moralis.io/api/v2/nft/search?chain=polygon&format=decimal&q=Buterin%26Cosmic%20Cobalt&filter=global&addresses=0x67f4732266c7300cca593c814d46bee72e40659f&token_address=0x67f4732266c7300cca593c814d46bee72e40659f

This query searches two values of the same attribute and doesn’t work, where as OpenSea would return over 6000 results:

https://deep-index.moralis.io/api/v2/nft/search?chain=polygon&format=decimal&q=Alabaster%26Cosmic%20Cobalt&filter=global&addresses=0x67f4732266c7300cca593c814d46bee72e40659f&token_address=0x67f4732266c7300cca593c814d46bee72e40659f

You could try to make two different queries

1 Like

That may get complicated with pagination.

I would need to merge the two array results and remove items with same token ID then add pagination.