Search multiple item types with API

How do I filter out both attachments and notes from a search query?

I can do this, which filters out attachments and returns two items, one of which is a note:

https://api.zotero.org/groups/2221709/items?v=3&itemType=-attachment

To exclude notes I try this:

&itemType=-attachment&itemType=-note

but it gives me "Cannot specify 'itemType' more than once."

This:

&itemType=-attachment&-note

ignores the &-note part, I suspect because it sees the & and thinks -note is a parameter name.

This:

&itemType=-attachment%26-note

gives me "valid itemType 'attachment&-note'."


Sign In or Register to comment.