Is there a zbib API that returns BibTeX entry string?
Hello,
Is there a zoterobib/zbib API that can return a BibTeX entry string?
At present, I can paste a URL in the field on https://zbib.org/, and have it return a Bibliography formatted as per the selected citation style.
Instead I need these:
1. Raw BibTeX entry.. I later generate the Bibliography using Pandoc.
2. Need to fetch the BibTeX entry from command line. So I cannot manually visit the site and paste the URL. Is there an API that I can use that returns the BibTeX entry in a JSON object?
Thanks.
PS: I cannot install Zotero on my machine. It is RHEL 6.8 which has only GTK2. The available downloads work only on Linux systems with GTK3. So I am relying on zbib.org.
Is there a zoterobib/zbib API that can return a BibTeX entry string?
At present, I can paste a URL in the field on https://zbib.org/, and have it return a Bibliography formatted as per the selected citation style.
Instead I need these:
1. Raw BibTeX entry.. I later generate the Bibliography using Pandoc.
2. Need to fetch the BibTeX entry from command line. So I cannot manually visit the site and paste the URL. Is there an API that I can use that returns the BibTeX entry in a JSON object?
Thanks.
PS: I cannot install Zotero on my machine. It is RHEL 6.8 which has only GTK2. The available downloads work only on Linux systems with GTK3. So I am relying on zbib.org.
I don't believe the Zotero translation API used in zbib is currently exposed, but I could be wrong.
https://github.com/zotero/translation-server
You can easily write a script for that that will let you get BibTeX from a given URL from the command line — you'd basically just combine the translate_url and translate_export example scripts there.
npm i
andnpm start
.(Technically the server part isn't even necessary and the translation code could be run just via a script. There's an example of that here, though that's only for the web translation part, not the BibTeX part.)
Citoid may be fine — we (as in Zotero) just can't vouch for it. I know they're in the process of updating it to use translation-server-v2, but right now it may still be using an ancient version of the server, and the translators are almost certainly older. I think it also may use some of its own logic for some things that translation-server handles natively. Just to pick a random example, I get much better metadata for the current top article on the NYT homepage from a local translation-server than from their public API.