Citoid/API

This document describes how to interact with the citoid service.

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

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

The API endpoint accepts POST data. In the POST request, two arguments are accepted:  and. 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, 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. is most similar to and most easily translatable to the English Wikipedia's 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, 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.