Export Zotero items
zotero_exportExport Zotero items as raw bibliographic text in formats like BibTeX, RIS, or CSL JSON, with filters for collections, item types, or search terms.
Instructions
Export items in a bibliographic format and return the raw text. Choose format (bibtex, biblatex, better-biblatex, ris, csljson, csv, mods, tei, coins, rdf_*, refer, wikipedia, bookmarks). Stock formats are rendered by Zotero itself: by the desktop app when it serves the selected library (no cloud key needed), by the Web API otherwise. biblatex is Zotero's STOCK translator; BBT-specific options (citation-key generation, sentence-case, biblatexExtendedNameFormat, unicode→LaTeX) are NOT available there. better-biblatex uses the local desktop Better BibTeX plugin (your configured BBT export options apply) and is only available when desktop Zotero + BBT are running; it degrades to built-in biblatex otherwise. Narrow with item_keys, collection_key, q, or item_type. A limit (default 50) is always applied. An export that renders no entries says so instead of returning a blank body: named item_keys that render none are an error, and any other selection that renders none comes back with empty: true. For styled human bibliographies use the bibliography tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Quick-search string to narrow the export (title/creator/year). | |
| limit | No | Max items to export (default 50, max 100). | |
| format | Yes | Export format to render, e.g. "bibtex", "biblatex", "better-biblatex", "ris", "csljson", "csv". "better-biblatex" needs the desktop Better BibTeX plugin and degrades to "biblatex" without it. | |
| item_keys | No | Restrict to these 8-character item keys. Keys that render no entry are an error rather than a blank body. | |
| item_type | No | Boolean itemType filter, e.g. "journalArticle || book" or "-attachment". | |
| library_id | No | Numeric id of the library to address, e.g. 5234875 for a group (zotero_groups lists the ids you can reach). Omit to use the configured default library; an id given without library_type is read as a group id. | |
| library_type | No | Which library to address: "user" (a personal library) or "group" (a shared group library). Omit to use the library this server is configured for. "group" on its own is refused: pass library_id with it. | |
| collection_key | No | Restrict to a collection by key. A key this library does not have is refused, never answered with the whole library. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The raw export, the same bytes as the text block. | |
| empty | No | True when Zotero rendered no entries at all for the selection. | |
| format | Yes | The format actually rendered; "biblatex" when better-biblatex degraded to the built-in translator. | |
| length | Yes | Characters of exported text. | |
| notice | No | Why an empty export is empty. | |
| source | No | Set to "local-bbt" when the desktop Better BibTeX plugin rendered it. | |
| degradedToBuiltIn | No | True when better-biblatex was asked for and Zotero's built-in biblatex answered. |