API JSON Request with include=bib not returning data array
Dear all,
i am writing a small php script to show all the bibliographies on the team websites of our department.
It all seems to work pretty well, however, I have run into one issue that hinders me to have less api requests:
If I use this:
https://api.zotero.org/users/.../collections/.../items/top?format=json&key=...
The returned data includes the subset "data" with itemType, authors etc.
However, I would prefer to use this to have a formatted bibliography in the array:
https://api.zotero.org/users/.../collections/.../items/top?format=json&include=bib&style=mis-quarterly&key=...
But doing the latter one does not include the subset "data" in the returned results anymore, so I cannot easily filter by authors or itemType, which I need.
The workaround is to do many different API requests for each itemType and Author, which is rather slow.
Any ideas or suggestions?
Thank you,
Dennis
i am writing a small php script to show all the bibliographies on the team websites of our department.
It all seems to work pretty well, however, I have run into one issue that hinders me to have less api requests:
If I use this:
https://api.zotero.org/users/.../collections/.../items/top?format=json&key=...
The returned data includes the subset "data" with itemType, authors etc.
However, I would prefer to use this to have a formatted bibliography in the array:
https://api.zotero.org/users/.../collections/.../items/top?format=json&include=bib&style=mis-quarterly&key=...
But doing the latter one does not include the subset "data" in the returned results anymore, so I cannot easily filter by authors or itemType, which I need.
The workaround is to do many different API requests for each itemType and Author, which is rather slow.
Any ideas or suggestions?
Thank you,
Dennis
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.
(Also, it's better to use the `Zotero-API-Key` header rather than the `key` parameter.)
You can post further API questions to zotero-dev — we try to keep technical discussion there.
Sorry, it seems that I was just to stupid to find this in the doc even though I was searching and browsing a lot.