# AIPCAM-G2 API Document(en) ## Docs - [6 Intelligent Settings](https://ph8ks45w2f.apifox.cn/folder-47881548.md): - [7 Alarm Settings](https://ph8ks45w2f.apifox.cn/folder-47881549.md): - 7 Alarm Settings [7.1 Global Alarm Parameters](https://ph8ks45w2f.apifox.cn/folder-47881592.md): - 7 Alarm Settings [7.2 Arming Plan](https://ph8ks45w2f.apifox.cn/folder-47881593.md): - 7 Alarm Settings [7.3 Alarm Region](https://ph8ks45w2f.apifox.cn/folder-47881594.md): - 7 Alarm Settings [7.4 Crossing Statistics](https://ph8ks45w2f.apifox.cn/folder-47881595.md): - [9 Pan/Tilt/Zoom(PTZ) Settings](https://ph8ks45w2f.apifox.cn/folder-47881551.md): - Appendix [Appendix 1: Status Code Description](https://ph8ks45w2f.apifox.cn/doc-5741913.md): - Appendix [Appendix 2: RTSP Streaming Instructions](https://ph8ks45w2f.apifox.cn/doc-5741914.md): ## API Docs - 0 Login [User Login](https://ph8ks45w2f.apifox.cn/api-248235543.md): - 0 Login [Modify Password](https://ph8ks45w2f.apifox.cn/api-248235544.md): - 1 System Settings > 1.1 System Infomation [1.1.1 Getting System Information](https://ph8ks45w2f.apifox.cn/api-248235545.md): - 1 System Settings > 1.1 System Infomation [1.1.2 Setting System Information](https://ph8ks45w2f.apifox.cn/api-248235546.md): This interface is not recommended to be called - 1 System Settings > 1.2 System Time [1.2.1 Getting System Time](https://ph8ks45w2f.apifox.cn/api-248235547.md): - 1 System Settings > 1.2 System Time [1.2.2 Setting System Time](https://ph8ks45w2f.apifox.cn/api-248235548.md): - 1 System Settings > 1.3 System Maintenance [1.3.1 Getting System Maintenance Status](https://ph8ks45w2f.apifox.cn/api-248235549.md): - 1 System Settings > 1.3 System Maintenance [1.3.2 Setting System Maintenance Status](https://ph8ks45w2f.apifox.cn/api-248235550.md): - 1 System Settings > 1.4 Universal Asynchronous Receiver/Transmitter(UART) [1.4.1 Getting UART Parameters](https://ph8ks45w2f.apifox.cn/api-248235551.md): - 1 System Settings > 1.4 Universal Asynchronous Receiver/Transmitter(UART) [1.4.2 Setting UART Parameters](https://ph8ks45w2f.apifox.cn/api-248235552.md): - 1 System Settings > 1.5 General-purpose input/output(GPIO) [1.5.1 Getting GPIO Parameters](https://ph8ks45w2f.apifox.cn/api-248235553.md): - 1 System Settings > 1.5 General-purpose input/output(GPIO) [1.5.2 Setting GPIO Parameters](https://ph8ks45w2f.apifox.cn/api-248235554.md): - 1 System Settings > 1.6 System Reboot [1.6.1 Device Reboot](https://ph8ks45w2f.apifox.cn/api-248235555.md): - 1 System Settings > 1.7 System Reset [1.7.1 Restoring Configuration Only](https://ph8ks45w2f.apifox.cn/api-248235556.md): - 1 System Settings > 1.7 System Reset [1.7.2 Restore Factory Settings](https://ph8ks45w2f.apifox.cn/api-248235557.md): - 1 System Settings > 1.8 System Memory [1.8.1 System Memory Query](https://ph8ks45w2f.apifox.cn/api-248235558.md): - 1 System Settings > 1.9 System Update [1.9.1 Chunked Uploading](https://ph8ks45w2f.apifox.cn/api-248235559.md): - 1 System Settings > 1.9 System Update [1.9.2 End Uploading](https://ph8ks45w2f.apifox.cn/api-248235560.md): - 1 System Settings > 1.10 RS485 [1.10.1 Getting RS485 ](https://ph8ks45w2f.apifox.cn/api-248235561.md): - 1 System Settings > 1.10 RS485 [1.10.2 Setting RS485](https://ph8ks45w2f.apifox.cn/api-248235562.md): - 2 Network Settings > 2.1 TCP/IP [2.1.1 Getting IP](https://ph8ks45w2f.apifox.cn/api-248235563.md): - 2 Network Settings > 2.1 TCP/IP [2.1.2 Setting IP](https://ph8ks45w2f.apifox.cn/api-248235564.md): - 2 Network Settings > 2.2 4G Network [2.2.1 Getting 4G Network Parameters](https://ph8ks45w2f.apifox.cn/api-248235565.md): - 2 Network Settings > 2.2 4G Network [2.2.2 Setting 4G Network Parameters](https://ph8ks45w2f.apifox.cn/api-248235566.md): - 2 Network Settings > 2.3 Wi-Fi Network [2.3.1 Getting Wi-Fi AP Network](https://ph8ks45w2f.apifox.cn/api-248235567.md): - 2 Network Settings > 2.3 Wi-Fi Network [2.3.2 Setting Wi-Fi AP Network](https://ph8ks45w2f.apifox.cn/api-248235568.md): - 2 Network Settings > 2.3 Wi-Fi Network [2.3.3 Getting Wi-Fi STA Network](https://ph8ks45w2f.apifox.cn/api-248235569.md): - 2 Network Settings > 2.3 Wi-Fi Network [2.3.4 Setting Wi-Fi STA Network](https://ph8ks45w2f.apifox.cn/api-248235570.md): - 2 Network Settings > 2.3 Wi-Fi Network [2.3.5 Connecting Wi-Fi STA Network](https://ph8ks45w2f.apifox.cn/api-248235571.md): - 2 Network Settings > 2.3 Wi-Fi Network [2.3.6 Getting Wi-Fi STA Netwok List](https://ph8ks45w2f.apifox.cn/api-248235572.md): - 3 Platform Settings > 3.1 GB-T28181 [3.2.1 Getting GB-T28181 Parameters](https://ph8ks45w2f.apifox.cn/api-248235576.md): - 3 Platform Settings > 3.1 GB-T28181 [3.1.2 Setting GB-T28181 Parameters](https://ph8ks45w2f.apifox.cn/api-248235577.md): - 3 Platform Settings > 3.2 Customised platform [3.3.1 Getting Customized Platform Alarm](https://ph8ks45w2f.apifox.cn/api-248235578.md): - 3 Platform Settings > 3.2 Customised platform [3.2.2 Setting Customized Platform Alarm](https://ph8ks45w2f.apifox.cn/api-248235579.md): - 3 Platform Settings > 3.2 Customised platform [3.2.3 Getting Customized Platform Notification](https://ph8ks45w2f.apifox.cn/api-248235580.md): - 3 Platform Settings > 3.2 Customised platform [3.2.4 Setting Customized Platform Notification](https://ph8ks45w2f.apifox.cn/api-248235581.md): - 3 Platform Settings > 3.3 File Transfer Protocol (FTP) [3.4.1 Getting FTP Parameters](https://ph8ks45w2f.apifox.cn/api-248235582.md): - 3 Platform Settings > 3.3 File Transfer Protocol (FTP) [3.4.2 Setting FTP Parameters](https://ph8ks45w2f.apifox.cn/api-248235583.md): - 3 Platform Settings > 3.4 Open Network Video Interface Forum(ONVIF) [3.4.1 Getting ONVIF Parameters](https://ph8ks45w2f.apifox.cn/api-248235586.md): - 3 Platform Settings > 3.4 Open Network Video Interface Forum(ONVIF) [3.4.2 Setting ONVIF Parameters](https://ph8ks45w2f.apifox.cn/api-248235587.md): - 3 Platform Settings > 3.5 Real Time Streaming Protocol (RTSP) [3.7.1 Getting RTSP Parameters](https://ph8ks45w2f.apifox.cn/api-248235588.md): - 3 Platform Settings > 3.5 Real Time Streaming Protocol (RTSP) [3.7.2 Setting RTSP Parameters](https://ph8ks45w2f.apifox.cn/api-248235589.md): - 4 Video Settings > 4.1 Video Channel Encode [4.1.1 Getting Encoding Parameters](https://ph8ks45w2f.apifox.cn/api-248235590.md): - 4 Video Settings > 4.1 Video Channel Encode [4.1.2 Setting Encoding Parameters](https://ph8ks45w2f.apifox.cn/api-248235591.md): - 4 Video Settings > 4.2 Video Channel OSD [4.2.1 Getting OSD Parameters](https://ph8ks45w2f.apifox.cn/api-248235592.md): - 4 Video Settings > 4.2 Video Channel OSD [4.2.2 Setting OSD Parameters](https://ph8ks45w2f.apifox.cn/api-248235593.md): - 4 Video Settings > 4.3 ISP [4.3.1 Getting ISP Parameters](https://ph8ks45w2f.apifox.cn/api-248235594.md): CSC (Color Space Converter) is a color space conversion standard for video signals, mainly for SD video. - 4 Video Settings > 4.3 ISP [4.3.2 Setting ISP Parameters](https://ph8ks45w2f.apifox.cn/api-248235595.md): - 4 Video Settings > 4.4 Day/Night Switching [4.4.1 Getting Day/Night Switching Parameters](https://ph8ks45w2f.apifox.cn/api-248235596.md): - 4 Video Settings > 4.4 Day/Night Switching [4.4.2 Setting Day/Night Switching Parameters](https://ph8ks45w2f.apifox.cn/api-248235597.md): - 4 Video Settings > 4.5 Lens Distortion Correction(LDC) [4.5.1 Getting LDC Parameters](https://ph8ks45w2f.apifox.cn/api-248235598.md): - 4 Video Settings > 4.5 Lens Distortion Correction(LDC) [4.5.2 Setting LDC Parameters](https://ph8ks45w2f.apifox.cn/api-248235599.md): - 4 Video Settings > 4.6 Channel Rotation [4.6.1 Getting Channel Rotation](https://ph8ks45w2f.apifox.cn/api-248235600.md): - 4 Video Settings > 4.6 Channel Rotation [4.6.2 Setting Channel Rotation](https://ph8ks45w2f.apifox.cn/api-248235601.md): - 4 Video Settings > 4.7 Screen Flip [4.8.1 Getting Screen Flip](https://ph8ks45w2f.apifox.cn/api-248235604.md): - 4 Video Settings > 4.7 Screen Flip [4.8.2 Setting Screen Flip](https://ph8ks45w2f.apifox.cn/api-248235605.md): - 4 Video Settings > 4.8 Snapshot [4.9.1 Getting Snapshot](https://ph8ks45w2f.apifox.cn/api-248235606.md): - 5 Audio Settings > 5.1 Audio Encoding [5.1.1 Getting Encoding Parameters](https://ph8ks45w2f.apifox.cn/api-248235607.md): - 5 Audio Settings > 5.1 Audio Encoding [5.1.2 Setting Encoding Parameters](https://ph8ks45w2f.apifox.cn/api-248235608.md): - 5 Audio Settings > 5.2 Audio Input/Output [5.2.1 Getting Input/Output Status](https://ph8ks45w2f.apifox.cn/api-248235610.md): - 5 Audio Settings > 5.2 Audio Input/Output [5.2.2 Setting Input/Output](https://ph8ks45w2f.apifox.cn/api-248235611.md): - 5 Audio Settings > 5.3 Audio File > 5.3.6 Uploading Audio File [5.3.6.1 Chunked Uploading](https://ph8ks45w2f.apifox.cn/api-248235617.md): - 5 Audio Settings > 5.3 Audio File > 5.3.6 Uploading Audio File [5.3.6.2 Ending Uploading](https://ph8ks45w2f.apifox.cn/api-248235618.md): - 5 Audio Settings > 5.3 Audio File [5.3.1 Getting Audio Files](https://ph8ks45w2f.apifox.cn/api-248235612.md): - 5 Audio Settings > 5.3 Audio File [5.3.2 Setting Audio File](https://ph8ks45w2f.apifox.cn/api-248235613.md): - 5 Audio Settings > 5.3 Audio File [5.3.3 Deleting Audio File](https://ph8ks45w2f.apifox.cn/api-248235614.md): - 5 Audio Settings > 5.3 Audio File [5.3.4 Emptying Audio Files](https://ph8ks45w2f.apifox.cn/api-248235615.md): - 5 Audio Settings > 5.3 Audio File [5.3.5 Playing Audio File On Device](https://ph8ks45w2f.apifox.cn/api-248235616.md): - 6 Intelligent Settings > 6.1 Detection Model > 6.1.5 Uploading Model [6.1.5.1 Chunked Uploading](https://ph8ks45w2f.apifox.cn/api-248235623.md): - 6 Intelligent Settings > 6.1 Detection Model > 6.1.5 Uploading Model [6.1.5.2 Ending Uploading](https://ph8ks45w2f.apifox.cn/api-248235624.md): - 6 Intelligent Settings > 6.1 Detection Model [6.1.1 Getting Model List](https://ph8ks45w2f.apifox.cn/api-248235619.md): - 6 Intelligent Settings > 6.1 Detection Model [6.1.2 Enabling Model](https://ph8ks45w2f.apifox.cn/api-248235620.md): - 6 Intelligent Settings > 6.1 Detection Model [6.1.3 Deleting Model](https://ph8ks45w2f.apifox.cn/api-248235621.md): - 6 Intelligent Settings > 6.1 Detection Model [6.1.4 Emptying model](https://ph8ks45w2f.apifox.cn/api-248235622.md): - 6 Intelligent Settings > 6.2 Detection Parameters [6.2.1 Getting Detection Parameters](https://ph8ks45w2f.apifox.cn/api-248235625.md): - 6 Intelligent Settings > 6.2 Detection Parameters [6.2.2 Setting Detection Parameters](https://ph8ks45w2f.apifox.cn/api-248235626.md): - 6 Intelligent Settings > 6.3 Detection Result [6.3.1 Getting Detection Result](https://ph8ks45w2f.apifox.cn/api-248235627.md): - 6 Intelligent Settings > 6.4 Model Tags [6.4.1 Getting Model Tag](https://ph8ks45w2f.apifox.cn/api-248235628.md): - 6 Intelligent Settings > 6.4 Model Tags [6.4.2 Setting Model Tag](https://ph8ks45w2f.apifox.cn/api-248235629.md): Note that only the alias, bg_color and fg_color attributes of the label can be set, and the other parameters should be consistent with the values obtained. - 7 Alarm Settings > 7.1 Global Alarm Parameters [7.1.1 Getting Alarm Parameters](https://ph8ks45w2f.apifox.cn/api-248235630.md): - 7 Alarm Settings > 7.1 Global Alarm Parameters [7.1.2 Setting Alarm Parameters](https://ph8ks45w2f.apifox.cn/api-248235631.md): - 7 Alarm Settings > 7.2 Arming Plan [7.2.1 Getting Plan](https://ph8ks45w2f.apifox.cn/api-248235632.md): - 7 Alarm Settings > 7.2 Arming Plan [7.2.2 Setting Plan](https://ph8ks45w2f.apifox.cn/api-248235633.md): - 7 Alarm Settings > 7.2 Arming Plan [7.2.3 Adding Plan](https://ph8ks45w2f.apifox.cn/api-248235634.md): - 7 Alarm Settings > 7.2 Arming Plan [7.2.4 Deleting Plan](https://ph8ks45w2f.apifox.cn/api-248235635.md): - 7 Alarm Settings > 7.2 Arming Plan [7.2.5 Emptying Plan](https://ph8ks45w2f.apifox.cn/api-248235636.md): - 7 Alarm Settings > 7.3 Alarm Region [7.3.1 Getting Alarm Parameters](https://ph8ks45w2f.apifox.cn/api-248235637.md): - 7 Alarm Settings > 7.3 Alarm Region [7.3.2 Setting Alarm Parameters](https://ph8ks45w2f.apifox.cn/api-248235638.md): - 7 Alarm Settings > 7.3 Alarm Region [7.3.3 Getting Alarm Region List](https://ph8ks45w2f.apifox.cn/api-248235639.md): - 7 Alarm Settings > 7.3 Alarm Region [7.3.4 Setting Alarm Region](https://ph8ks45w2f.apifox.cn/api-248235640.md): - 7 Alarm Settings > 7.3 Alarm Region [7.3.5 Adding Alarm Region](https://ph8ks45w2f.apifox.cn/api-248235641.md): - 7 Alarm Settings > 7.3 Alarm Region [7.3.6 Deleting Alarm Region](https://ph8ks45w2f.apifox.cn/api-248235642.md): - 7 Alarm Settings > 7.3 Alarm Region [7.3.7 Emptying Alarm Region](https://ph8ks45w2f.apifox.cn/api-248235643.md): - 7 Alarm Settings > 7.4 Crossing Statistics [7.4.1 Getting Crossing Statistics Parameters](https://ph8ks45w2f.apifox.cn/api-248235644.md): - 7 Alarm Settings > 7.4 Crossing Statistics [7.4.2 Setting Crossing Statistics Parameters](https://ph8ks45w2f.apifox.cn/api-248235645.md): - 7 Alarm Settings > 7.4 Crossing Statistics [7.4.3 Getting Statistical Lines](https://ph8ks45w2f.apifox.cn/api-248235646.md): - 7 Alarm Settings > 7.4 Crossing Statistics [7.4.4 Setting Statistical Lines](https://ph8ks45w2f.apifox.cn/api-248235647.md): - 7 Alarm Settings > 7.4 Crossing Statistics [7.4.5 Adding Statistical Line](https://ph8ks45w2f.apifox.cn/api-248235648.md): - 7 Alarm Settings > 7.4 Crossing Statistics [7.4.6 Deleting Statistical Line](https://ph8ks45w2f.apifox.cn/api-248235649.md): - 7 Alarm Settings > 7.4 Crossing Statistics [7.4.7 Emptying Statistical Line](https://ph8ks45w2f.apifox.cn/api-248235650.md): - 8 Record Settings > 8.1 Basic Parameters [8.1.1 Getting Basic Parameters](https://ph8ks45w2f.apifox.cn/api-248235651.md): - 8 Record Settings > 8.1 Basic Parameters [8.1.2 Setting Basic Parameters](https://ph8ks45w2f.apifox.cn/api-248235652.md): - 8 Record Settings > 8.2 Recording Settings [8.2.1 Getting Recording Status](https://ph8ks45w2f.apifox.cn/api-248235653.md): - 8 Record Settings > 8.2 Recording Settings [8.2.2 Start Recording](https://ph8ks45w2f.apifox.cn/api-248235654.md): - 8 Record Settings > 8.2 Recording Settings [5.2.2 Stop Recording](https://ph8ks45w2f.apifox.cn/api-248235655.md): - 8 Record Settings > 8.3 Recording Plan [8.3.1 Getting Recoding Plan](https://ph8ks45w2f.apifox.cn/api-248235656.md): - 8 Record Settings > 8.3 Recording Plan [8.3.2 Setting Recording Plan](https://ph8ks45w2f.apifox.cn/api-248235657.md): - 8 Record Settings > 8.3 Recording Plan [8.3.3 Adding Recording Plan](https://ph8ks45w2f.apifox.cn/api-248235658.md): - 8 Record Settings > 8.3 Recording Plan [8.3.4 Deleting Recording Plan](https://ph8ks45w2f.apifox.cn/api-248235659.md): - 8 Record Settings > 8.3 Recording Plan [8.3.5 Emptying Recording Plan](https://ph8ks45w2f.apifox.cn/api-248235660.md): - 8 Record Settings > 8.4 Recoding Files [8.4.1 Getting Recording Files](https://ph8ks45w2f.apifox.cn/api-248235662.md): - 8 Record Settings > 8.4 Recoding Files [8.4.2 Recording Self-check](https://ph8ks45w2f.apifox.cn/api-248235663.md): - 8 Record Settings > 8.4 Recoding Files [8.4.3 Deleting Files In Batch](https://ph8ks45w2f.apifox.cn/api-248235664.md): - 8 Record Settings > 8.4 Recoding Files [8.4.4 Emptying Files In Need](https://ph8ks45w2f.apifox.cn/api-248235665.md): - 8 Record Settings > 8.4 Recoding Files [8.4.5 Downloading File](https://ph8ks45w2f.apifox.cn/api-248235666.md): For the video file information obtained through 8.4.1, convert its btime corresponding utc timestamp to local year, month, day, hour, minute and second, splice the corresponding /yyyyMMdd directory and hour directory /HH after the /record directory, and then splice the filename /filename to access the corresponding video file. - 8 Record Settings > 8.5 Recording Space [8.5.1 Recording Space Query](https://ph8ks45w2f.apifox.cn/api-248235668.md): - 8 Record Settings > 8.5 Recording Space [8.5.2 Recording Space Format](https://ph8ks45w2f.apifox.cn/api-248235669.md): - 9 Pan/Tilt/Zoom(PTZ) Settings > 9.1 PTZ Command [9.1.1 Stop Command](https://ph8ks45w2f.apifox.cn/api-248235670.md): - 9 Pan/Tilt/Zoom(PTZ) Settings > 9.1 PTZ Command [9.1.2 Gimbal Command](https://ph8ks45w2f.apifox.cn/api-248235671.md): **$\color{red}{每次请求结束时应发送一次停止命令}$** - 9 Pan/Tilt/Zoom(PTZ) Settings > 9.1 PTZ Command [9.1.3 Focus/Focused/Iris commands](https://ph8ks45w2f.apifox.cn/api-248235672.md): **$\color{red}{A stop command should be sent at the end of each request}$** - 9 Pan/Tilt/Zoom(PTZ) Settings > 9.1 PTZ Command [9.1.4 Preset Command](https://ph8ks45w2f.apifox.cn/api-248235673.md): - 9 Pan/Tilt/Zoom(PTZ) Settings > 9.1 PTZ Command [9.1.5 Getting Focus Status](https://ph8ks45w2f.apifox.cn/api-248235674.md): - 9 Pan/Tilt/Zoom(PTZ) Settings > 9.2 Cruise Settings [9.2.1 Getting Cruise Function](https://ph8ks45w2f.apifox.cn/api-248235675.md): - 9 Pan/Tilt/Zoom(PTZ) Settings > 9.2 Cruise Settings [9.2.2 Setting Cruise Function](https://ph8ks45w2f.apifox.cn/api-248235676.md): - 9 Pan/Tilt/Zoom(PTZ) Settings > 9.2 Cruise Settings [9.2.3 Setting Cruise Path](https://ph8ks45w2f.apifox.cn/api-248235677.md):