Citoid/API

This document describes how to interact with the citoid service.

Currently there is two endpoints, /api and /url, i.e., "http://localhost:1970/url".

The api endpoint accepts GET data. In the GET request, two arguments are accepted:  and. Search currently takes URLs and DOIs.

The api endpoint accepts POST data. In the POST request, two arguments are accepted:  and. Url only takes URLs.

In prior versions of citoid, only one format was available. This is now available as. The other two formats are  and. is the format used by the zotero service used by citoid and is the format that citoid uses internally. is the targeted format, and is designed for use by TemplateData found in citation templates. You may find, depending on your use case, for the  format to be more rich. is most similar to and most easily translatable to en-wiki CS1 style citation formats but as can be indicated by its name, may not stick around for too much longer.

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