Can't request group library using Zotero API (forbidden)

92 views
Skip to first unread message

Deniz

unread,
Mar 26, 2024, 12:52:13 AM3/26/24
to zotero-dev
Hi!

I'm working on a project where a public group has been made accessible to me, and yet I get a 403 forbidden when I make GET requests against the group/groupId endpoint. I also am getting empty responses to /user/userId/groups using my userID, and using the group owner's userID as well. The latter might make sense if this request is supposed to be an authenticated one, so I obviously can't look things up as if I'm someone else. I don't understand why I can't see my own groups though, and I should be in at least one that my user has invited me to. 

Any thoughts are welcome.

Deniz

Dan Stillman

unread,
Mar 26, 2024, 1:25:35 AM3/26/24
to zoter...@googlegroups.com
You would get a 403 if you're not using an API key or if the account
associated with the API key doesn't have access to the resources.

https://www.zotero.org/support/dev/web_api/v3/basics#authentication

Deniz

unread,
Mar 26, 2024, 11:38:01 AM3/26/24
to zoter...@googlegroups.com
This is a public library though, and I thought that there is no need for auth while reading from public libraries. 

--
You received this message because you are subscribed to a topic in the Google Groups "zotero-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/zotero-dev/6d1RR4NMQ5k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to zotero-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zotero-dev/0100018e793889bf-5bb365a8-bedd-4388-87ae-69ae926b144b-000000%40email.amazonses.com.

Sebastian Karcher

unread,
Mar 26, 2024, 1:05:28 PM3/26/24
to zoter...@googlegroups.com
If it's a public group, can you share the exact requests that you're sending? Have you tested the equivalent request using curl?

You received this message because you are subscribed to the Google Groups "zotero-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zotero-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zotero-dev/CAA8R-mxKEdaTBO74XR8a-7ZvM6Qf2fsjRfjwuHKSz4Cm6v9RSw%40mail.gmail.com.


--
Sebastian Karcher, PhD
www.sebastiankarcher.com

Deniz

unread,
Mar 26, 2024, 5:28:59 PM3/26/24
to zoter...@googlegroups.com
Sure.

curl also returns a Forbidden. Thanks for the quick replies as well!


fcheslack

unread,
Mar 26, 2024, 6:11:25 PM3/26/24
to zoter...@googlegroups.com

Deniz

unread,
Mar 26, 2024, 6:17:44 PM3/26/24
to zoter...@googlegroups.com
thanks, I suspected as much. I will follow up!

Reply all
Reply to author
Forward
0 new messages