Citoid/API

This document describes how to interact with the citoid service.

Currently there is one supported endpoint, . There is a publicly available installation of this endpoint at https://citoid.wikimedia.org/api.

For developers, you will find this endpoint at http://localhost:1970/api by default.

The API endpoint accepts GET data. In the GET request, two arguments are accepted:  and.

currently takes URLs, DOIs, PMCIDs, and PMIDs. If the DOI, PMCID, or PMID is unresolvable, you will get back a 404 response and a JSON error message. If the URL is unresolvable, or if the the type is indeterminable, or if there are HTTP status errors at the URL, you will get back a 520 response and a citation with very little metadata.

takes ,   and. is the format used by the zotero service, and is the format that citoid uses internally. is the targeted format, and is designed for use by TemplateData maps found in citation templates. You may find, depending on your use case, for the  format to be richer.

Sample output
Below are sample outputs of the three export formats. The primary difference is in how creators/authors/editors are handled. In, these are all in the   object, in   they are formatted like in en wiki CS1 fields, and in   they are in a list of   lists. In both  and , PMID is available as a field and ISBN and ISSN are lists.