#### Skywatch Innovation Inc.
##### Company Confidential
Skywatch Camera Information
===
###### tags: `API Documents` `common`
---
# API
Get Devices List
---
#### Description
Get list of camera.
#### Usage
```bash
curl -L -s --verbose -X GET \
-H 'Content-Type: application/x-www-form-urlencoded' \
'https://service.skywatch24.com/api/v2/devices?api_key={api_key}'
```
#### Example Output
```php
[
{
id: "46736",
model_id: "78",
parent: "46736",
online: "1",
name: "ProCam 2",
active: "1",
type: "own",
share_permission: "111",
device_type: "camera",
ibit: "1",
mobile_view_available: "1",
sphere_available: "0",
model: "78",
armactive: "1",
audio_id: "442",
owner_name: ""
}
]
```
#### Note
```bash
model_id: 76 => "ToughDome 4"
model_id: 77 => "ToughCam 4"
model_id: 78 => "ProCam 2"
```
```bash
active: "1" => 裝置已在帳號下(The device has been added to the account.)
active: "0" => 裝置已不在帳號下,但錄影檔仍存在 (The device doesn't belong to the account, and there are recording files of the device on the cloud.)
```
Get Device's Data
---
#### Description
Get the data about the camera.
#### Usage
```bash
> curl -L -s --verbose -X GET -H 'Content-Type: application/x-www-form-urlencoded' 'https://service.skywatch24.com/api/v2/devices/{device_id}/api_key={api_key}'
```
#### Example Output
```php
{
"id": "41277",
"vendor_id": "XXXXXXXXXXXX",
"mac": "XXXXXXXXXXXX",
"model_id": "56",
"owner_id": "9794",
"device_type": "camera",
"parent_name": "ProCam 2",
"settings": {
"camera_name": "ProCam 2",
"camera_desc": "",
"time": "1578889645",
"dst_profile": "Aland Islands|2019|0",
"audio_id": "349"
},
"model": "56",
"is_skywatch": "1",
"is_skywatch_inside": "0",
"is_generic": "0",
"is_digest": "0",
"rtsp_transport": "tcp",
"flv_transport": "0",
"use_temp": "0",
"temp_username": "",
"temp_password": "",
"live_stream_name": "view.sdp",
"record_stream_name": "live2.sdp",
"flv_live_stream_name": "",
"flv_record_stream_name": "",
"stream_codec": "h264",
"available_protocol": "[\"tcp\",\"udp\"]",
"output_protocol": "flv",
"model_type": "VadpCam",
"model_name": "VadpCam",
"default_telnet_port": "23",
"default_http_port": "80",
"default_rtmp_port": "1935",
"default_ip_address": "127.0.0.1",
"username": "root",
"password": "0002D1517FC1",
"tunnel": {
"tunnel": "XXXXX.tw.be61.skywatch24.com",
"vip": "10.10.7.206",
"vpn_port": "5555",
"local_ip": "192.168.1.118",
"pub_ip": "59.120.144.25"
},
"local_ip": "192.168.1.118",
"is_vpn": "1",
"ip_address": "XXXX.XXXX.XXXX.XXXX.XXXX.0.tw.be61.skywatch24.com",
"port": "5555",
"host_address_public": "XXXX.XXXX.XXXX.XXXX.XXXX.0.tw.be61.skywatch24.com",
"tunnel_mac": "XXXXXXXXXX",
"er_rule_id": "34931",
"offline_alert_rule_id": "30935",
"cr_status": "0",
"has_er": "1",
"has_cr": "0",
"has_cr_pro": "0",
"has_local_backup": "0",
"name": "VADP(IP8161)",
"parent": "41277",
"online": "1",
"active": "1",
"permission": "2",
"type": "own",
"is_actuator": "0",
"owner": "fae",
"description": "",
"dst_profile": "Aland Islands|2019|0",
"offline_alert_enable": "",
"permission_view": "1",
"permission_history": "1",
"permission_control": "1",
"share_permission": "111",
"cr_attach_event_tag": "0",
"recover_from_sd": "0",
"smart_ff": "0",
"event_quota": "1000",
"enable_recording": "0",
"ssl_port": "5443",
"rtmp_port": "1935",
"rtmp_ssl_port": "1443"
}
```
Get Device's Info
---
#### Description
Get information about the camera. Some values in this resource can be dynamic.
#### Usage
```bash
> curl -L -s --verbose -X GET -H 'Content-Type: application/x-www-form-urlencoded' 'https://service.skywatch24.com/api/v2/devices/{device_id}/info?api_key={api_key}'
```
#### Example Output
```php
{
is_vpn: "1",
username: "XXXX",
password: "XXXX",
mac: "XXXX",
host: "XXXX",
port: "5555",
ssl_port: "5443",
rtmp_port: "1935",
rtmp_ssl_port: "1443",
max_width: "1920",
max_height: "1080",
local_rtmp: "rtmp://192.168.1.33:1935/XXXX",
model_id: "78",
er_rule_id: "-1",
offline_alert_rule_id: "25496",
flv_port: "1951",
flv_ssl_port: "1952",
is_rtmp: "0",
is_flv: "1",
mute: "0",
live_stream: "flv://XXXXXXXX.flv",
lan_live_stream: "rtsp://%s:%d/ISAPI/streaming/channels/101",
lan_live_stream_1: "rtsp://%s:%d/ISAPI/Streaming/channels/102",
mobile_view_available: "1",
talk_available: "0",
talk_ping_available: "0",
ptz_available: "0",
ptz_api_list: "[]",
cloud_archive_show_available: "1",
local_archive_show_available: "1",
local_backup_show_available: "0",
local_archive_lan_available: "0",
cloud_archive_delete_available: "1",
local_archive_delete_available: "1",
local_archive_auth_method: "basic",
local_archive_local_port: 80,
local_archive_relay_port: 5555,
is_constant_recording_available: "0",
sphere_available: "0",
sphere_model_params: "",
ap_mode_ssid_prefix: "",
motion_enable: "1"
}
```
# Copyright
> **SKYWATCH CONFIDENTIAL**
Skywatch Innovation Incorporated
All Rights Reserved. support@skywatch24.com
> NOTICE: All information contained herein is, and remains the property of Skywatch Innovation Incorporated and its suppliers, if any. The intellectual and technical concepts contained herein are proprietary to Skywatch Innovation Incorporated and its suppliers and may be covered by Taiwan and Foreign Patents, patents in process, and are protected by trade secret or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from Skywatch Innovation Incorporated.