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

Parameters: export_citations
NameTypeDescription
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
curl "https://cotlet.dev/api/v1/zotero/citations/export?collection_key=C4T8WZ2N&format=bibtex" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("zotero", "export_citations", {"collection_key":"C4T8WZ2N","format":"bibtex"})
Node.js
const result = await cotlet.call('zotero', 'export_citations', {"collection_key":"C4T8WZ2N","format":"bibtex"});
CLI
cotlet call zotero export_citations --data '{"collection_key":"C4T8WZ2N","format":"bibtex"}'

Example response

JSON

{
  "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}"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.