Having issues with total-results header

39 views
Skip to first unread message

Julian Bogdani

unread,
Nov 17, 2025, 10:24:13 AM11/17/25
to zotero-dev

Hello everyone,

I’m encountering an issue with the `Total-Results` header when trying to retrieve the total number of used tags in a group library.

When I request

`https://api.zotero.org/groups/<group-id>/items/tags`

the response header reports `Total-Results: 399`. However, I’m certain that the library contains more than 399 tags. In fact, when iterating through the results, I can successfully retrieve additional tags — for example, this query still returns results:

`https://api.zotero.org/groups/<group-id>/items/tags?start=700&limit=100`

I am using version 3 of the Zotero API.

I rely on `Total-Results` for pagination, but at the moment it appears to provide only a partial count. I could adjust my application to continue requesting pages until an empty array is returned, but that would make the Total-Results header somewhat meaningless.

If helpful, I can provide a link to my library for debugging.

Any assistance or clarification would be greatly appreciated.

Thank you!

Julian



Fai crescere le giovani ricercatrici e i giovani ricercatori

con il 5 per mille alla Sapienza

Scrivi il codice fiscale dell'Università 80209930587
Cinque per mille

謝東霖

unread,
Jan 7, 2026, 8:19:36 AMJan 7
to zotero-dev
I encounter this issue as well.

My case is to fetch `<userOrGroupPrefix>/tags?limit=100`. I have over 100 tags, but the `Total-Results` header in reponse is right 100. As such, I cannot fetch more tags.

Julian Bogdani 在 2025年11月17日 星期一晚上11:24:13 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages