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.
  • Hi! I am from revalue and see our team reached out two years ago about the same issue I'm having now. I am trying to use the Zotero/Coda integration (https://coda.io/packs/zotero-37020/administer) and receiving the following error:
    https://s3.amazonaws.com/zotero.org/images/forums/u21245139/1gtbn4v81g95hneg437u.png

    Coda says it's receiving an invalid API key -
    https://s3.amazonaws.com/zotero.org/images/forums/u21245139/l0bdl9x2p2qld9w29p1c.png

    Coda wrote, "I’m not sure there is anything else we can troubleshoot from the Coda side, since Zotero’s API is simply denying the request. In that case, I would recommend contacting Zotero Support and asking why the API request is returning a Forbidden response."
  • dstillman Zotero Team
    edited yesterday at 4:04pm
    We'd need the specific request URL and request/response headers (API key redacted to the first three characters), but "Invalid key" really does just mean what it says — it's not a valid API key. We don't have anything to do with this integration and can't help with it.
Sign In or Register to comment.