Feature request: URL scheme to get citation/bibliography for an item
Hi! I would like to offer citing based on csl files in my LaunchBar action. But it seems like quite an undertaking. So I was wondering if it would be possible to expose this functionality with an url scheme. I guess other plugins and tools could benefit from that as well.
Enable "Allow other applications on this computer to communicate with Zotero" from the Advanced pane of the Zotero settings. You can then run, e.g.,
curl 'http://localhost:23119/api/users/0/items?limit=10&sort=dateAdded'
to see your 10 most recent items.More details: https://github.com/zotero/zotero/blob/main/chrome/content/zotero/xpcom/localAPI/server_localAPI.js#L28
I tried to use a local custom CSL file for citation but that does not seem to work (yet?). It did work with styles from the standard repository (e.g., apa) or the URL of a remote CSL file. Locally would be nice though.
const url = `http://localhost:23119/api/users/0/items/${itemKey}?format=json&include=bib,citation&style=${style}`;
http://www.zotero.org/styles/
http://www.zotero.org/styles/
prefix in the API call. However, if the local CSL file does not have it in the ID, I get an error 500internal server error
.Is it possible to get those in Markdown instead of HTML?
No problem if not. I can convert the HTML into Markdown in my script, but I wonder if I am doing work I don't need to do. ;)
Looking at
https://www.zotero.org/support/dev/web_api/v3/basics
it seems like a no.