API Limit Changed from 50 to 10?

87 views
Skip to first unread message

Avana Vana

unread,
Dec 10, 2021, 8:18:26 PM12/10/21
to zotero-dev
I just encountered an issue batch processing updates with the Zotero API.

The docs say 50 items per request, and that is what had been working, and between requests with multiple batches, my code sleeps for 10 seconds to avoid Zotero's rate limiting.

Yet I just got the following error returned in my server logs from Zotero:
A maximum of 10 records can be created per request but you have provided 50.(INVALID_RECORDS)[Http code 422]

Has the limit changed from 50 to 10??
Docs:
Screen Shot 2021-12-10 at 8.15.12 PM.png

Dan Stillman

unread,
Dec 11, 2021, 3:47:42 AM12/11/21
to zoter...@googlegroups.com
On 12/10/21 8:18 PM, Avana Vana wrote:
I just encountered an issue batch processing updates with the Zotero API.

The docs say 50 items per request, and that is what had been working, and between requests with multiple batches, my code sleeps for 10 seconds to avoid Zotero's rate limiting.

Yet I just got the following error returned in my server logs from Zotero:
A maximum of 10 records can be created per request but you have provided 50.(INVALID_RECORDS)[Http code 422]

That's not a message from the Zotero API.

Avana Vana

unread,
Dec 11, 2021, 2:57:41 PM12/11/21
to zotero-dev
Yes, I see now.  Apparently Airtable has a page limit of 100 for GET requests but only 10 for PUT/PATCH requests, and the message was coming from Airtable.  (The script syncs to Zotero and then back to Airtable with Zotero key and version for each record)

Thanks!
Reply all
Reply to author
Forward
0 new messages