Possible to get id of all "child" items of a parent via API?

I feel I must be missing something... via API, I can get the number of children of a parent item (numChildren), but I cannot get their IDs.
Am I missing this somehow? or must one really sync all the collection, and from there see which items are children of the same parent?

The point is to include this in a script that would identify instances when an item has both a pdf and an html attachment (possibly combining it with other criteria).
  • You can use <userOrGroupPrefix>/items/<itemKey>/children, but if you're doing it for all items it may indeed be simpler/faster to just make non-/top requests and match up the child items to their parents.

    (For other API questions, best to post to zotero-dev — we try to keep technical discussions there.)
  • thanks a lot! I couldn't find through the "userOrGroupPrefix/items/itemKey" and somehow missed this in the documentation. All fine now, thanks.

    And thanks for the tip on zotero-dev, I'll keep this in mind.
Sign In or Register to comment.