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'."


This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.