The Geographic Name Resolution Service (GNRS) API processes multiple political division names in a single request. The data are sent as a POST with the input data formatted as JSON. Results are also returned as JSON. Currently no additional parameters or options are supported.
Input data requirements are the same as for the GNRS Batch Mode application. See "GNRS File Format" 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.
Results are returned as JSON. See the example R script in the GNRS GitHub repository for details of how to work with JSON results. For a detailed description of the GNRS output, see the GNRS Data Dictionary.