Get species by ID
GET
/api/v1/species/{id}Gets a species when provided with an ID.
Parameters
Path Parameters
id*
Species ID
Typeinteger
RequiredExample
1234567890
Responses
OK
JSON
{
"common_name": "Southern Reef Squid",
"id": 1234567890,
"images": [
{
"attribution": "Tiffany Kosch, CC BY-NC-SA 4.0",
"src": "https://inaturalist-open-data.s3.amazonaws.com/photos/340064435/medium.jpg"
}
],
"species": "Sepioteuthis australis"
}
GET
/api/v1/species/{id}Samples
cURL
curl -X GET https://openfish.appspot.com/api/v1/species/{id}
JavaScript
fetch("https://openfish.appspot.com/api/v1/species/{id}")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("https://openfish.appspot.com/api/v1/species/{id}");
Python
import requests
response = requests.get("https://openfish.appspot.com/api/v1/species/{id}")
print(response.json())