Server
Server health check
Returns server health, uptime, version info, and connected camera count.
Used by the TypeScript ServerManager to confirm the server is ready after spawning the binary.
GET
/
api
/
server
/
status
Server health check
curl --request GET \
--url http://{host}:{port}/api/server/statusimport requests
url = "http://{host}:{port}/api/server/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://{host}:{port}/api/server/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{host}:{port}/api/server/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://{host}:{port}/api/server/status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://{host}:{port}/api/server/status")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/api/server/status")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"server": {
"version": "3.0.0",
"sdkVersion": "V2.01.00",
"uptime": 123,
"platform": "darwin-arm64"
},
"cameras": {
"connected": 123,
"discovered": 123
}
}{
"success": false,
"message": "Camera not connected",
"camera": {
"connected": false,
"model": "ILCE-7M4",
"id": "D06CE05E3323"
}
}⌘I
Server health check
curl --request GET \
--url http://{host}:{port}/api/server/statusimport requests
url = "http://{host}:{port}/api/server/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://{host}:{port}/api/server/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{host}:{port}/api/server/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://{host}:{port}/api/server/status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://{host}:{port}/api/server/status")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/api/server/status")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"server": {
"version": "3.0.0",
"sdkVersion": "V2.01.00",
"uptime": 123,
"platform": "darwin-arm64"
},
"cameras": {
"connected": 123,
"discovered": 123
}
}{
"success": false,
"message": "Camera not connected",
"camera": {
"connected": false,
"model": "ILCE-7M4",
"id": "D06CE05E3323"
}
}
