Format a citation
format_citationFormat journal articles, books, websites, chapters, theses, reports, datasets, and preprints as APA 7, MLA 9, Chicago author-date, or IEEE citations using the details you provide.
Instructions
Format a journal article, book, website, book chapter, thesis, report, dataset or preprint as a citation in APA 7, MLA 9, Chicago author date or IEEE, from details you provide. Inputs: type (journal, book, website, chapter, thesis, report, dataset or preprint), title, and optional authors (family plus given names), year, container, publisher, city, edition, editors, translators, volume, issue, pages, doi, url, date_text, accessed, institution, degree, repository, report_number and style (apa7, mla9, chicago-ad, ieee or all). Pass all to get all three styles in one reply, each one with its style name on the line above it. Editors and translators are for books and take the same shape as authors: a book with editors and no authors puts the editors where the author goes, and a book with authors too carries the other names after the title, in the spot each style uses. Example prompt: "Cite this journal article in APA 7: Learning to learn by John Kenneth Smith and Alice Jones, 2020, Journal of Study Skills, volume 4, issue 2, pages 11-25."
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doi | No | ||
| url | No | ||
| city | No | Publisher city, used by Chicago for books. | |
| type | Yes | ||
| year | No | ||
| issue | No | ||
| pages | No | For example "11-25". | |
| style | No | Citation style. Aliases such as APA, MLA 9 and Chicago are accepted. Valid styles: apa7, mla9, chicago-ad (Chicago author date), harvard and ieee, or all to get APA 7, MLA 9 and Chicago author date in one reply with a label above each one. | apa7 |
| title | Yes | ||
| degree | No | The degree of a thesis, like "Ph.D.". | |
| volume | No | ||
| authors | No | ||
| edition | No | For example "2nd". | |
| editors | No | Editors of a book or a chapter, same shape as authors. When a book has editors and no authors, they take the author's place in the citation. | |
| accessed | No | MLA access date, like "14 Oct. 2026". | |
| container | No | Journal name, the book title for a chapter, or website name. Required for a journal article and for a chapter, since without it the citation would be missing the work it appears in. | |
| date_text | No | Website date as you want it shown, like "2026, October 14" for APA or "14 Oct. 2026" for MLA. | |
| publisher | No | ||
| repository | No | Where a preprint was posted, like arXiv. | |
| institution | No | The university or organisation behind a thesis, a report or a dataset. | |
| translators | No | Translators of a book, same shape as authors. | |
| report_number | No | The number of a report or a standard. |