Export citations
Items or a whole collection as BibTeX, BibLaTeX, RIS, CSL JSON or a formatted bibliography.
GET https://cotlet.dev/api/v1/zotero/citations/export
read
Exports the items you name, or every item of a collection, in the format you choose. For a bibliography, pass a citation style; otherwise Zotero uses its default. The response holds the text and the number of entries, so you can check nothing was cut.
Parameters
| Name | Type | Description |
|---|---|---|
| library string | string | 'me' for My Library (default) or a group library ID from list_libraries. |
| item_keys string[] | string[] | Items to export. Use this or collection_key. |
| collection_key string | string | Collection key from list_collections. |
| format string required | string | One of 'bibtex', 'biblatex', 'ris', 'csljson' or 'bib' (formatted bibliography). |
| style string | string | Citation style for format 'bib', e.g. 'apa'. |
Request
curl "https://cotlet.dev/api/v1/zotero/citations/export?collection_key=C4T8WZ2N&format=bibtex" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("zotero", "export_citations", {"collection_key":"C4T8WZ2N","format":"bibtex"}) const result = await cotlet.call('zotero', 'export_citations', {"collection_key":"C4T8WZ2N","format":"bibtex"}); cotlet call zotero export_citations --data '{"collection_key":"C4T8WZ2N","format":"bibtex"}' Example response
{
"format": "bibtex",
"item_count": 2,
"content": "@article{lee2025sparse,\n title = {Sparse attention for long documents},\n author = {Lee, M. and Okafor, T.},\n year = {2025}\n}\n\n@article{novak2024survey,\n title = {A survey of retrieval for question answering},\n author = {Novak, P.},\n year = {2024}\n}"
}