Get capture source by ID
GET
/api/v1/capturesources/{id}Gets a capture source when provided with an ID.
Parameters
Path Parameters
id*
Capture Source ID
Typeinteger
RequiredExample
1234567890
Responses
OK
JSON
{
"camera_hardware": "pi cam v2 (wide angle lens)",
"id": 1234567890,
"location": "-32.12345,139.12345",
"name": "Stony Point Cuttle Cam",
"site_id": 246813579
}
GET
/api/v1/capturesources/{id}Samples
cURL
curl -X GET https://openfish.appspot.com/api/v1/capturesources/{id}
JavaScript
fetch("https://openfish.appspot.com/api/v1/capturesources/{id}")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("https://openfish.appspot.com/api/v1/capturesources/{id}");
Python
import requests
response = requests.get("https://openfish.appspot.com/api/v1/capturesources/{id}")
print(response.json())