The API citation service returns a citation for a given DOI or Query PID. The Oceans 3.0 API allows this process to be automated, which facilitates easy computer-to-computer tasks such as scheduled record retrieval or download of large numbers of citations. Citations are formatted according to ESIP guidelines established by the earth science community as follows:
where
While citations for our DOIs can also be retrieved from DataCite using their API, only Ocean Networks Canada can provide citations for specific subsets of our data through the use of Query PIDs stored in our Oceans 3.0 system.
See the Oceans 3.0 API Home for more information about all our available web services.
https:/data.oceannetworks.ca/api/citationText
Method=get - retrieves a citation for that DOI or Query PID
The webservice parameter can be either the DataCite DOI OR the ONC queryPid
| Parameter | Description | Example |
|---|---|---|
| DOI | The DOI of the dataset you want to cite. | doi=10.21383/5cxhry6t2x |
| queryPid | The Query PID of the data subset you want to cite. | queryPid=8297994 |
Example call (DOI): https://data.oceannetworks.ca/api/citationText?method=get&doi=10.34943/115343a9-6d88-4f6c-a88b-9a7b17ad53e0
Example call (Query PID): https://data.oceannetworks.ca/api/citationText?method=get&queryPid=8297994
A successful API call returns the citation in JSON format.






For assistance or further enquiries, please email us a datacitations@oceannetworks.ca.
| 127 | Invalid parameter value | Occurs when an invalid code is used in the filter. Most filters require an exact match. |
| 128 | Missing parameter | Occurs when a required parameter is missing. |
| 129 | Invalid parameter name | Occurs when a filter parameter is in the query but is not supported. |