A Zotero plugin that extends Zotero's local API with additional functionality.
- Extends Zotero's local API with custom endpoints
- Add items to Zotero by identifier (DOI, ISBN, PMID, etc.) via API
- Health check endpoint to verify plugin status
- Easy integration with other tools and scripts
GET /api/plus
Returns a simple message indicating the API is running.
Zotero Local API Plus is running.
POST /api/plus/add-item-by-id
Content-Type: application/json
Adds items to Zotero using identifiers like DOI, ISBN, PMID, etc.
{
"identifier": "10.1038/nature12373", // Required: DOI, ISBN, PMID, etc.
"collectionKey": "ABC123" // Optional: Collection key to add items to
}{
"status": "success",
"addedCount": 1,
"titles": ["Article Title"]
}GET /api/plus/selected-collection
Returns information about the currently selected collection in Zotero.
{
"name": "My Collection",
"key": "ABC123"
}No Collection selected.
- Download the latest release from the GitHub Releases page.
- In Zotero, go to
Tools > Add-ons. - Click the gear icon and select
Install Add-on From File.... - Select the downloaded
.xpifile. - Restart Zotero.
- Ensure Zotero's local API is enabled (go to
Edit > Preferences > Advanced > Files and Folders > Show Data Directory, then editprefs.jsand adduser_pref("extensions.zotero.httpServer.enabled", true);). - Use the API endpoints as described above.
- Node.js 18+
- npm or yarn
npm install
npm run startnpm run buildnpm run lint:checkAGPL-3.0-or-later
Contributions are welcome! Please feel free to submit a Pull Request.