cite_dois
Format citations for one or more DOIs in any citation style or export format, including APA, IEEE, BibTeX, and RIS, to build bibliographies and reference lists.
Instructions
Format citations for one or more DOIs in any citation style or export format.
Uses DOI content negotiation, so it works for Crossref AND DataCite DOIs (arXiv, Zenodo, ...).
When to use:
- Building a bibliography / reference list for a thesis or paper.
- Exporting references to Zotero, Mendeley or EndNote (bibtex / ris).
Args:
dois: List of DOIs (max 50), e.g. ["10.1038/nature14539", "10.1145/3065386"].
style: Citation style or export format:
- "apa" (default), "ieee", "vancouver", "chicago", "mla", "harvard", "nature"
- any other CSL style id from https://github.com/citation-style-language/styles,
e.g. "american-medical-association"
- "bibtex", "ris" or "csl-json" for reference-manager exports
Returns:
{"style": str, "citations": [{"doi": str, "citation": str}], "failed": [{"doi", "error"}]}
Example:
cite_dois(["10.1038/nature14539"], style="ieee")
-> "Y. LeCun, Y. Bengio, and G. Hinton, “Deep learning,” Nature, vol. 521, no. 7553, ..."
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dois | Yes | ||
| style | No | apa |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||