export_bibliography
Generate formatted reference lists or in-text citations, plus portable CSL-JSON or BibTeX exports, from Zotero item keys using a chosen citation style.
Instructions
Generate formatted bibliography/citation entries or portable export data for one or more items. Read-only.
keys: item keys (see search_items/get_item). Keys not found in the
library are simply absent from the result -- not an error.
style: a Zotero/CSL style ID (e.g. "apa",
"modern-language-association", "chicago-note-bibliography") --
only used when format is "bibliography" or "citation"; ignored
otherwise. An unknown style raises an error naming the problem.
format:
"bibliography" (default) -- HTML reference-list entries, one per
found key, in style.
"citation" -- HTML in-text citations, one per found key, in
style.
"csljson" -- structured CSL-JSON, one object per found key --
portable, importable into other reference managers or format
converters.
"bibtex" -- one combined BibTeX text blob covering all found
keys, ready to paste into a LaTeX project.
Returns content, whose type depends on format: a list of strings
for "bibliography"/"citation", a list of objects for "csljson", or a
single string for "bibtex".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| style | No | apa | |
| format | No | bibliography |