pyzotero

Manage Zotero libraries from Python via the Zotero Web API.

7|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/wsxwj123/opencode-skills-backup --skill pyzotero-wsxwj123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pyzotero
Source: https://github.com/wsxwj123/opencode-skills-backup/tree/main/pyzotero
Command: npx skills add https://github.com/wsxwj123/opencode-skills-backup --skill pyzotero-wsxwj123

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Helps researchers and developers manage Zotero libraries programmatically using the Python client, enabling read, create, update, and delete operations on items, collections, tags, and attachments via the Zotero Web API.

Core Features & Use Cases

  • Read and write Zotero items, collections, and tags via the official API.
  • Create and organize bibliographic references, export citations, and attach files.
  • Automate research workflows such as syncing libraries, exporting BibTeX/CSL-JSON, or populating readings lists.

Quick Start

Create a simple Python script that authenticates with your Zotero API key and prints the titles of items in your library.

Frequently Asked Questions about pyzotero

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Zotero library management with Python?

You can automate Zotero library management by using the pyzotero Python client to read, create, update, and delete items, collections, tags, and attachments via the Zotero Web API.

What do I need to connect Python to my Zotero library?

To connect Python to your Zotero library, you need your Zotero API key, library_id, and library_type. These credentials authenticate the pyzotero client to perform read and write operations.

Can I export references and attachments from Zotero programmatically?

Yes, you can use Python to programmatically export bibliographic references, output citations like BibTeX or CSL-JSON, and attach files to items in your Zotero library via the Web API.

Does this Python approach support both personal and group Zotero libraries?

Yes, this Python approach supports both personal and group Zotero libraries. You specify the library_type during authentication to manage collections and items in research or teaching contexts.

How do I handle errors when updating Zotero items via the API?

When updating Zotero items via the API, error handling guidance is provided to manage failed read and write operations. The pyzotero client returns API errors to help troubleshoot authentication or script issues.

What is the best way to sync and populate Zotero reading lists automatically?

The best way to sync and populate Zotero reading lists automatically is running a Python script with the pyzotero client to read existing items, create new collections, and update tags across your libraries.