Unable to GET data via the API.

Trying to connect Zotero to Coda via Make. This is the API request/response data. Make support is confident this error is on the Zotero side. Any idea what might be going wrong?

{
"response": {
"status": 404,
"headers": {
"date": "Wed, 24 Apr 2024 07:50:18 GMT",
"content-type": "text/html; charset=UTF-8",
"content-length": "9",
"connection": "close",
"server": "Apache/2.4.58 ()",
"strict-transport-security": "max-age=31536000; includeSubDomains; preload",
"zotero-api-version": "3",
"zotero-schema-version": "28"
},
"body": "Not found"
},
"request": {
"url": "https://api.zotero.org/users/{{userID}}/collections/{{ID}}/items?dateModified=desc",
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer {{key removed for privacy}}",
"User-Agent": "Make/production"
},
"method": "GET"
}
}
  • (Please post API questions to zotero-dev. We try to keep technical discussions there.)

    I don't know what Make or Coda are, but "confident this error is on the Zotero side" is a bizarre thing to say. The API obviously works. You'd get a 404 if you're using a valid API key but are 1) making an invalid request, 2) requesting data that doesn't exist, or 3) requesting data not in a library the key has access to.

    In general this isn't something we can help with without knowing the actual request URL, but there was only one request with User-Agent "make/production" at that time, and it wasn't the one you posted. This was the request:

    [24/Apr/2024:03:50:18 -0400] "GET /users/:userID:/items/:key:/items?dateModified=desc&limit=10 HTTP/1.1" 404 9 "-" "Make/production"

    I'm not sure why the request you posted is different, but this one isn't valid.
Sign In or Register to comment.