Skip to content

Import from iNaturalist

POST
/api/v1/species:import-from-inaturalist

Roles required: Admin

Imports all species that are descendants of a Phylum/Class/Order/etc from iNaturalist's taxa API.

Parameters

Query Parameters

descendants_of*

Phylum/Class/Order/etc to import

Typestring
Required
ExampleInfraorder Cetacea

Responses

OK

Samples

cURL
curl -X POST https://openfish.appspot.com/api/v1/species:import-from-inaturalist
JavaScript
fetch("https://openfish.appspot.com/api/v1/species:import-from-inaturalist", { method: "POST" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://openfish.appspot.com/api/v1/species:import-from-inaturalist");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.post("https://openfish.appspot.com/api/v1/species:import-from-inaturalist")
print(response.json())