Mapping Endpoints
Note
The examples below use API endpoints from the live COPO website.
To use the demo website instead, replace https://copo-project.org/api/
with https://demo.copo-project.org/api/ in the URLs.
Tip
To view details of the endpoint, click the
Show endpoint details button.Then, inside that section, click the
Show API query parameters button to see input parameter details.-
By default, the API returns results in JSON format and uses the Tree of Life (ToL) standard. You do not need to specify these unless you want to override them.
To explicitly include them in the API URL:
Use
?return_type=jsonor?standard=tolif there are no other query parameters.Use
&return_type=jsonor&standard=tolif the URL already includes other parameters.
Fetch Mapped fields for the latest manifest version
Show endpoint details
Show API query parameters
project (required): The name of the project [1]
standard (optional): The standard to retrieve the manifest in. Options include tol (default), dwc, ena and mixs.
return_type (optional): Output format for the results. Options include json (default) and csv
To apply filters, append them to the API URL as follows mapping?project
=<project>&standard=<standard>&return_type=<return_type>.
Replace <project>, <standard> and <return_type> with the
desired values. See the example below.
Usage
Please include at least the
projectparameter value in the API URL to retrieve the mapped fields for the latest manifest version. Replace<project>with the desired project name.https://copo-project.org/api/mapping?project=<project>$ curl -X GET "https://copo-project.org/api/mapping?project=<project>" -H "accept: application/json"
Example
To retrieve the
dwcmapped fields for thedtolproject in the default return format, use the following URL:https://copo-project.org/api/mapping?project=dtol&standard=dwc$ curl -X GET "https://copo-project.org/api/mapping?project=dtol&standard=dwc" -H "accept: application/json"
Footnotes