Get Zotero item key from Firefox

To read an item via the Zotero API, you need to have the item key. Oddly, the Zotero Firefox app does not provide simple access to the item keys. The following export translator will copy the item keys as a comma-separated list to the clipboard on Ctrl+Shift+c in the usual manner. The translator needs to be saved as a javascript file (.js file extension) in the Zotero translators directory. My translators directory was here ~/.mozilla/firefox/wgcm6dkk.default/zotero/translators/. The code is based on that found here:, but pared down to give nothing apart from the list of item keys.

"label":"Zotero Item Key",
"creator":"Adam Smith",
"lastUpdated":"Fri 22 Aug 2014 12:24:20 PM EDT"

function doExport() {
   var item;
   if(item = Zotero.nextItem())
   while(item = Zotero.nextItem())

Leave a Reply

Your email address will not be published. Required fields are marked *