Overview:
The Native Species Resolver (NSR) API processes multiple taxon + political division observations in a single operation. The request must be sent as a POST, with the input observations formatted as JSON. The results are also returned as JSON. Currently no additional parameters or options are supported. Because of fixed time costs of the batch processing, very large batches can be processed quickly using the API.
Input:
Input data requirements are the same as for the NSR Batch Mode application. See section "Prepare the input file" for details. Regardless of the format of the original data, you must transform it to JSON before sending the API request. The example script below shows how to do this in R.
Output:
Results are returned by the NSR API as JSON. See the example R script, below, for details of how to work with JSON results. Contents of then NSR API output are the same as for the NSR Batch Mode application. For details, see section Results file, also the NSR Data Dictionary.
Example:
This R script gives an example of how to call the NSR API in R. The example uses a small sample file of taxon observations, which you can download here.