add_items_by_doi
Add items to your Zotero library by resolving DOIs. Automatically retrieves metadata and creates the correct item type for any DOI-bearing work.
Instructions
Add items to your Zotero library by resolving DOIs. Works with ANY item type that has a DOI — journal articles, books, datasets, preprints, conference papers, reports, etc. For each DOI, resolves metadata via content negotiation and creates the item in Zotero with the correct type automatically. Returns a list of successfully added items (with item_key and title) and any failures.
WHEN TO USE vs add_items:
Use add_items_by_doi when the item HAS a DOI — it auto-resolves all metadata and attaches OA PDFs.
Use add_items when the item does NOT have a DOI, or when you need to override specific metadata fields (add_items_by_doi does not allow metadata overrides).
Mixed batch: if some items have DOIs and others don't, make two separate calls — add_items_by_doi for the DOIs and add_items for the rest.
WORKFLOW TIPS:
To collect metadata for all added items, call get_items_details with the returned item_keys (single batch call).
To create a cited Word document, use the returned item_keys as placeholders in a .docx, then call inject_citations. See inject_citations description for the full workflow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dois | Yes | Array of DOI strings (e.g. ["10.1038/s41586-023-06647-8"]). Each DOI will be resolved and added to Zotero. | |
| tags | No | Tags to apply to all added items | |
| collection_key | No | Zotero collection key to add items to. Get this from create_collection or get_collections. | |
| auto_attach_pdf | No | Attach freely available OA PDFs via Unpaywall (default: true). This is lightweight and adds no cost — leave enabled. Only set to false if PDF attachment is causing errors. |