On 10/6/21 2:39 AM, Shebaz Multani wrote:
> Thanks for your response, yes we can use it but the problem here is
> when we use API without top items (
> <userOrGroupPrefix>/items/?itemType=note ) it returns us lots of child
> items and some of the parent item keys received from them don't event
> exists in the Zotero library. So, it will store junk of data extra
> data in the database which is useless
This sounds like some sort of misunderstanding. itemType=note returns
notes, not random child items, and the API doesn't return items that
don't exist in the library. If there's a specific response you think is
wrong, we'd need a specific example (without an API key).
> But is it possible to get notes in the top item API
Child notes, no, because the request is literally a request for
top-level items, and child notes aren't top-level items.
> OR get the child items of specific multiple top
No, and if you need enough child items where this is an issue, you
should just be storing all items and pulling updates efficiently using
versioned (?since=) requests:
And just to clarify, since someone from your team wrote to us off-list,
many things use the Zotero API and also display notes, including the
Zotero apps and the Zotero web library, so I assure you there's a better
way to do what you're trying to do.