Citation Generator
Turn DOIs, ISBNs, PMIDs, URLs, BibTeX, RIS or fields into references and in-text citations: APA, IEEE, Harvard, Vancouver, Chicago, MLA, APA Vietnam.
Result
Press “Run” to see the result.
Send items: DOIs, ISBNs, PMIDs (pmid:123), web page URLs, BibTeX or RIS records, CSL-JSON or plain objects (type, title, authors, year, journal, volume, issue, pages, publisher…), up to 100 items and 25 online lookups per request. DOIs are resolved by doi.org content negotiation (Crossref, DataCite…), ISBNs through Open Library, PMIDs through the NCBI citation exporter and pages through their citation / Dublin Core / Open Graph tags; lookups are cached for a day and nothing is stored. Duplicates (same DOI or PMID) are listed once.
Styles: apa (7th), apa-6, ieee, harvard (Cite Them Right), vancouver (NLM), chicago (author-date, 18th), mla (9th) and apa-vn, the convention of many Vietnamese universities: Vietnamese authors keep their full name in natural order and Vietnamese works come first, sorted by given name. Vietnamese names are parsed correctly (Nguyễn Văn An = family Nguyễn), reversed records from databases are fixed, Vietnamese titles are not title-cased, and lang=vi uses the Vietnamese CSL locale.
The JSON answer has the reference list (text and HTML), the in-text citation of each item and the CSL-JSON data (exports=1 adds BibTeX and RIS). format=text|html|bibtex|ris|csl|docx returns that format directly; DOCX has hanging indents ready for a thesis. Styles and locales: Citation Style Language project (CC BY-SA 3.0); rendering by citation-js and citeproc-js (CPAL-1.0).
Use this in your code
curl -X POST "https://apibox.io.vn/v1/citation" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"style":"apa","items":[{"type":"article","title":"Ứng dụng học máy trong dự báo phụ tải điện","authors":["Nguyễn Văn An","Trần Thị Bình"],"year":2021,"journal":"Tạp chí Khoa học và Công nghệ","volume":"59","issue":"3","pages":"45-60","doi":"10.1234/abc.2021"},{"type":"book","title":"Deep learning","authors":"Goodfellow, Ian; Bengio, Yoshua; Courville, Aaron","year":2016,"publisher":"MIT Press"}]}'const res = await fetch('https://apibox.io.vn/v1/citation', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"style": "apa",
"items": [
{
"type": "article",
"title": "Ứng dụng học máy trong dự báo phụ tải điện",
"authors": [
"Nguyễn Văn An",
"Trần Thị Bình"
],
"year": 2021,
"journal": "Tạp chí Khoa học và Công nghệ",
"volume": "59",
"issue": "3",
"pages": "45-60",
"doi": "10.1234/abc.2021"
},
{
"type": "book",
"title": "Deep learning",
"authors": "Goodfellow, Ian; Bengio, Yoshua; Courville, Aaron",
"year": 2016,
"publisher": "MIT Press"
}
]
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/citation",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"style": "apa", "items": [{"type": "article", "title": "Ứng dụng học máy trong dự báo phụ tải điện", "authors": ["Nguyễn Văn An", "Trần Thị Bình"], "year": 2021, "journal": "Tạp chí Khoa học và Công nghệ", "volume": "59", "issue": "3", "pages": "45-60", "doi": "10.1234/abc.2021"}, {"type": "book", "title": "Deep learning", "authors": "Goodfellow, Ian; Bengio, Yoshua; Courville, Aaron", "year": 2016, "publisher": "MIT Press"}]},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/citation');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"style":"apa","items":[{"type":"article","title":"Ứng dụng học máy trong dự báo phụ tải điện","authors":["Nguyễn Văn An","Trần Thị Bình"],"year":2021,"journal":"Tạp chí Khoa học và Công nghệ","volume":"59","issue":"3","pages":"45-60","doi":"10.1234/abc.2021"},{"type":"book","title":"Deep learning","authors":"Goodfellow, Ian; Bengio, Yoshua; Courville, Aaron","year":2016,"publisher":"MIT Press"}]}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Which APA version is used?
apa is the 7th edition; apa-6 is still available for faculties that require it; apa-vn is APA 7 with the Vietnamese name and ordering convention.
Why is a DOI not found?
The DOI may not be registered or the agency may not support content negotiation. Send the fields or BibTeX instead; failed items are listed in errors.
Are in-text citations numbered for IEEE?
Yes. For IEEE and Vancouver the number is the position in the reference list; author-date styles give (Author, year).