Citation

Get citation data given an article identifier.

Generates citation data given a URL, DOI, PMID, or PMCID.

Automated requests can be made at a rate of 1 request per second (rps).

See more at Citoid service documentation

The citation data can be requested in one of the following formats:

  • mediawiki: format designed for MediaWiki to be used with templateData. Uses Zotero field names.
  • mediawiki-basefields: mediawiki format with Zotero basefield field names.
  • zotero: format used by Zotero.
  • bibtex: format used in conjunction with LaTeX documents. See bibtex.org.
  • wikibase: format designed for Wikibase.

Stability: unstable

get/data/citation/{format}/{query}

Request

  • Base URL: https://en.wikipedia.org/api/rest_v1
  • URL: https://en.wikipedia.org/api/rest_v1/data/citation/{format}/{query}
  • Auth: none declared

Path parameters

format'mediawiki' | 'mediawiki-basefields' | 'zotero' | 'bibtex' | 'wikibase' required

The format to use for the resulting citation data

querystring required

URL of an article, DOI, PMCID or PMID in the URL-encoded format. Note that on the Swagger-UI doc page you don't need to URI-encode the parameter manually, it will be done by the docs engine.

Headers

Accept-Languagestring

For some articles the result depends on the Accept-Language header, so provide it if localized content is required.

Response

The citation data in the requested format

Changes

No recorded changes to this operation across all 1 revision of this API.