# Public API for third-party plugins to access Zotero DB

**URL:** <https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62>\
**Category:** Feature requests\
**Created:** [November 3, 2022, 9:50pm UTC](https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62 "2022-11-03T21:50:06Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forum-files.zotlit.com/original/1X/e4d94e69c54a677f10de236dd50dd33ee9459278.png) [@system](https://forum.zotlit.com/u/system)\
**Post date:** [November 3, 2022, 9:50pm UTC](https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62/1 "2022-11-03T21:50:06Z")

</div>

Thank you for this great plugin. The integration with the Zotero DB in the Zotero Plugin works great. As mentioned in [Discord](https://discord.com/channels/686053708261228577/722584061087842365/1036051647845122190) it would be helpful (at least for me but I’m sure also for others) if you considered introducing an API or some other mechanism to allow other plugins to read the Zotero DB. Thanks

---

<div class="post-metadata">

**Author:** ![system](https://forum-files.zotlit.com/original/1X/e4d94e69c54a677f10de236dd50dd33ee9459278.png) [@system](https://forum.zotlit.com/u/system)\
**Post date:** [February 19, 2023, 11:14pm UTC](https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62/2 "2023-02-19T23:14:17Z")

</div>

@aidenlx sorry to bother you about this. I was wondering if you could provide any suggestion on how it could be possible to read the Zotero DB from another plugin. My attempts to integrate sqlite into my plugin have hit a wall

---

<div class="post-metadata">

**Author:** ![aidenlx](https://forum.zotlit.com/user_avatar/forum.zotlit.com/aidenlx/32/7_2.png) [@aidenlx](https://forum.zotlit.com/u/aidenlx)\
**Post date:** [February 20, 2023, 1:23am UTC](https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62/3 "2023-02-20T01:23:23Z")

</div>

Sorry for the long wait! The next major update obsidian plugin will arrive in two week or so. I’ve been busy with the work and refactoring the plugin. Can you first try describe the needs for the API?

> could provide any suggestion on how it could be possible to read the Zotero DB from another plugin

I’m using a [custom build of better-sqlite3](https://github.com/aidenlx/better-sqlite3/), and download binaries for the github release based on machine’s architecture. I’ve put database instance inside worker so that reading db won’t block UI. The core logic for init database instance can be found here, Although I still recommend you to use API exposed from this plugin in next version:

[https://github.com/aidenlx/obsidian-zotero/blob/dev/lib/db-worker/src/database.ts](https://github.com/aidenlx/obsidian-zotero/blob/dev/lib/db-worker/src/database.ts)

---

<div class="post-metadata">

**Author:** ![system](https://forum-files.zotlit.com/original/1X/e4d94e69c54a677f10de236dd50dd33ee9459278.png) [@system](https://forum.zotlit.com/u/system)\
**Post date:** [March 24, 2023, 8:59am UTC](https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62/4 "2023-03-24T08:59:43Z")

</div>

@stefanopagliari The update is out now!

---

<div class="post-metadata">

**Author:** ![system](https://forum-files.zotlit.com/original/1X/e4d94e69c54a677f10de236dd50dd33ee9459278.png) [@system](https://forum.zotlit.com/u/system)\
**Post date:** [March 24, 2023, 12:26pm UTC](https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62/5 "2023-03-24T12:26:09Z")

</div>

@aidenlx @MSBack  
Thank you for this.  
Sorry for not seeing before your message from February 20.  
Ideally I would like a way for other plugins to be able to run searches on the Zotero DB once your plugin is installed and activated.

---

<div class="post-metadata">

**Author:** ![system](https://forum-files.zotlit.com/original/1X/e4d94e69c54a677f10de236dd50dd33ee9459278.png) [@system](https://forum.zotlit.com/u/system)\
**Post date:** [March 24, 2023, 12:44pm UTC](https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62/6 "2023-03-24T12:44:53Z")

</div>

> Ideally I would like a way for other plugins to be able to run searches on the Zotero DB once your plugin is installed and activated.

Isn’t that what this new update (1.0.0) does? The changelog says:

> forward API to global window property zoteroAPI for other plugins to use.

---

<div class="post-metadata">

**Author:** ![aidenlx](https://forum.zotlit.com/user_avatar/forum.zotlit.com/aidenlx/32/7_2.png) [@aidenlx](https://forum.zotlit.com/u/aidenlx)\
**Post date:** [March 24, 2023, 2:41pm UTC](https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62/7 "2023-03-24T14:41:48Z")

</div>

the search function is not yet available, and currently available APIs is listed in here: [https://obzt.aidenlx.top/reference/api/interfaces/PluginAPI](https://obzt.aidenlx.top/reference/api/interfaces/PluginAPI)

---

<div class="post-metadata">

**Author:** ![system](https://forum-files.zotlit.com/original/1X/e4d94e69c54a677f10de236dd50dd33ee9459278.png) [@system](https://forum.zotlit.com/u/system)\
**Post date:** [September 7, 2023, 9:54am UTC](https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62/8 "2023-09-07T09:54:34Z")

</div>

Hey @aidenlx, is the Zotlit API still available? The documentation link above is dead, and I can’t find anything about it in the new docs. I am interested in using the API to develop a plugin that provides some Zotero related workflows.

---

<div class="post-metadata">

**Author:** ![aidenlx](https://forum.zotlit.com/user_avatar/forum.zotlit.com/aidenlx/32/7_2.png) [@aidenlx](https://forum.zotlit.com/u/aidenlx)\
**Post date:** [September 11, 2023, 2:05pm UTC](https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62/9 "2023-09-11T14:05:45Z")

</div>

Yes, it’s still there, it’s just that I haven’t migrate that part to new docs. I’ll see if API doc generation is still feasible in new document framework.

---

<div class="post-metadata">

**Author:** ![system](https://forum-files.zotlit.com/original/1X/e4d94e69c54a677f10de236dd50dd33ee9459278.png) [@system](https://forum.zotlit.com/u/system)\
**Post date:** [September 28, 2023, 2:02am UTC](https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62/10 "2023-09-28T02:02:05Z")

</div>

This issue is stale because it has been open for 14 days with no activity.

---

<div class="post-metadata">

**Author:** ![system](https://forum-files.zotlit.com/original/1X/e4d94e69c54a677f10de236dd50dd33ee9459278.png) [@system](https://forum.zotlit.com/u/system)\
**Post date:** [September 28, 2023, 7:26am UTC](https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62/11 "2023-09-28T07:26:58Z")

</div>

> Yes, it’s still there, it’s just that I haven’t migrate that part to new docs. I’ll see if API doc generation is still feasible in new document framework.

Will you give an update here when the API docs are back?

---

<div class="post-metadata">

**Author:** ![system](https://forum-files.zotlit.com/original/1X/e4d94e69c54a677f10de236dd50dd33ee9459278.png) [@system](https://forum.zotlit.com/u/system)\
**Post date:** [October 13, 2023, 2:05am UTC](https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62/12 "2023-10-13T02:05:35Z")

</div>

This issue is stale because it has been open for 14 days with no activity.

---

<div class="post-metadata">

**Author:** ![system](https://forum-files.zotlit.com/original/1X/e4d94e69c54a677f10de236dd50dd33ee9459278.png) [@system](https://forum.zotlit.com/u/system)\
**Post date:** [October 13, 2023, 7:02am UTC](https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62/13 "2023-10-13T07:02:00Z")

</div>

Bump

---

<div class="post-metadata">

**Author:** ![system](https://forum-files.zotlit.com/original/1X/e4d94e69c54a677f10de236dd50dd33ee9459278.png) [@system](https://forum.zotlit.com/u/system)\
**Post date:** [November 28, 2023, 10:35pm UTC](https://forum.zotlit.com/t/public-api-for-third-party-plugins-to-access-zotero-db/62/14 "2023-11-28T22:35:59Z")

</div>

Any update on the Zotlit API?
