
Foscam IPCamera CGI User Guide
Foscam IPCamera CGI User Guide
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
1. General description....................................................................................................................14
2. All Platform CGI.......................................................................................................................... 15
AV Function...............................................................................................................................15
getImageSetting.................................................................................................................15
setBrightness..................................................................................................................... 15
setContrast.........................................................................................................................15
setHue................................................................................................................................16
setSaturation......................................................................................................................16
setSharpness...................................................................................................................... 16
setDenoiseLevel (not use).................................................................................................16
resetImageSetting..............................................................................................................17
getMirrorAndFlipSetting.................................................................................................. 17
mirrorVideo....................................................................................................................... 17
flipVideo............................................................................................................................18
getRatio............................................................................................................................. 18
setRatio..............................................................................................................................18
getH264FrmRefMode....................................................................................................... 19
setH264FrmRefMode........................................................................................................19
getScheduleRecordStreamChn......................................................................................... 19
setScheduleRecordStreamChn..........................................................................................20
setPwrFreq.........................................................................................................................20
getVideoStreamParam.......................................................................................................20
setVideoStreamParam.......................................................................................................21
getSubVideoStreamParam................................................................................................ 21
setSubVideoStreamParam.................................................................................................22
getMainVideoStreamType.................................................................................................22
getSubVideoStreamType...................................................................................................22
setMainVideoStreamType.................................................................................................23
setSubStreamFormat......................................................................................................... 23
GetMJStream.....................................................................................................................23
getOSDSetting...................................................................................................................24
setOSDSetting...................................................................................................................24
getOsdMaskArea...............................................................................................................25
setOsdMaskArea............................................................................................................... 25
getOSDMask.....................................................................................................................26
setOSDMask......................................................................................................................26
getMotionDetectConfig.................................................................................................... 26
setMotionDetectConfig.....................................................................................................27
setLocalAlarmRecordConfig............................................................................................ 29
getLocalAlarmRecordConfig............................................................................................29
getSnapConfig...................................................................................................................30
setSnapConfig................................................................................................................... 30
getScheduleSnapConfig.................................................................................................... 31
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
setScheduleSnapConfig.................................................................................................... 31
snapPicture........................................................................................................................ 32
snapPicture2...................................................................................................................... 32
getRecordList.................................................................................................................... 32
getRecordList2.................................................................................................................. 33
reloadRecordindex............................................................................................................ 33
getAlarmRecordConfig.....................................................................................................34
setAlarmRecordConfig..................................................................................................... 34
getRecordPath................................................................................................................... 34
setRecordPath....................................................................................................................35
getScheduleRecordConfig................................................................................................ 35
setScheduleRecordConfig.................................................................................................36
setIOAlarmConfig.............................................................................................................37
getIOAlarmConfig............................................................................................................ 37
clearIOAlarmOutput......................................................................................................... 38
setAudioAlarmConfig.......................................................................................................38
getAudioAlarmConfig...................................................................................................... 39
setPCAudioAlarmCfg....................................................................................................... 39
getPCAudioAlarmCfg.......................................................................................................39
getMultiDevList................................................................................................................ 40
getMultiDevDetailInfo......................................................................................................40
addMultiDev......................................................................................................................40
delMultiDev...................................................................................................................... 41
setDeFrameLevel.............................................................................................................. 41
getDeFrameLevel..............................................................................................................41
getNetworkAutoAdaptability............................................................................................42
setNetworkAutoAdaptability............................................................................................ 42
getMainStreamCapabilities...............................................................................................42
getSubStreamCapabilities................................................................................................. 43
getAudioSendMethod....................................................................................................... 43
User account..............................................................................................................................44
addAccount........................................................................................................................44
delAccount........................................................................................................................ 44
getPassword.......................................................................................................................44
changePassword................................................................................................................ 45
changeUserName.............................................................................................................. 45
changeUserNameAndPwdTogether..................................................................................45
logIn...................................................................................................................................46
logOut................................................................................................................................47
getSessionList................................................................................................................... 47
getUserList........................................................................................................................ 47
usrBeatHeart......................................................................................................................48
PTZ Control...............................................................................................................................48
ptzMoveUp........................................................................................................................48
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
ptzMoveDown...................................................................................................................48
ptzMoveLeft......................................................................................................................49
ptzMoveRight....................................................................................................................49
ptzMoveTopLeft................................................................................................................49
ptzMoveTopRight..............................................................................................................49
ptzMoveBottomLeft..........................................................................................................50
ptzMoveBottomRight........................................................................................................50
ptzStopRun........................................................................................................................50
ptzReset.............................................................................................................................50
getPTZSpeed.....................................................................................................................51
setPTZSpeed......................................................................................................................51
getPTZPresetPointList...................................................................................................... 52
ptzAddPresetPoint.............................................................................................................52
ptzDeletePresetPoint......................................................................................................... 52
ptzGotoPresetPoint............................................................................................................53
ptzGetCruiseMapList........................................................................................................ 53
ptzGetCruiseMapInfo........................................................................................................53
ptzSetCruiseMap...............................................................................................................54
ptzDelCruiseMap.............................................................................................................. 54
ptzStartCruise....................................................................................................................54
ptzStopCruise.................................................................................................................... 54
setCruiseTime....................................................................................................................55
getCruiseTime...................................................................................................................55
setCruiseTimeCustomed................................................................................................... 55
getCruiseTimeCustomed...................................................................................................56
setCruiseLoopCnt..............................................................................................................56
getCruiseLoopCnt............................................................................................................. 56
setCruiseCtrlMode............................................................................................................ 56
getCruiseCtrlMode............................................................................................................57
setCruisePrePointLingerTime...........................................................................................57
getCruisePrePointLingerTime...........................................................................................57
zoomIn...............................................................................................................................58
zoomOut............................................................................................................................58
zoomStop...........................................................................................................................58
getZoomSpeed...................................................................................................................58
setZoomSpeed...................................................................................................................59
setPTZSelfTestMode.........................................................................................................59
getPTZSelfTestMode........................................................................................................ 59
setPTZPrePointForSelfTest...............................................................................................60
getPTZPrePointForSelfTest.............................................................................................. 60
set485Info..........................................................................................................................60
get485Info......................................................................................................................... 61
Network.....................................................................................................................................61
getIPInfo............................................................................................................................61
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
setIpInfo............................................................................................................................ 62
refreshWifiList.................................................................................................................. 62
getWifiList.........................................................................................................................63
setWifiSetting....................................................................................................................63
setWifiSettingNew............................................................................................................ 64
getWifiConfig....................................................................................................................65
getPortInfo.........................................................................................................................66
setPortInfo.........................................................................................................................67
getUPnPConfig................................................................................................................. 67
setUPnPConfig..................................................................................................................67
getDDNSConfig................................................................................................................68
setDDNSConfig................................................................................................................ 68
setFtpConfig......................................................................................................................69
setFtpConfigNew.............................................................................................................. 69
getFtpConfig......................................................................................................................70
testFtpServer......................................................................................................................70
testFtpServerNew..............................................................................................................71
getSMTPConfig................................................................................................................ 71
setSMTPConfig.................................................................................................................72
setSMTPConfigNew......................................................................................................... 72
smtpTest.............................................................................................................................73
smtpTestNew.....................................................................................................................74
setP2PEnable.....................................................................................................................74
getP2PEnable.................................................................................................................... 75
setP2PPort......................................................................................................................... 75
getP2PPort.........................................................................................................................75
getP2PInfo.........................................................................................................................76
getPPPoEConfig................................................................................................................76
setPPPoEConfig................................................................................................................ 76
EnableOnvifAgent.............................................................................................................77
DisableOnvifAgent........................................................................................................... 77
GetOnvifAgentStat............................................................................................................77
getNetMode.....................................................................................................................77
wifiTest..............................................................................................................................78
Device manage..........................................................................................................................79
setSystemTime.................................................................................................................. 79
getSystemTime..................................................................................................................80
openInfraLed.....................................................................................................................81
closeInfraLed.....................................................................................................................81
getInfraLedConfig.............................................................................................................81
setInfraLedConfig............................................................................................................. 82
getScheduleInfraLedConfig..............................................................................................82
setScheduleInfraLedConfig.............................................................................................. 82
getDevState....................................................................................................................... 83
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
getDevName......................................................................................................................84
setDevName...................................................................................................................... 84
getDevInfo.........................................................................................................................84
getDevAttr.........................................................................................................................85
getProductModel...............................................................................................................85
getProductModelName..................................................................................................... 85
getProductLanguage..........................................................................................................86
getProductSensorType.......................................................................................................86
getProductWifiType.......................................................................................................... 86
getProductSdFlag.............................................................................................................. 87
getProductOutdoorFlag.....................................................................................................87
getProductPtFlag...............................................................................................................87
getProductZoomFlag.........................................................................................................87
getProductRs485Flag........................................................................................................ 88
getProductIoAlarmFlag.....................................................................................................88
getProductOnvifFlag.........................................................................................................88
getProductP2pFlag............................................................................................................ 89
getProductWpsFlag...........................................................................................................89
getProductAudioFlag........................................................................................................ 89
getProductTalkFlag........................................................................................................... 89
getProductAppVer.............................................................................................................90
getProductAllInfo..............................................................................................................90
setProductAllInfo.............................................................................................................. 91
getNVRApSigQuality....................................................................................................... 92
getVoiceEnableState..........................................................................................................92
setVoiceEnableState..........................................................................................................92
getGeneratePubKey...........................................................................................................93
toolRestoreToFactory........................................................................................................93
System....................................................................................................................................... 93
rebootSystem.....................................................................................................................93
restoreToFactorySetting....................................................................................................94
exportConfig......................................................................................................................94
ImportConfig.....................................................................................................................94
FwUpgrade........................................................................................................................95
removePatch......................................................................................................................95
MISC......................................................................................................................................... 96
getFirewallConfig............................................................................................................. 96
setFirewallConfig..............................................................................................................96
getLog................................................................................................................................96
3. All platform except 3518A add cgi............................................................................................... 97
getAudioVolume................................................................................................................97
setAudioVolume................................................................................................................ 97
getWifiMode..................................................................................................................... 97
getTemperatureAlarmConfig............................................................................................ 98
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
setTemperatureAlarmConfig.............................................................................................98
getTemperatureState..........................................................................................................99
Music......................................................................................................................................... 99
setMusicDefaultListRefresh..............................................................................................99
getMusicListsName.........................................................................................................100
getMusicsNameOfList.................................................................................................... 100
addMusicList...................................................................................................................101
delMusicList....................................................................................................................102
setMusicPlayMode..........................................................................................................103
getMusicPlayMode......................................................................................................... 103
setMusicPlayNext........................................................................................................... 103
setMusicPlayPre..............................................................................................................104
getMusicPlayState...........................................................................................................104
setMusicPlayStart............................................................................................................104
setMusicPlayStop............................................................................................................105
setMusicDormantTime....................................................................................................105
getMusicDormantTime................................................................................................... 105
Cloud....................................................................................................................................... 106
getCloudConfig...............................................................................................................106
setCloudConfig............................................................................................................... 106
selectCloudServer........................................................................................................... 107
getCloudToken................................................................................................................ 107
getCloudQuota................................................................................................................ 108
testCloudServer...............................................................................................................108
getPushConfig.................................................................................................................108
setPushConfig................................................................................................................. 109
testPushServer.................................................................................................................109
setRichMediaPushConfig................................................................................................110
setFosPushConfig............................................................................................................110
setFosPushServer............................................................................................................ 110
pushOperate.....................................................................................................................111
SetOnlineUpgrade........................................................................................................... 111
setCloudStreamLevel...................................................................................................... 112
getCloudStreamLevel......................................................................................................112
4. FosBaby_Baidu CGI(Only).........................................................................................................112
getBaiduRtmp..................................................................................................................112
setBaiduRtmp.................................................................................................................. 113
GetOnlineUpgradeState.................................................................................................. 114
5. FosBaby_P1 CGI(Only)..............................................................................................................114
getHumidityAlarmConfig............................................................................................... 114
setHumidityAlarmConfig................................................................................................115
getHumidityState.............................................................................................................116
setNightLightState...........................................................................................................116
getNightLightState.......................................................................................................... 116
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
setOneKeyAlarmConfig..................................................................................................116
getOneKeyAlarmConfig................................................................................................. 117
getTimingRebootConfig..................................................................................................117
SetTimingRebootConfig................................................................................................. 118
6. 3518E+Fosbaby+Fosbaby_P1+Fosbaby_Baidu.........................................................................118
getSoftApConfig............................................................................................................. 118
setSoftApConfig..............................................................................................................119
setSoftApConfigNew...................................................................................................... 119
changeNetMode.............................................................................................................. 120
setFoscamRtmp...............................................................................................................120
getFoscamRtmp...............................................................................................................121
setSnapToFtpFilenameConfig.........................................................................................122
getSnapToFtpFilenameConfig........................................................................................ 122
7. Fosbaby_P1+3518E.................................................................................................................... 122
setLedEnableState........................................................................................................... 122
getLedEnableState...........................................................................................................123
8. Amba S2L(Only).........................................................................................................................123
getHdrMode.................................................................................................................... 123
setHdrMode.....................................................................................................................124
getWdrMode....................................................................................................................124
setWdrMode....................................................................................................................124
getVideoStreamParam.....................................................................................................124
setVideoStreamParam..................................................................................................... 125
getSubVideoStreamParam.............................................................................................. 125
setSubVideoStreamParam...............................................................................................126
getMotionDetectConfig1................................................................................................ 126
setMotionDetectConfig1.................................................................................................128
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
Add the following CGI command to set PT
startup position:
3) setPTZPrePointForSelfTest
4) getPTZPrePointForSelfTest
1. Add a snap CGI(snapPicture2) which
retrun jpeg image data directly but a
image url
2. Add MotionJpeg stream support
Check and Modify CGI command
document
1.Add note for GetMJStream, defects of
setContrast、mirrorVideo、flipVideo、logIn、
setSnapConfig 、 setPTZSpeed 、
setInfraLedConfig 、 setSubStreamFormat 、
setPortInfo、getPortInfo;
getLocalAlarmRecordConfig ;
setLocalAlarmRecordConfig;
getP2PEnable ; setP2PEnable ; getP2PPort;
setP2PPort ; setOSDMask ; getOSDMask ;
getScheduleSnapConfig ;
setScheduleSnapConfig;
-changeUserNameAndPwdTogether;
-getPCAudioAlarmCfg;
-setPCAudioAlarmCfg;
-setH264FrmRefMode;
-getH264FrmRefMode;
-setCruiseTime;
-getCruiseTime;
Copyright@ Shenzhen Foscam Intelligent Technology Limited

-setSubVideoStreamParam;
-getSubVideoStreamParam;
-setCruiseTimeCustomed;
-getCruiseTimeCustomed;
-setCruiseLoopCnt;
-getCruiseLoopCnt;
-setCruiseCtrlMode;
-getCruiseCtrlMode;
-setCruisePrePointLingerTime;
-getCruisePrePointLingerTime;
-getScheduleRecordStreamChn;
-setScheduleRecordStreamChn;
-getProductModel;
-getProductModelName;
-getProductLanguage;
-getProductSensorType;
-getProductWifiType;
-getProductSdFlag;
-getProductOutdoorFlag;
-getProductPtFlag;
-getProductZoomFlag;
-getProductRs485Flag;
-getProductIoAlarmFlag;
-getProductOnvifFlag;
-getProductP2pFlag;
-getProductWpsFlag;
-getProductAudioFlag;
-getProductTalkFlag;
-getProductAppVer;
-getProductAllInfo;
-getGeneratePubKey;
-toolResetToFactory;
-setScheduleInfraLedConfig;
-getScheduleInfraLedConfig;
2.Modify Login error code-5、-7;
1.The usage of command-setSubStreamFormat,
getSnapConfig, setSnapConfig.
Foscam IPCamera CGI User Guide
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
2.The example and description of
command-setMotionDetectConfig,
setScheduleSnapConfig, setIOAlarmConfig
getRecordList2,reloadRecordindex
1) The example of command:
setCruisePrePointLingerTime,
getCruisePrePointLingerTime.
2) The return discription of command:
getProductWpsFlag.
3)The Param of command:smtpTest.
1.Add commmad:getPPPoEConfig,
setPPPoEConfig,getRecordPath,getScheduleRe
cordConfig,getP2PInfo;
2.Modify the priviage of command for security:
changePassword,changeUserName,changeUser
NameAndPwdTogether,getSessionList,getUser
List,getImageSetting,getMirrorAndFlipSetting,
getMotionDetectConfig,getScheduleSnapConfi
g,getVideoStreamParam,getSubVideoStreamPa
ram,getMainVideoStreamType,getSubVideoStr
eamType,getH264FrmRefMode,getSnapConfig
,getOsdMaskArea,getOSDSetting,getOSDMas
k,getPTZSpeed,get485Info,getPTZPresetPoint
List,ptzGetCruiseMapList,ptzGetCruiseMapInf
o,getPTZSelfTestMode,getPTZPrePointForSelf
Test,getCruiseTime,getCruiseTimeCustomed,g
etCruiseLoopCnt,getCruiseCtrlMode,getCruise
PrePointLingerTime,getZoomSpeed,getSMTP
Config,getIPInfo,getPortInfo,getUPnPConfig,g
etDevInfo,getDevName,getFirewallConfig,getS
ystemTime,getFtpConfig,testFtpServer,getDD
NSConfig,getLog,getRecordList,getRecordList
2,reloadRecordindex,getScheduleRecordStrea
mChn,getAlarmRecordConfig,getLocalAlarmR
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
ecordConfig,getPCAudioAlarmCfg,getIOAlar
mConfig,getDevState,getInfraLedConfig,getSc
heduleInfraLedConfig,getP2PEnable,getP2PPo
rt
getDeFrameLevel, setDeFrameLevel
1) The parameter description of command
setContrast.
integrate the CGI on all platforms and add new
command
1)setMusicPlayPath,getMusicPlayPath
1)getMotionDetectConfig,setMotionDetectCon
fig,setIOAlarmConfig,getIOAlarmConfig,getTe
mperatureAlarmConfig.setTemperatureAlarmC
onfig,getHumidityAlarmConfig,setHumidityAl
armConfig,addMusicList,delMusicList
Add command of amba platform:
getHdrMode,setHdrMode,getWdrMode,setWdr
Mode,getVideoStreamParam,setVideoStreamPa
ram,getSubVideoStreamParam,setSubStreamPa
ram,getMotionDetectConfig1,setMotionDetecC
onfig1
Add command:
setFoscamRtmp;getFoscamRtmp;setSnapToFtp
FilenameConfig;getSnapToFtpFilenameConfig;
getCloudStreamLeve;setCloudStreamLevel;s
etWifiSettingNew;
Add command:
setNetworkAutoAdaptability:
getsetNetworkAutoAdaptability;
Add command:
getDevAttr;setRichMediaPushConfig;GetOnv
ifAgentStat;setProductAllInfo;getNVRApSigQ
uality;getVoiceEnableState;setVoiceEnableSt
ate;getNetworkAutoAdaptability;setNetworkA
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
utoAdaptability;getAudioSendMethod;getNet
Mode;wifiTest;
Add command:
setFtpConfigNew;testFtpServerNew;setSMT
PConfigNew;smtpTestNew
This document is for latest version.if you use this document for develop, your camera’s
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
Our device can only support authentication by pass user name or password attached
We only support GET and POST method. Only importConfig and fwUpgrade can
The cgi request string must be encode in url format. URL encode rule:
CGI request string format error
Username or password error
at CGI request string currentlly.
For example:
https://xxxxxx.myfoscam.org:443/cgi-bin/CGIProxy.fcgi&usr=admin&pwd=123&cmd=
ABC
support POST method.
The following chars will not be encoded:
[A~Z] [a~z] [0~9] + @ * /
The other chars will be encoded into hex format.
For example:
https://xxxxxx.myfoscam.org:443/cgi-bin/CGIProxy.fcgi?usr=admin&pwd=&cmd=getIPInfo
will be encode to:
https://xxxxxx.myfoscam.org:443/cgi-bin/CGIProxy.fcgi?usr%3Dadmin%26pwd%3D%26cmd%3DgetIPInfo
1) We orgnize the cgi execute result as xml format, for example:
<CGI_Result>
<result>0</result>
<isDHCP>1</isDHCP>
<ip>192.168.1.8</ip>
<gate>0.0.0.0</gate>
<mask>255.255.255.0</mask>
<dns1>0.0.0.0</dns1>
<dns2>0.0.0.0</dns2>
</CGI_Result>
<result></result> means the common execute result
Copyright@ Shenzhen Foscam Intelligent Technology Limited

AV Function
Get color attribute of video
/cgi-bin/CGIProxy.fcgi?cmd=getImageSetting
/cgi-bin/CGIProxy.fcgi?cmd=getImageSetting&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=setBrightness
/cgi-bin/CGIProxy.fcgi?cmd=setBrightness&brightness=50&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=setContrast
getImageSetting
Foscam IPCamera CGI User Guide
setBrightness
setContrast
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=setContrast&constrast=50&usr=admin&pwd=
setHue
/cgi-bin/CGIProxy.fcgi?cmd=setHue
/cgi-bin/CGIProxy.fcgi?cmd=setHue&hue=50&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=setSaturation
/cgi-bin/CGIProxy.fcgi?cmd=setSaturation&saturation=50&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=setSharpness
/cgi-bin/CGIProxy.fcgi?cmd=setSharpness&sharpness=50&usr=admin&pwd=
Set DenoiseLevel of video
Foscam IPCamera CGI User Guide
setSaturation
setSharpness
setDenoiseLevel (not use)
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=setSharpness
/cgi-bin/CGIProxy.fcgi?cmd=setDenoiseLevel&level=50&usr=admin&pwd=
resetImageSetting
Reset color parameters to default value
/cgi-bin/CGIProxy.fcgi?cmd=resetImageSetting
/cgi-bin/CGIProxy.fcgi?cmd=resetImageSetting&usr=admin&pwd=
Get mirror and flip attribute of video
/cgi-bin/CGIProxy.fcgi?cmd=getMirrorAndFlipSetting
/cgi-bin/CGIProxy.fcgi?cmd=getMirrorAndFlipSetting&usr=admin&pwd=
Mirror video
/cgi-bin/CGIProxy.fcgi?cmd=mirrorVideo
Foscam IPCamera CGI User Guide
getMirrorAndFlipSetting
mirrorVideo
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=mirrorVideo&
isMirror=1
&usr=admin&pwd=
flipVideo
/cgi-bin/CGIProxy.fcgi?cmd=flipVideo
/cgi-bin/CGIProxy.fcgi?cmd=flipVideo&isFlip=1&usr=admin&pwd=
Get value for image distortion correction
/cgi-bin/CGIProxy.fcgi?cmd=getRatio
Three ranks for image distortion correction
High:150.
Middle:210.
Low:430.
/cgi-bin/CGIProxy.fcgi?cmd=getRatio&usr=admin&pwd=
Set value for image distortion correction
/cgi-bin/CGIProxy.fcgi?cmd=setRatio
1. 0-511,value for image distortion correction.
Foscam IPCamera CGI User Guide
getRatio
setRatio
Copyright@ Shenzhen Foscam Intelligent Technology Limited

High:0-150.
Middle:151-429.
Low:430-511.
3. Default, Middle.
/cgi-bin/CGIProxy.fcgi?cmd=setRatio&
ratio=150
&usr=admin&pwd=
getH264FrmRefMode
Get frame shipping reference mode of H264 encode stream
/cgi-bin/CGIProxy.fcgi?cmd=getH264FrmRefMode
1 Two frames are separated by four skipping
frames
/cgi-bin/CGIProxy.fcgi?cmd=getH264FrmRefMode&usr=admin&pwd=
Set frame shipping reference mode of H264 encode stream
/cgi-bin/CGIProxy.fcgi?cmd=setH264FrmRefMode
1 Two frames are separated by four skipping
frames
/cgi-bin/CGIProxy.fcgi?cmd=setH264FrmRefMode&mode=0&usr=admin&pwd=
Get stream channel for schedule record
Foscam IPCamera CGI User Guide
setH264FrmRefMode
getScheduleRecordStreamChn
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=getScheduleRecordStreamChn
/cgi-bin/CGIProxy.fcgi?cmd=getScheduleRecordStreamChn&usr=admin&pwd=
setScheduleRecordStreamChn
Set stream channel for schedule record
/cgi-bin/CGIProxy.fcgi?cmd=setScheduleRecordStreamChn
/cgi-bin/CGIProxy.fcgi?cmd=setScheduleRecordStreamChn&chn=0&usr=admin
&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=setPwrFreq
/cgi-bin/CGIProxy.fcgi?cmd=setPwrFreq&freq=0&usr=admin&pwd=
Get video stream param
/cgi-bin/CGIProxy.fcgi?cmd=getVideoStreamParam
Foscam IPCamera CGI User Guide
setPwrFreq
getVideoStreamParam
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Resolution of stream type N
Bit rate of stream type N (20480~2097152)
Frame rate of stream type N
P frames between I frame of stream type N
Change bit rate of stream 1-yes
0-nosetSubVideoStreamParam
/cgi-bin/CGIProxy.fcgi?cmd=getVideoStreamParam&usr=admin&pwd=
setVideoStreamParam
Set the video stream param of stream N
/cgi-bin/CGIProxy.fcgi?cmd=setVideoStreamParam
Resolution of stream type N
Bit rate of stream type N (20480~2097152)
Frame rate of stream type N
P frames between I frame of stream type N
The suggest value is: X * frameRate
Change bit rate of stream type 1-Yes 0-No
/cgi-bin/CGIProxy.fcgi?cmd=setVideoStreamParam&streamType=0&resolution=
0&bitRate=2097152&frameRate=30&GOP=30&isVBR=0&usr=admin&pwd=
Get sub video stream param
/cgi-bin/CGIProxy.fcgi?cmd=getSubVideoStreamParam
Resolution of stream type N
Bit rate of stream type N (20480~2097152)
Frame rate of stream type N
P frames between I frame of stream type N
Foscam IPCamera CGI User Guide
getSubVideoStreamParam
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=getSubVideoStreamParam&usr=admin&pwd=
setSubVideoStreamParam
Set the sub video stream param of stream N
/cgi-bin/CGIProxy.fcgi?cmd=setSubVideoStreamParam
Resolution of stream type N
Bit rate of stream type N (20480~2097152)
Frame rate of stream type N
P frames between I frame of stream type N
The suggest value is: X * frameRate
/cgi-bin/CGIProxy.fcgi?cmd=setSubVideoStreamParam&streamType=0&resoluti
on=0&bitRate=2097152&frameRate=30&GOP=30&isVBR=0&usr=admin&pwd=
Get the stream type of main stream
/cgi-bin/CGIProxy.fcgi?cmd=getMainVideoStreamType
/cgi-bin/CGIProxy.fcgi?cmd=getMainVideoStreamType&usr=admin&pwd=
Get the stream type of sub stream
/cgi-bin/CGIProxy.fcgi?cmd=getSubVideoStreamType
Foscam IPCamera CGI User Guide
getMainVideoStreamType
getSubVideoStreamType
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=getSubVideoStreamType&usr=admin&pwd=
setMainVideoStreamType
Set the stream type of main stream
/cgi-bin/CGIProxy.fcgi?cmd=setMainVideoStreamType
/cgi-bin/CGIProxy.fcgi?cmd=setMainVideoStreamType&streamType=0&usr=ad
min&pwd=
Set the stream format of sub stream
/cgi-bin/CGIProxy.fcgi?cmd=setSubStreamFormat
Our device can only support 2 streams:Main stream for PC access and Sub
stream for mobile access, but someone need a MJ stream to embed their
camera into a webpage, in this case, we should set sub stream format to Motion
Jpeg, and then you can get MJ stream by command:
/cgi-bin/CGIStream.cgi?cmd=GetMJStream, but when you login as a sub stream
user, the stream data will be same as main stream.
/cgi-bin/CGIProxy.fcgi?cmd=setSubStreamFormat&format=0&usr=admin&pwd=
/cgi-bin/CGIStream.cgi?cmd=GetMJStream
Foscam IPCamera CGI User Guide
setSubStreamFormat
GetMJStream
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
1) Motion jpeg stream data is returned from https server by a serverpush mode
2) MJ stream is VGA resolution @ 15fps
3) For some version of Firefox browse, the Firefox will crash when use
“GetMJStream” CGI to get mjstream long time. This problem is due to the
browse has some defects, it can not parse data correctly and directly. In
order to fix this problem, we should as follows:
A. Create a .txt empty document, such as “MJ.txt”.
B.Input the content into you .txt document, as follows:
<html>
<body>
<img
src="https://xxxxxx.myfoscam.org:443/cgi-bin/CGIStream.cgi?cmd=GetMJStream
&usr=admin&pwd="/>
</body>
</html>
Note: please change the ip\port\usr\pwd to youself;
C. Rename your .txt to .html, such as “MJ.html”.
D. Open you r.html by Firefox, and enjoy your MJStream-video;
/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=getOSDSetting
Time stamp will display on screen or not
Camera name will display on screen or not
OSD display position, currently can only be 0
/cgi-bin/CGIProxy.fcgi?cmd=getOSDSetting&usr=admin&pwd=
getOSDSetting
setOSDSetting
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=setOSDSetting
Time stamp will display on screen or not
Camera name will display on screen or not
OSD display position, currently can only be 0
/cgi-bin/CGIProxy.fcgi?cmd=setOSDSetting&isEnableTimeStamp=1&isEnableD
evName=1&dispPos=0&isEnableOSDMask=0&usr=admin&pwd=
getOsdMaskArea
/cgi-bin/CGIProxy.fcgi?cmd=getOsdMaskArea
The top left X position of mask N
The top left Y position of mask N
The bottom right X position of mask N
The bottom right Y position of mask N
Our device can only support 4 mask areas
/cgi-bin/CGIProxy.fcgi?cmd=getOsdMaskArea&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=setOsdMaskArea
The top left X position of mask N
The top left Y position of mask N
The bottom right X position of mask N
The bottom right Y position of mask N
Our device can only support 4 mask areas
/cgi-bin/CGIProxy.fcgi?cmd=setOsdMaskArea&x1_0=100&y1_0=100&x2_0=20
0&y2_0=200&x1_1=0&y1_1=0&x2_1=0&y2_1=0&x1_2=0&y1_2=0&x2_2=0&y
2_2=0&x1_3=0&y1_3=0&x2_3=0&y2_3=0&usr=admin&pwd=
Foscam IPCamera CGI User Guide
setOsdMaskArea
Copyright@ Shenzhen Foscam Intelligent Technology Limited

getOSDMask
/cgi-bin/CGIProxy.fcgi?cmd=getOSDMask
Time stamp will display on screen or not
Camera name will display on screen or not
OSD display position, currently can only be 0
/cgi-bin/CGIProxy.fcgi?cmd=getOSDMask&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=setOSDMask
/cgi-bin/CGIProxy.fcgi?cmd=setOSDMask&isEnableOSDMask=1&usr=admin&p
wd=
Get motion detect config
/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig
Is enable motion detect alarm
Motion alarm linkage
( bit3 | bit2 | bit1 | bit0 )
The interval time to snap picture again
setOSDMask
Foscam IPCamera CGI User Guide
getMotionDetectConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
The time of which motion detect alaram can
trigger again when a motion detection has
happened.P.s.The true value of triggerInterval
time is the value of the cgi get add 5s.
Is enable motion alarm detect
Is enable Passive Infrared alarm detect
The motion alaram schedule of one week,
N = 0(Monday) ~6(Sunday)
For detail, see *1 bellow
The area info of row N
For detail, see *2 bellow
·Video region is divided into 10*10 sub areasideo region is divided into 10*10
sub areas
·The min unit of schedule is half an hour, scheduleN value range
/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig&usr=admin&pwd=
Set motion detect config
/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig
Is enable motion detect alarm
Motion alarm linkage
( bit3 | bit2 | bit1 | bit0 )
The interval time to snap picture again
Motion detect
sensitivity
setMotionDetectConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
The time of which motion detect alaram can
trigger again when a motion detection has
happened.P.s.The true value of triggerInterval
time is the value of the cgi set add 5s.
The motion alaram schedule of one week,
N = 0(Monday) ~6(Sunday)
For detail, see *1 bellow
The area info of row N
For detail, see *2 bellow
·Video region is divided into 10*10 sub areasideo region is divided into 10*10
sub areas
·The min unit of schedule is half an hour, scheduleN value range
/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&linkage=16&s
napInterval=2&sensitivity=1&triggerInterval=5&isMovAlarmEnable=1&isPirAla
rmEnable=1&schedule0=1023&schedule1=1023&schedule2=1023&schedule3
=1023&schedule4=1023&schedule5=1023&schedule6=1023&area0=1023&are
a1=1023&area2=1023&area3=1023&area4=1023&area5=1023&area6=1023&
area7=1023&area7=1023&area8=1023&area9=1023&usr=admin&pwd=
*1 schedule bitmap
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
Each grid of a row presents half of an
one day. For example, 40 presents
Set local alarm-record config
/cgi-bin/CGIProxy.fcgi?cmd=setLocalAlarmRecordConfig
isEnableLocalAlar
mRecord
/cgi-bin/CGIProxy.fcgi?cmd=setLocalAlarmRecordConfig&isEnableLocalAlarmR
ecord=1&localAlarmRecordSecs=30&usr=admin&pwd=
Get local alarm-record config
/cgi-bin/CGIProxy.fcgi?cmd=getLocalAlarmRecordConfig
~20:30.
The bit 40 set to “1” means the motion detection is effective between 20:00 to 20:30
*2 area bitmap
The video region is divided into 10*10 sub areas, bit0 above present the first area, when
this bit is set to “1”, it means motion detection is effective on this area.
setLocalAlarmRecordConfig
getLocalAlarmRecordConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

isEnableLocalAlar
mRecord
/cgi-bin/CGIProxy.fcgi?cmd=getLocalAlarmRecordConfig&usr=admin&pwd=
getSnapConfig
/cgi-bin/CGIProxy.fcgi?cmd=getSnapConfig
/cgi-bin/CGIProxy.fcgi?cmd=getSnapConfig&usr=admin&pwd=
Set snap config
/cgi-bin/CGIProxy.fcgi?cmd=setSnapConfig
/cgi-bin/CGIProxy.fcgi?cmd=setSnapConfig&snapQuality=1&saveLocation=2&
usr=admin&pwd=
Foscam IPCamera CGI User Guide
setSnapConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

getScheduleSnapConfig
/cgi-bin/CGIProxy.fcgi?cmd=getScheduleSnapConfig
Is enable motion detect alarm
The interval time to snap picture again
The motion alaram schedule of one week,
N = 0(Monday) ~6(Sunday)
For detail, see *1 bellow
·The min unit of schedule is half an hour, scheduleN value range
/cgi-bin/CGIProxy.fcgi?cmd=getScheduleSnapConfig&usr=admin&pwd=
Set schedule snap config
/cgi-bin/CGIProxy.fcgi?cmd=setScheduleSnapConfig
The interval time to snap picture again
The motion alaram schedule of one week,
N = 0(Monday) ~6(Sunday)
For detail, see *1 bellow
·The min unit of schedule is half an hour, scheduleN value range
/cgi-bin/CGIProxy.fcgi?cmd=setScheduleSnapConfig&isEnable=1&snapInterva
l=2&schedule0=1023&schedule1=1023&schedule2=1023&schedule3=1023&sc
hedule4=1023&schedule5=1023&schedule6=1023&usr=admin&pwd=
Foscam IPCamera CGI User Guide
setScheduleSnapConfig
*1 schedule bitmap
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
/cgi-bin/CGIProxy.fcgi?cmd=snapPicture
We will return a html script directly:
<html><body><img src="../snapPic/20121121-215939.jpg"/></body></html>
Picture resolution is the same as main stream resolutionnapPicture
/cgi-bin/CGIProxy.fcgi?cmd=snapPicture&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2
This command will return jpeg image data directly
/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=admin&pwd=
Get record list
/cgi-bin/CGIProxy.fcgi?cmd=getRecordList
Each grid of a row presents half of an hour of one day. For example, 40 presents 20:00
~20:30.
The bit 40 set to “1” means the snap is effective between 20:00 to 20:30
snapPicture
snapPicture2
getRecordList
Copyright@ Shenzhen Foscam Intelligent Technology Limited

N(0-9), Record information
/cgi-bin/CGIProxy.fcgi?cmd=getRecordList&usr=admin&pwd=
getRecordList2
/cgi-bin/CGIProxy.fcgi?cmd=getRecordList2
N(0-9), Record information
/cgi-bin/CGIProxy.fcgi?cmd=getRecordList2&usr=admin&pwd=
Synchronization of record index for Play
/cgi-bin/CGIProxy.fcgi?cmd=reloadRecordindex
/cgi-bin/CGIProxy.fcgi?cmd=reloadRecordindex&usr=admin&pwd=
Foscam IPCamera CGI User Guide
reloadRecordindex
Copyright@ Shenzhen Foscam Intelligent Technology Limited

getAlarmRecordConfig
/cgi-bin/CGIProxy.fcgi?cmd=getAlarmRecordConfig
/cgi-bin/CGIProxy.fcgi?cmd=getAlarmRecordConfig&usr=admin&pwd=
Set alarm record config
/cgi-bin/CGIProxy.fcgi?cmd=setAlarmRecordConfig
Set result(0-success,-1-error)
/cgi-bin/CGIProxy.fcgi?cmd=setAlarmRecordConfig&usr=admin&pwd=&isEnabl
ePreRecord=1&preRecordSecs=5&alarmRecordSecs=30
Get record path for storage
/cgi-bin/CGIProxy.fcgi?cmd=getRecordPath
The free capacity of storage device
The total capacity of storage device
/cgi-bin/CGIProxy.fcgi?cmd=getRecordPath&usr=admin&pwd=
setAlarmRecordConfig
Foscam IPCamera CGI User Guide
getRecordPath
Copyright@ Shenzhen Foscam Intelligent Technology Limited

setRecordPath
Set record path for storage
/cgi-bin/CGIProxy.fcgi?cmd=setRecordPath
0-SD card,2-FTP server 3-SD card and cloud
Share direction is not set
The free capacity of storage device
The total capacity of storage device
/cgi-bin/CGIProxy.fcgi?cmd=setRecordPath&usr=admin&pwd=&path=2
Get config for schedule recording
/cgi-bin/CGIProxy.fcgi?cmd=getScheduleRecordConfig
Schedule-Record enable status, 0-disable,1-enable
Level for drop frame,0-30/30,1-24/30,2-15/30,3-8/30,
4-4/30,5-1/30;
The process method when SD card is full,0-cover the
oldest video and continue record,1-stop record
Is recording include audio? 0-no,1-yes
The motion alaram schedule of one week,
N = 0(Monday) ~6(Sunday)
For detail, see *1 bellow
·The min unit of schedule is half an hour, scheduleN value range
/cgi-bin/CGIProxy.fcgi?cmd=getScheduleRecordConfig&usr=admin&pwd=
Foscam IPCamera CGI User Guide
getScheduleRecordConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

setScheduleRecordConfig
Set schedule recordconfig
/cgi-bin/CGIProxy.fcgi?cmd=setScheduleRecordConfig
Schedule-Record enable status, 0-disable,1-enable
Level for drop frame,0-30/30,1-24/30,2-15/30,3-8/30,
4-4/30,5-1/30;
The process method when SD card is full,0-cover the
oldest video and continue record,1-stop record
Is recording include audio? 0-no,1-yes
The motion alaram schedule of one week,
N = 0(Monday) ~6(Sunday)
For detail, see *1 bellow
·The min unit of schedule is half an hour, scheduleN value range
/cgi-bin/CGIProxy.fcgi?cmd=setScheduleRecordConfig&isEnable=1&recordLev
el=0&spaceFullMode=0&isEnableAudio=0&schedule0=1023&schedule1=1023&
schedule2=1023&schedule3=1023&schedule4=1023&schedule5=1023&sched
ule6=1023&usr=admin&pwd=
Foscam IPCamera CGI User Guide
*1 schedule bitmap
Each grid of a row presents half of an hour of one day. For example, 40 presents 20:00
~20:30.
The bit 40 set to “1” means the snap is effective between 20:00 to 20:30
Copyright@ Shenzhen Foscam Intelligent Technology Limited

setIOAlarmConfig
/cgi-bin/CGIProxy.fcgi?cmd=setIOAlarmConfig
Alarm level,0-Low,1-high,trigger alarm
Interval for snap picture
Interval for trigger alarm again,P.s.The true value of
triggerInterval time is the value of the cgi set add 5s.
Set result(0-success,-1-error)
/cgi-bin/CGIProxy.fcgi?cmd=setIOAlarmConfig&usr=admin&pwd=&isEnable=1
&linkage=16&snapInterval=2&alarmLevel=1&triggerInterval=5&schedule0=102
4&schedule1=1024&schedule2=1024&schedule3=1024&schedule4=1024&sch
edule5=1024&schedule6=1024
Get IO alarm config
/cgi-bin/CGIProxy.fcgi?cmd=getIOAlarmConfig
Interval for snap picture
Interval for trigger alarm again , P.s.The true value of
triggerInterval time is the value of the cgi get add 5s.
Foscam IPCamera CGI User Guide
getIOAlarmConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=getIOAlarmConfig&usr=admin&pwd=
clearIOAlarmOutput
/cgi-bin/CGIProxy.fcgi?cmd=clearIOAlarmOutput
/cgi-bin/CGIProxy.fcgi?cmd=clearIOAlarmOutput&usr=admin&pwd=
Set Audio alarm config
/cgi-bin/CGIProxy.fcgi?cmd=setAudioAlarmConfig
Interval for snap picture
Interval for trigger alarm again
Set result(0-success,-1-error)
/cgi-bin/CGIProxy.fcgi?cmd=setAudioAlarmConfig&usr=admin&pwd=&isEnable
=1&linkage=16&
snapInterval=2&sensitivity=1
&triggerInterval=5&schedule0=1
024&schedule1=1024&schedule2=1024&schedule3=1024&schedule4=1024&s
chedule5=1024&schedule6=1024
Foscam IPCamera CGI User Guide
setAudioAlarmConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

getAudioAlarmConfig
/cgi-bin/CGIProxy.fcgi?cmd=getAudioAlarmConfig
Interval for snap picture
Interval for trigger alarm again
/cgi-bin/CGIProxy.fcgi?cmd=getAudioAlarmConfig&usr=admin&pwd=
Set audio alarm config for PC(web live video)
/cgi-bin/CGIProxy.fcgi?cmd=setPCAudioAlarmCfg
Set result(0-success,-1-error)
/cgi-bin/CGIProxy.fcgi?cmd=setPCAudioAlarmCfg&usr=admin&pwd=&isEnable
PCAudioAlarm=1
Get audio alarm config for PC(web live video)
/cgi-bin/CGIProxy.fcgi?cmd=getPCAudioAlarmCfg
Foscam IPCamera CGI User Guide
setPCAudioAlarmCfg
getPCAudioAlarmCfg
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=getPCAudioAlarmCfg&usr=admin&pwd=
getMultiDevList
/cgi-bin/CGIProxy.fcgi?cmd=getMultiDevList
N(0-8), device information
/cgi-bin/CGIProxy.fcgi?cmd=getMultiDevList&usr=admin&pwd=
Get multi device information
/cgi-bin/CGIProxy.fcgi?cmd=getMultiDevDetailInfo
/cgi-bin/CGIProxy.fcgi?cmd=getMultiDevDetailInfo&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=addMultiDev
Foscam IPCamera CGI User Guide
getMultiDevDetailInfo
addMultiDev
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Add result(0-success,-1-error)
/cgi-bin/CGIProxy.fcgi?cmd=addMultiDev&usr=admin&pwd=&
chnnl
=2&
product
Type
=H264&
ip=192.168.1.3&port=88&mediaPort
=88
&userName=admin&pass
Word=&devName=FI9805W
delMultiDev
/cgi-bin/CGIProxy.fcgi?cmd=delMultiDev
Delete result(0-success,-1-error)
/cgi-bin/CGIProxy.fcgi?cmd=delMultiDev&usr=admin&pwd=&
chnnl
=2
Set status to enhance night vision definition
/cgi-bin/CGIProxy.fcgi?cmd=setDeFrameLevel
0 -Disable the status of enhance
1 -Enable the status of enhance
/cgi-bin/CGIProxy.fcgi?cmd=setDeFrameLevel&level=0&usr=admin&pwd=
Get status of enhance the night vision definition
Foscam IPCamera CGI User Guide
setDeFrameLevel
getDeFrameLevel
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=getDeframeLevel
0 -Disable the status of enhance
1 -Enable the status of enhance
/cgi-bin/CGIProxy.fcgi?cmd=getDeframeLevel&usr=admin&pwd=
getNetworkAutoAdaptability
Get status of Network Auto Adaptability flag
/cgi-bin/CGIProxy.fcgi?cmd=getNetworkAutoAdaptability
0 -Disable the status of
Network Auto Adaptability
1 -Enable the status of
Network Auto Adaptability
/cgi-bin/CGIProxy.fcgi?cmd=getNetworkAutoAdaptability&usr=admin&pwd=
Set status to Network Auto Adaptability flag
/cgi-bin/CGIProxy.fcgi?cmd=setNetworkAutoAdaptability
0 -Disable the status of
Network Auto Adaptability flag
1 -Enable the status to
Network Auto Adaptability flag
/cgi-bin/CGIProxy.fcgi?cmd=setNetworkAutoAdaptability&enable=0&usr=admin
&pwd=
Get status of Network Auto Adaptability flag
/cgi-bin/CGIProxy.fcgi?cmd=getMainStreamCapabilities
Foscam IPCamera CGI User Guide
setNetworkAutoAdaptability
getMainStreamCapabilities
Copyright@ Shenzhen Foscam Intelligent Technology Limited

类似格式:
{
"HD816P V2":[{
"MSRL": "1280*720",
"MSRLV": 0,
"MSFR": 30,
"MSBR": "4M"
}]
}
/cgi-bin/CGIProxy.fcgi?cmd=getMainStreamCapabilities&usr=admin&pwd=
getSubStreamCapabilities
Get status of Network Auto Adaptability flag
/cgi-bin/CGIProxy.fcgi?cmd=getSubStreamCapabilities
同 getMainStreamCapabilities 返回格式
/cgi-bin/CGIProxy.fcgi?cmd=getSubStreamCapabilities&usr=admin&pwd=
getAudioSendMethod
/cgi-bin/CGIProxy.fcgi?cmd=getAudioSendMethod
0:old method;1:new method
/cgi-bin/CGIProxy.fcgi?cmd=
getAudioSendMethod
&usr=admin&pwd=
Foscam IPCamera CGI User Guide
getAudioSendMethod
Copyright@ Shenzhen Foscam Intelligent Technology Limited

User account
/cgi-bin/CGIProxy.fcgi?cmd=addAccount
/cgi-bin/CGIProxy.fcgi?cmd=addAccount&usrName=test&usrPwd=test&privileg
e=0& usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=delAccount
/cgi-bin/CGIProxy.fcgi?cmd=delAccount&usrName=test&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=getPassword
addAccount
Foscam IPCamera CGI User Guide
delAccount
getPassword
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=getPassword&usrName=test&usr=admin&pwd=
changePassword
/cgi-bin/CGIProxy.fcgi?cmd=changePassword
The user you want to change password
Admin can change every user’s password, visitor and operator can only change
their own password
/cgi-bin/CGIProxy.fcgi?cmd=changePassword&usrName=admin&oldPwd=&ne
wPwd=test&usr=admin&pwd=
Change user name
/cgi-bin/CGIProxy.fcgi?cmd=changeUserName
The user you want to change name
Admin can change every user’s name, visitor and operator can only change
their own name
/cgi-bin/CGIProxy.fcgi?cmd=changeUserName&usrName=admin&
newUsrName=newname&usr=admin&pwd=
Change user name and password together
/cgi-bin/CGIProxy.fcgi?cmd=changeUserNameAndPwdTogether
The user you want to change name
Foscam IPCamera CGI User Guide
changeUserName
changeUserNameAndPwdTogether
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Admin can change every user’s name, visitor and operator can only change
their own name
/cgi-bin/CGIProxy.fcgi?cmd=changeUserNameAndPwdTogether&usrName=ad
min&newUsrName=newname&oldPwd=&newPwd=newpwd&usr=admin&pwd=
logIn
/cgi-bin/CGIProxy.fcgi?cmd= logIn
An id use to distinguish different users,can be set to
current cpu tick
/cgi-bin/CGIProxy.fcgi?cmd=logIn&usrName=admin&remoteIp=192.168.1.12&
groupId=673982479&pwd=&usr=admin&pwd=
Foscam IPCamera CGI User Guide
Copyright@ Shenzhen Foscam Intelligent Technology Limited

logOut
/cgi-bin/CGIProxy.fcgi?cmd=logOut
An id use to distinguish different users,can be set to
current cpu tick
/cgi-bin/CGIProxy.fcgi?cmd=logOut&usrName=admin&ip=192.168.1.12&groupI
d=673982479&usr=admin&pwd=
Get current session list of the camera
/cgi-bin/CGIProxy.fcgi?cmd=getSessionList
/cgi-bin/CGIProxy.fcgi?cmd=getSessionList&usr=admin&pwd=
Get user account list of the camera
/cgi-bin/CGIProxy.fcgi?cmd=getUserList
/cgi-bin/CGIProxy.fcgi?cmd=getUserList&usr=admin&pwd=
Foscam IPCamera CGI User Guide
getSessionList
getUserList
Copyright@ Shenzhen Foscam Intelligent Technology Limited

usrBeatHeart
user checks connection with camera
/cgi-bin/CGIProxy.fcgi?cmd=usrBeatHeart
An id use to distinguish different users,can be set to
current cpu tick
checkResult(0-success,-1-error)
/cgi-bin/CGIProxy.fcgi?cmd=usrBeatHeart&usrName=admin&ip=192.168.1.13
&groupId=673982479&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveUp
/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveUp&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveDown
/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveDown&usr=admin&pwd=
Foscam IPCamera CGI User Guide
PTZ Control
ptzMoveUp
ptzMoveDown
Copyright@ Shenzhen Foscam Intelligent Technology Limited

ptzMoveLeft
/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveLeft
/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveLeft&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveRight
/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveRight&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveTopLeft
/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveTopLeft&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveTopRight
ptzMoveRight
Foscam IPCamera CGI User Guide
ptzMoveTopLeft
ptzMoveTopRight
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveTopRight&usr=admin&pwd=
ptzMoveBottomLeft
/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveBottomLeft
/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveBottomLeft&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveBottomRight
/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveBottomRight&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=ptzStopRun
/cgi-bin/CGIProxy.fcgi?cmd=ptzStopRun&usr=admin&pwd=
Reset PT to default position
Foscam IPCamera CGI User Guide
ptzMoveBottomRight
ptzStopRun
ptzReset
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=ptzReset
/cgi-bin/CGIProxy.fcgi?cmd=ptzReset&usr=admin&pwd=
getPTZSpeed
/cgi-bin/CGIProxy.fcgi?cmd=getPTZSpeed
/cgi-bin/CGIProxy.fcgi?cmd=getPTZSpeed&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=setPTZSpeed
/cgi-bin/CGIProxy.fcgi?cmd=setPTZSpeed&speed=2&usr=admin&pwd=
Foscam IPCamera CGI User Guide
setPTZSpeed
Copyright@ Shenzhen Foscam Intelligent Technology Limited

getPTZPresetPointList
/cgi-bin/CGIProxy.fcgi?cmd=getPTZPresetPointList
Current preset point count
Our device can support at most 16 preset point
We have 4 point default:LeftMost\RightMost\TopMost\BottomMost
/cgi-bin/CGIProxy.fcgi?cmd=getPTZPresetPointList&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=ptzAddPresetPoint
The preset point position is current PT position
/cgi-bin/CGIProxy.fcgi?cmd=ptzAddPresetPoint&name=test&usr=admin&pwd
=
Delete preset point by name
/cgi-bin/CGIProxy.fcgi?cmd=ptzDeletePresetPoint
/cgi-bin/CGIProxy.fcgi?cmd=ptzDeletePresetPoint&name=test&usr=admin&p
wd=
ptzAddPresetPoint
Foscam IPCamera CGI User Guide
ptzDeletePresetPoint
Copyright@ Shenzhen Foscam Intelligent Technology Limited

ptzGotoPresetPoint
/cgi-bin/CGIProxy.fcgi?cmd=ptzGotoPresetPoint
/cgi-bin/CGIProxy.fcgi?cmd=ptzGotoPresetPoint&name=test&usr=admin&pwd
=
/cgi-bin/CGIProxy.fcgi?cmd=ptzGetCruiseMapList
Current cruise map point count
Our device can support at most 8 cruise map
We have 2 maps default:Horizental/Vertical
/cgi-bin/CGIProxy.fcgi?cmd=ptzGetCruiseMapList&usr=admin&pwd=
Get the detail info of a cruise map by name
/cgi-bin/CGIProxy.fcgi?cmd=ptzGetCruiseMapInfo
The preset point name of this cruise map
Our device can support at most 8 preset point one cruise map
/cgi-bin/CGIProxy.fcgi?cmd=ptzGetCruiseMapInfo&name=Horizental&usr=ad
min&pwd=
ptzGetCruiseMapList
Foscam IPCamera CGI User Guide
ptzGetCruiseMapInfo
Copyright@ Shenzhen Foscam Intelligent Technology Limited

ptzSetCruiseMap
/cgi-bin/CGIProxy.fcgi?cmd=ptzSetCruiseMap
The name of preset point N
Our device can support at most 8 preset point one cruise map
/cgi-bin/CGIProxy.fcgi?cmd=ptzSetCruiseMap&name=test&point0=test0&point
1=test1&point2=test2&point3=test3&point4=test4&point5=test5&point6=&poin
t7=&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=ptzDelCruiseMap
/cgi-bin/CGIProxy.fcgi?cmd=ptzDelCruiseMap&name=test&usr=admin&pwd=
Start a specificate cruise
/cgi-bin/CGIProxy.fcgi?cmd=ptzStartCruise
/cgi-bin/CGIProxy.fcgi?cmd=ptzStartCruise&
mapName
=test&usr=admin&pwd=
ptzDelCruiseMap
Foscam IPCamera CGI User Guide
ptzStartCruise
ptzStopCruise
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=ptzStopCruise
/cgi-bin/CGIProxy.fcgi?cmd=ptzStopCruise&usr=admin&pwd=
setCruiseTime
Set time for continue cruise
/cgi-bin/CGIProxy.fcgi?cmd=setCruiseTime
/cgi-bin/CGIProxy.fcgi?cmd=setCruiseTime&
time
=5&usr=admin&pwd=
Set time for continue cruise
/cgi-bin/CGIProxy.fcgi?cmd=getCuriseTime
/cgi-bin/CGIProxy.fcgi?cmd=getCuriseTime&usr=admin&pwd=
Set time for continue cruise by costomer
/cgi-bin/CGIProxy.fcgi?cmd=setCruiseTimeCustomed
Customed time for continue cruise
Customed enable state-0-no,1-yes
/cgi-bin/CGIProxy.fcgi?cmd=setCruiseTimeCustomed&time=5&customed=1&u
sr=admin&pwd=
Foscam IPCamera CGI User Guide
getCruiseTime
setCruiseTimeCustomed
Copyright@ Shenzhen Foscam Intelligent Technology Limited

getCruiseTimeCustomed
Set time for continue cruise by costomer
/cgi-bin/CGIProxy.fcgi?cmd=getCruiseTimeCustomed
Customed time for continue cruise
Customed enable state-0-no,1-yes
/cgi-bin/CGIProxy.fcgi?cmd=getCruiseTimeCustomed&usr=admin&pwd=
Set counts for continue cruise
/cgi-bin/CGIProxy.fcgi?cmd=setCruiseLoopCnt
Counts for continue cruise
/cgi-bin/CGIProxy.fcgi?cmd=setCruiseLoopCnt&
count
=5&usr=admin&pwd=
Set counts for continue cruise
/cgi-bin/CGIProxy.fcgi?cmd=getCruiseLoopCnt
Counts for continue cruise
/cgi-bin/CGIProxy.fcgi?cmd=getCruiseLoopCnt&usr=admin&pwd=
Set control mode for continue cruise, by time or count
/cgi-bin/CGIProxy.fcgi?cmd=setCruiseCtrlMode
setCruiseLoopCnt
Foscam IPCamera CGI User Guide
getCruiseLoopCnt
setCruiseCtrlMode
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Control mode-0:by time,1:by loop count
/cgi-bin/CGIProxy.fcgi?cmd=setCruiseCtrlMode&
mode
=0&usr=admin&pwd=
getCruiseCtrlMode
Get control mode for continue cruise, by time or count
/cgi-bin/CGIProxy.fcgi?cmd=getCruiseCtrlMode
Control mode-0:by time,1:by loop count
/cgi-bin/CGIProxy.fcgi?cmd=getCruiseCtrlMode&usr=admin&pwd=
Set linger time for cruise,when pt arrive prepoint
/cgi-bin/CGIProxy.fcgi?cmd=setCruisePrepointLingerTime
N:[0-7],max number of prepoints in cruise
/cgi-bin/CGIProxy.fcgi?cmd=setCruisePrePointLingerTime&
name
=123&time0=
0&time1=1&time2=2&time3=3&time4=4&time5=5&time6=6&time7=7&usr=ad
min&pwd=
Set linger time for cruise,when pt arrive prepoint
/cgi-bin/CGIProxy.fcgi?cmd=getCruisePrepointLingerTime
N:[0-7],max number of prepoints in cruise
/cgi-bin/CGIProxy.fcgi?cmd=getCruisePrePointLingerTime&name=123&usr=a
Foscam IPCamera CGI User Guide
setCruisePrePointLingerTime
getCruisePrePointLingerTime
Copyright@ Shenzhen Foscam Intelligent Technology Limited

zoomIn
/cgi-bin/CGIProxy.fcgi?cmd=zoomIn
Only supported by the device has zoom lens
/cgi-bin/CGIProxy.fcgi?cmd=zoomIn&usr=admin&pwd=
Zoom out
/cgi-bin/CGIProxy.fcgi?cmd=zoomOut
Only supported by the device has zoom lens
/cgi-bin/CGIProxy.fcgi?cmd=zoomOut&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=zoomStop
Only supported by the device has zoom lens
/cgi-bin/CGIProxy.fcgi?cmd=zoomStop&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=getZoomSpeed
zoomOut
Foscam IPCamera CGI User Guide
zoomStop
getZoomSpeed
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Only supported by the device has zoom lens
/cgi-bin/CGIProxy.fcgi?cmd=getZoomSpeed&usr=admin&pwd=
setZoomSpeed
/cgi-bin/CGIProxy.fcgi?cmd=setZoomSpeed
Only supported by the device has zoom lens
/cgi-bin/CGIProxy.fcgi?cmd=setZoomSpeed&usr=admin&pwd=&speed=1
Set the selftest mode of PTZ
/cgi-bin/CGIProxy.fcgi?cmd= setPTZSelfTestMode
After normal selftest, then goto
presetpoint-appointed
Only supported by ipc that can enable ptz-selftest
/cgi-bin/CGIProxy.fcgi?usr=admin&pwd=&cmd=setPTZSelfTestMode&mod
e=2
Get the selftest mode of PTZ
Foscam IPCamera CGI User Guide
setPTZSelfTestMode
getPTZSelfTestMode
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd= getPTZSelfTestMode
After normal selftest, then goto
presetpoint-appointed
Only supported by ipc that can enable ptz-selftest
/cgi-bin/CGIProxy.fcgi?usr=admin&pwd=&cmd=getPTZSelfTestMode
setPTZPrePointForSelfTest
Set presetpoint for selftest of PTZ
/cgi-bin/CGIProxy.fcgi?cmd= setPTZPrePointForSelfTest
Only supported by ipc that can enable ptz-selftest-2
/cgi-bin/CGIProxy.fcgi?usr=admin&pwd=&cmd=setPTZPrePointForSelfTes
t&name=TopMost
Get the presetpoint for selftest of PTZ
/cgi-bin/CGIProxy.fcgi?cmd= getPTZPrePointForSelfTest
Only supported by ipc that can enable ptz-selftest
/cgi-bin/CGIProxy.fcgi?usr=admin&pwd=&cmd=getPTZPrePointForSelfTes
t
/cgi-bin/CGIProxy.fcgi?cmd=set485Info
Foscam IPCamera CGI User Guide
getPTZPrePointForSelfTest
set485Info
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Only supported by ipc that can enable 485
/cgi-bin/CGIProxy.fcgi?usr=admin&pwd=&cmd=set485Info&rs485Protocol
=0&rs485Addr=1&rs485Baud=1200&rs485DataBit=7&rs485StopBit=1&rs
485Check=0
get485Info
/cgi-bin/CGIProxy.fcgi?cmd=get485Info
Only supported by ipc that can enable 485
/cgi-bin/CGIProxy.fcgi?usr=admin&pwd=&cmd=get485Info
Get IP Info
/cgi-bin/CGIProxy.fcgi?cmd=getIPInfo
Obtain ip from dhcp server or not
ip address(Can only support ipv4 yet)
Foscam IPCamera CGI User Guide
Network
getIPInfo
Copyright@ Shenzhen Foscam Intelligent Technology Limited

gateway(“0.0.0.0” when use dhcp)
The first dns server addr(“0.0.0.0” when use dhcp)
The second dns server addr(“0.0.0.0” when use dhcp)
/cgi-bin/CGIProxy.fcgi?cmd=getIPInfo&usr=admin&pwd=
setIpInfo
/cgi-bin/CGIProxy.fcgi?cmd=setIpInfo
Obtain ip from dhcp server or not
ip address(Can only support ipv4 yet)
The first dns server addr
The second dns server addr
System will reboot automatically to take effect after call this CGI command
/cgi-bin/CGIProxy.fcgi?cmd=setIpInfo&isDHCP=0&ip=192.168.1.88&gate=192
.168.1.1&mask=255.255.255.0&dns1=192.168.1.1&dns2=192.168.1.1&usr=a
dmin&pwd=
Start scan the aps around
/cgi-bin/CGIProxy.fcgi?cmd=refreshWifiList
This operation may takes a while, about 20 seconds or above, the other
operation on this device will be blocked during the period.
/cgi-bin/CGIProxy.fcgi?cmd=refreshWifiList&usr=admin&pwd=
Foscam IPCamera CGI User Guide
refreshWifiList
Copyright@ Shenzhen Foscam Intelligent Technology Limited

getWifiList
Get the aps around after refreshWifiList
/cgi-bin/CGIProxy.fcgi?cmd=getWifiList
The start NO of the ap list you want to get.
For example:The are 30 aps around you, you want to look at the
last ten aps, then startNo=20
The detail info of ap N
Format:
ssid+mac+quality+isEncryp
t+encrypType
Only 10 aps will be returned one time
/cgi-bin/CGIProxy.fcgi?cmd=getWifiList&startNo=0&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=setWifiSetting
Foscam IPCamera CGI User Guide
setWifiSetting
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
Use in new version when you need encrypt wifi
password.if you are old platform you need not use it.
Eg: using this param ,if your password is “123&”,you
must use “49,50,51,38” instead it .(Each character
must use ASCCI code conversion, and separated by
commas characters)
Camera will not connect to AP unless you enject your cable
/cgi-bin/CGIProxy.fcgi?cmd=setWifiSetting&isEnable=1&isUseWifi=1&ssid=fosta
r_soft&netType=0&encryptType=4&psk=41,48,38&authMode=0&keyFormat=0&d
efaultKey=1&key1=&key2=&key3=&key4=&key1Len=64&key2Len=64&key3Len
=64&key4Len=64&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=setWifiSettingNew
setWifiSettingNew
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
The psk of WPA WPA2(url encoded)
Camera will not connect to AP unless you enject your cable
/cgi-bin/CGIProxy.fcgi?cmd=setWifiSettingNew&isEnable=1&isUseWifi=1&ssid=f
ostar_soft&netType=0&encryptType=4&psk=414838&authMode=0&keyFormat=
0&defaultKey=1&key1=&key2=&key3=&key4=&key1Len=64&key2Len=64&key3
Len=64&key4Len=64&usr=admin&pwd=
Get wifi config
/cgi-bin/CGIProxy.fcgi?cmd=getWifiConfig
getWifiConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
Camera will not connect to AP unless you enject your cable
/cgi-bin/CGIProxy.fcgi?cmd=getWifiConfig&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=getPortInfo
http port(default value is 88)
https port(default value is 443)
media port(default value is 88)
getPortInfo
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Onvif Port(default value is 888)
.You can call this CGI command without usr or pwd section
.onvifPort param only for onvif camera, the camra which does not has onvif
function does not have this param
/cgi-bin/CGIProxy.fcgi?cmd=getPortInfo&usr=admin&pwd=
setPortInfo
/cgi-bin/CGIProxy.fcgi?cmd=getPortInfo
http port(default value is 88)
media port(default value is 88)
https port(default value is 443)
Onvif Port(default value is 888)
.Re login is needed after call this CGI command
.
onvifPort param only for onvif camera, the camra which does not has onvif
function does not have this param
/cgi-bin/CGIProxy.fcgi?cmd=setPortInfo&webPort=88&mediaPort=88&httpsPo
rt=443&onvifPort=888&usr=admin&pwd=
Get UpnP config
/cgi-bin/CGIProxy.fcgi?cmd=getUPnPConfig
/cgi-bin/CGIProxy.fcgi?cmd=getUPnPConfig&usr=admin&pwd=
Set UpnP config
/cgi-bin/CGIProxy.fcgi?cmd=setUPnPConfig
Foscam IPCamera CGI User Guide
getUPnPConfig
setUPnPConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=setUPnPConfig&isEnable=1&usr=admin&pwd=
getDDNSConfig
/cgi-bin/CGIProxy.fcgi?cmd=getDDNSConfig
/cgi-bin/CGIProxy.fcgi?cmd=getDDNSConfig&usr=admin&pwd=
Set DDNS config
/cgi-bin/CGIProxy.fcgi?cmd=setDDNSConfig
Foscam IPCamera CGI User Guide
setDDNSConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

This command can only be used to set the third party ddns
/cgi-bin/CGIProxy.fcgi?cmd=setDDNSConfig&isEnable=1&hostName=test.dyn
dns.org&ddnsServer=4&user=test&password=test&usr=admin&pwd=
setFtpConfig
/cgi-bin/CGIProxy.fcgi?cmd=setFtpConfig
FTP server address, you can contain sub directory in it
/cgi-bin/CGIProxy.fcgi?cmd=setFtpConfig&ftpAddr=ftp://192.168.1.2/sbuDir&ft
pPort=21&mode=0&userName=test&password=test&usr=admin&pwd=
Set FTP config (Password to support special characters)
/cgi-bin/CGIProxy.fcgi?cmd=setFtpConfigNew
FTP server address, you can contain sub directory in it
Encoded password
Eg: if your password is “123&”,you must use “49,50,51,38”
instead it .(Each character must use ASCCI code conversion,
and separated by commas characters)
Foscam IPCamera CGI User Guide
setFtpConfigNew
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=setFtpConfigNew&ftpAddr=ftp://192.168.1.2/sbuD
ir&ftpPort=21&mode=0&userName=test&password=49,50,51,38&usr=admin&
pwd=
getFtpConfig
/cgi-bin/CGIProxy.fcgi?cmd=getFtpConfig
FTP server address, you can contain sub directory in it
/cgi-bin/CGIProxy.fcgi?cmd=getFtpConfig&usr=admin&pwd=
Test FTP server
/cgi-bin/CGIProxy.fcgi?cmd=testFtpServer
FTP server address, you can contain sub directory in it
/cgi-bin/CGIProxy.fcgi?cmd=testFtpServer&ftpAddr=ftp://192.168.1.2/sbuDir&f
Foscam IPCamera CGI User Guide
testFtpServer
Copyright@ Shenzhen Foscam Intelligent Technology Limited

tpPort=21&mode=0&fptuserName=test&ftppassword=test&usr=admin&pwd=
testFtpServerNew
Test FTP server (Password to support special characters)
/cgi-bin/CGIProxy.fcgi?cmd=testFtpServerNew
FTP server address, you can contain sub directory in it
Encoded password
Eg: if your password is “123&”,you must use “49,50,51,38”
instead it .(Each character must use ASCCI code conversion,
and separated by commas characters)
/cgi-bin/CGIProxy.fcgi?cmd=testFtpServerNew&ftpAddr=ftp://192.168.1.2/sbu
Dir&ftpPort=21&mode=0&fptuserName=test&ftppassword=49,50,51,38&usr=a
dmin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=getSMTPConfig
is enable camera send mail?
Need auth user account or not
Foscam IPCamera CGI User Guide
getSMTPConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Use “,” between 2 senders, for exapler:
aaa@123.com,bbb@456.com
/cgi-bin/CGIProxy.fcgi?cmd=getSMTPConfig&usr=admin&pwd=
setSMTPConfig
/cgi-bin/CGIProxy.fcgi?cmd=setSMTPConfig
is enable camera send mail?
Need auth user account or not
Use “,” between 2 senders, for exapler:
aaa@123.com,bbb@456.com
/cgi-bin/CGIProxy.fcgi?cmd=setSMTPConfig&isEnable=1&server=smtp.gmail.
com&port=587&isNeedAuth=1&user=test&password=test&send=test@gmail.c
om&reciever=aa@123.com,bb@456.com&usr=admin&pwd=
set mail config (
Password to support special characters
)
/cgi-bin/CGIProxy.fcgi?cmd=setSMTPConfigNew
Foscam IPCamera CGI User Guide
setSMTPConfigNew
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
is enable camera send mail?
Need auth user account or not
Encoded password
Eg: if your password is “123&”,you must use “49,50,51,38”
instead it .(Each character must use ASCCI code conversion,
and separated by commas characters)
Use “,” between 2 senders, for exapler:
aaa@123.com,bbb@456.com
/cgi-bin/CGIProxy.fcgi?cmd=setSMTPConfigNew&isEnable=1&server=smtp.g
mail.com&port=587&isNeedAuth=1&user=test&password=49,50,51,38&send=
test@gmail.com&reciever=aa@123.com,bb@456.com&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=smtpTest
Need auth user account or not
smtpTest
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=smtpTest&
smtpServer
=smtp.gmail.com&port=587
&isNeedAuth=1&user=test&password=test&sender=test@gmail.com&usr=ad
min&pwd=
smtpTestNew
Test mail setting (
Password to support special characters
)
/cgi-bin/CGIProxy.fcgi?cmd=smtpTestNew
Need auth user account or not
Encoded password
Eg: if your password is “123&”,you must use “49,50,51,38”
instead it .(Each character must use ASCCI code conversion,
and separated by commas characters)
/cgi-bin/CGIProxy.fcgi?cmd=smtpTestNew&smtpServer=smtp.gmail.com&port=
587&isNeedAuth=1&user=test&password=49,50,51,38&sender=test@gmail.c
om&usr=admin&pwd=
Foscam IPCamera CGI User Guide
setP2PEnable
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=setP2PEnable
/cgi-bin/CGIProxy.fcgi?cmd=setP2PEnable&enable=1&usr=admin&pwd=
getP2PEnable
/cgi-bin/CGIProxy.fcgi?cmd=getP2PEnable
/cgi-bin/CGIProxy.fcgi?cmd=getP2PEnable&usr=admin&pwd=
Set p2p port
/cgi-bin/CGIProxy.fcgi?cmd=setP2PPort
/cgi-bin/CGIProxy.fcgi?cmd=setP2PPort&
port
=12345&usr=admin&pwd=
Get p2p port
/cgi-bin/CGIProxy.fcgi?cmd=getP2PPort
Foscam IPCamera CGI User Guide
setP2PPort
getP2PPort
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=getP2PPort&usr=admin&pwd=
getP2PInfo
/cgi-bin/CGIProxy.fcgi?cmd=getP2PInfo
/cgi-bin/CGIProxy.fcgi?cmd=getP2PInfo&usr=admin&pwd=
Get PPPoE config
/cgi-bin/CGIProxy.fcgi?cmd=getPPPoEConfig
/cgi-bin/CGIProxy.fcgi?cmd=getPPPoEConfig&usr=admin&pwd=
Set PPPoE config
/cgi-bin/CGIProxy.fcgi?cmd=setPPPoEConfig
/cgi-bin/CGIProxy.fcgi?cmd=setPPPoEConfig&isEnable=1&userName=usr&p
assword=pwd&usr=admin&pwd=
getPPPoEConfig
Foscam IPCamera CGI User Guide
setPPPoEConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

EnableOnvifAgent
/cgi-bin/CGIProxy.fcgi?cmd=EnableOnvifAgent
/cgi-bin/CGIProxy.fcgi?cmd=EnableOnvifAgent&usr=admin&pwd=
Disable onvifAgent
/cgi-bin/CGIProxy.fcgi?cmd=DisableOnvifAgent
/cgi-bin/CGIProxy.fcgi?cmd=DisableOnvifAgent&usr=admin&pwd=
GetOnvifAgentStat
/cgi-bin/CGIProxy.fcgi?cmd=GetOnvifAgentStat
/cgi-bin/CGIProxy.fcgi?cmd=GetOnvifAgentStat&usr=admin&pwd=
getNetMode
/cgi-bin/CGIProxy.fcgi?cmd=getNetMode
DisableOnvifAgent
Foscam IPCamera CGI User Guide
GetOnvifAgentStat
getNetMode
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=getNetMode&usr=admin&pwd=
wifiTest
/cgi-bin/CGIProxy.fcgi?cmd=wifiTest
Use in new version when you need encrypt wifi
Foscam IPCamera CGI User Guide
Copyright@ Shenzhen Foscam Intelligent Technology Limited

password.if you are old platform you need not use it.
Eg: using this param ,if your password is “123&”,you
must use “49,50,51,38” instead it .(Each character
must use ASCCI code conversion, and separated by
commas characters)
0: success,wifi info can connect route
only can use when Camera wired cable connect
/cgi-bin/CGIProxy.fcgi?cmd=
wifiTest
&isEnable=1&isUseWifi=1&ssid=fostar_soft
&netType=0&encryptType=4&psk=41,48,38&authMode=0&keyFormat=0&default
Key=1&key1=&key2=&key3=&key4=&key1Len=64&key2Len=64&key3Len=64&
key4Len=64&usr=admin&pwd=
Device manage
Set system time
/cgi-bin/CGIProxy.fcgi?cmd=setSystemTime
ntp server addr
Support ntp server:
time.nist.gov time.kriss.re.kr time.windows.com
time.nuri.net
The seconds between local time and GMT time.
For example: timeZone=3600 presents GMT-01:00
timeZone=-3600 presents GMT+01:00
Daylight saving time (0-disable,1-enable)
Foscam IPCamera CGI User Guide
setSystemTime
Copyright@ Shenzhen Foscam Intelligent Technology Limited

This command can only be used to set the third party ddns
/cgi-bin/CGIProxy.fcgi?cmd=setSystemTime&timeSource=1&ntpServer=&date
Format=0&timeFormat=0&timeZone=0&isDst=0&dst=0&year=2012&mon=1&
day=6&hour=9&minute=35&sec=0&usr=admin&pwd=
getSystemTime
/cgi-bin/CGIProxy.fcgi?cmd=getSystemTime
ntp server addr
Support ntp server:
time.nist.gov time.kriss.re.kr time.windows.com
time.nuri.net
The seconds between local time and GMT time.
For example: timeZone=3600 presents GMT-01:00
timeZone=-3600 presents GMT+01:00
Daylight saving time (0-disable,1-enable)
Foscam IPCamera CGI User Guide
Copyright@ Shenzhen Foscam Intelligent Technology Limited

This command can only be used to set the third party ddns
/cgi-bin/CGIProxy.fcgi?cmd=getSystemTime&usr=admin&pwd=
openInfraLed
/cgi-bin/CGIProxy.fcgi?cmd=openInfraLed
/cgi-bin/CGIProxy.fcgi?cmd=openInfraLed&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=closeInfraLed
/cgi-bin/CGIProxy.fcgi?cmd=closeInfraLed&usr=admin&pwd=
Get infra led config
/cgi-bin/CGIProxy.fcgi?cmd=getInfraLedConfig
/cgi-bin/CGIProxy.fcgi?cmd=getInfraLedConfig&usr=admin&pwd=
Foscam IPCamera CGI User Guide
closeInfraLed
getInfraLedConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

setInfraLedConfig
/cgi-bin/CGIProxy.fcgi?cmd=setInfraLedConfig&mode=0
/cgi-bin/CGIProxy.fcgi?cmd=setInfraLedConfig&mode=&usr=admin&pwd=
Get config for infra led switch schedule
/cgi-bin/CGIProxy.fcgi?cmd=getScheduleInfraLedConfig
N:[0-2],the number of infra led switch schedule
/cgi-bin/CGIProxy.fcgi?cmd=getScheduleInfraLedConfig&usr=admin&pwd=
Set config for infra led switch schedule
/cgi-bin/CGIProxy.fcgi?cmd=setScheduleInfraLedConfig&mode=0
N:[0-2],the number of infra led switch schedule
/cgi-bin/CGIProxy.fcgi?cmd=setInfraLedConfig&mode=&usr=admin&pwd=
getScheduleInfraLedConfig
Foscam IPCamera CGI User Guide
setScheduleInfraLedConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=getDevState
Free space of sd card by unit of k
Total space of sd card by unit of k
The ssid of the ap which has been connected
Foscam IPCamera CGI User Guide
getDevState
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=admin&pwd=
getDevName
/cgi-bin/CGIProxy.fcgi?cmd=getDevName
/cgi-bin/CGIProxy.fcgi?cmd=getDevName&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=setDevName
/cgi-bin/CGIProxy.fcgi?cmd=setDevName&devName=test&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=getDevInfo
setDevName
Foscam IPCamera CGI User Guide
getDevInfo
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=getDevInfo&usr=admin&pwd=
getDevAttr
/cgi-bin/CGIProxy.fcgi?cmd=getDevAttr
Bit[0]:motion;Bit[1]:sound;Bit[2]:io;Bit[3]:temperature;Bit[4]:
humidiy;
/cgi-bin/CGIProxy.fcgi?cmd=
getDevAttr
&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=getProductModel
/cgi-bin/CGIProxy.fcgi?cmd=getProductModel&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=getProductModelName
Foscam IPCamera CGI User Guide
getProductModel
getProductModelName
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=getProductModelName&usr=admin&pwd=
getProductLanguage
/cgi-bin/CGIProxy.fcgi?cmd=getProductLanguage
/cgi-bin/CGIProxy.fcgi?cmd=getProductLanguage&usr=admin&pwd=
Get camera sensor type number
/cgi-bin/CGIProxy.fcgi?cmd=getProductSensorType
Camera sensor type number
/cgi-bin/CGIProxy.fcgi?cmd=getProductSensorType&usr=admin&pwd=
Get camera wifi type number
/cgi-bin/CGIProxy.fcgi?cmd=getProductWifiType
/cgi-bin/CGIProxy.fcgi?cmd=getProductWifiType&usr=admin&pwd=
Foscam IPCamera CGI User Guide
getProductSensorType
getProductWifiType
Copyright@ Shenzhen Foscam Intelligent Technology Limited

getProductSdFlag
Whether camera support sd card
/cgi-bin/CGIProxy.fcgi?cmd=getProductSdFlag
Camera flag to support sd card-0:no,1:yes
/cgi-bin/CGIProxy.fcgi?cmd=getProductSdFlag&usr=admin&pwd=
Whether camera is outdoor machine
/cgi-bin/CGIProxy.fcgi?cmd=getProductOutdoorFlag
Whether camera is outdoor machine-0:no,1:yes
/cgi-bin/CGIProxy.fcgi?cmd=getProductOutdoorFlag&usr=admin&pwd=
Whether camera is pt machine
/cgi-bin/CGIProxy.fcgi?cmd=getProductPtFlag
Whether camera is pt machine-
0:no,1:yes
/cgi-bin/CGIProxy.fcgi?cmd=getProductPtFlag&usr=admin&pwd=
Whether camera is zoom machine
/cgi-bin/CGIProxy.fcgi?cmd=getProductZoomFlag
getProductOutdoorFlag
Foscam IPCamera CGI User Guide
getProductPtFlag
getProductZoomFlag
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Whether camera is zoom machine-0:no,1:yes
/cgi-bin/CGIProxy.fcgi?cmd=getProductZoomFlag&usr=admin&pwd=
getProductRs485Flag
Whether camera support rs485
/cgi-bin/CGIProxy.fcgi?cmd=getProductRs485Flag
Whether camera support rs485-
0:no,1:yes
/cgi-bin/CGIProxy.fcgi?cmd=getProductRs485Flag&usr=admin&pwd=
Whether camera support IO alarm
/cgi-bin/CGIProxy.fcgi?cmd=getProductIoAlarmFlag
Whether camera support IO alarm-0:no,1:yes
/cgi-bin/CGIProxy.fcgi?cmd=getProductIoAlarmFlag&usr=admin&pwd=
Whether camera support Onvif
/cgi-bin/CGIProxy.fcgi?cmd=getProductOnvifFlag
Whether camera support onvif-
0:no,1:yes
/cgi-bin/CGIProxy.fcgi?cmd=getProductOnvifFlag&usr=admin&pwd=
Foscam IPCamera CGI User Guide
getProductIoAlarmFlag
getProductOnvifFlag
Copyright@ Shenzhen Foscam Intelligent Technology Limited

getProductP2pFlag
Whether camera support P2p
/cgi-bin/CGIProxy.fcgi?cmd=getProductP2pFlag
Whether camera support p2p-
0:no,1:yes
/cgi-bin/CGIProxy.fcgi?cmd=getProductP2pFlag&usr=admin&pwd=
Whether camera support Wps
/cgi-bin/CGIProxy.fcgi?cmd=getProductWpsFlag
Whether camera support wps-0:no,1:yes
/cgi-bin/CGIProxy.fcgi?cmd=getProductWpsFlag&usr=admin&pwd=
Whether camera support audio-speak
/cgi-bin/CGIProxy.fcgi?cmd=getProductAudioFlag
Whether camera support audio for speak-
0:no,1:yes
/cgi-bin/CGIProxy.fcgi?cmd=getProductAudioFlag&usr=admin&pwd=
Whether camera support audio-talk
/cgi-bin/CGIProxy.fcgi?cmd=getProductTalkFlag
getProductWpsFlag
Foscam IPCamera CGI User Guide
getProductAudioFlag
getProductTalkFlag
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Whether camera support audio for talk-0:no,1:yes
/cgi-bin/CGIProxy.fcgi?cmd=getProductTalkFlag&usr=admin&pwd=
getProductAppVer
Get camera application version
/cgi-bin/CGIProxy.fcgi?cmd=getProductAppVer
camera application version
/cgi-bin/CGIProxy.fcgi?cmd=getProductAppVer&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=getProductAllInfo
Whether machine support sd card
Whether machine is outdoor
Whether machine support pt
Whether machine support zoom
Whether machine support rs485
Whether machine support io alarm
Foscam IPCamera CGI User Guide
getProductAllInfo
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
Whether machine support onvif
Whether machine support p2p
Whether machine support wps
Whether machine support audio-speak
Whether machine support audio-talk
Camera application version
/cgi-bin/CGIProxy.fcgi?cmd=getProductAllInfo&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=setProductAllInfo
Whether machine support sd card
Whether machine is outdoor
Whether machine support pt
Whether machine support zoom
Whether machine support rs485
Whether machine support io alarm
Whether machine support onvif
Whether machine support p2p
Whether machine support wps
Whether machine support audio-speak
Whether machine support audio-talk
setProductAllInfo
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=setProductAllInfo&language=0&talkFlag=1&&usr
=admin&pwd=
getNVRApSigQuality
Get camera application version
/cgi-bin/CGIProxy.fcgi?cmd=getNVRApSigQuality
When wired connect,return 100
/cgi-bin/CGIProxy.fcgi?cmd=getNVRApSigQuality&ssid=foscam_ssid&usr=ad
min&pwd=
Get camera voice enable state
/cgi-bin/CGIProxy.fcgi?cmd=
getVoiceEnableState
/cgi-bin/CGIProxy.fcgi?cmd=
getVoiceEnableState
&usr=admin&pwd=
Get camera voice enable state
/cgi-bin/CGIProxy.fcgi?cmd=setVoiceEnableState
Foscam IPCamera CGI User Guide
getVoiceEnableState
setVoiceEnableState
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=setVoiceEnableState&isEnable=1&usr=admin&pwd
=
getGeneratePubKey
Get public key generated by camera for software reset
/cgi-bin/CGIProxy.fcgi?cmd=getGeneratePubKey
The result that camera generate public key for software reset
/cgi-bin/CGIProxy.fcgi?cmd=getGeneratePubKey&usr=admin&pwd=
Set camera reset to factory by software
/cgi-bin/CGIProxy.fcgi?cmd=toolRestoreToFactory
Code length for camera reset
The result that camera reset
/cgi-bin/CGIProxy.fcgi?cmd=toolRestoreToFactory&codeLen=10&code=xxxxx
xxxxx&&usr=admin&pwd=
Foscam IPCamera CGI User Guide
toolRestoreToFactory
System
rebootSystem
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=rebootSystem
/cgi-bin/CGIProxy.fcgi?cmd=rebootSystem&usr=admin&pwd=
restoreToFactorySetting
Restore to factory setting
/cgi-bin/CGIProxy.fcgi?cmd=restoreToFactorySetting
/cgi-bin/CGIProxy.fcgi?cmd= restoreToFactorySetting&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=exportConfig
After call this command, you can get the config file by visit the following addr:
/configs/export/configs.bin
/cgi-bin/CGIProxy.fcgi?cmd=exportConfig&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=importConfig&usr=admin&pwd=
System will reboot automatically after this operation
Foscam IPCamera CGI User Guide
exportConfig
ImportConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

<form name="form5" method="post" target="retframe" enctype="multipart/form-data"
action="cgi-bin/ CGIProxy.fcgi?cmd=importConfig&usr=admin&pwd=" >
<input type="file" name="setting_file" >
<input type="submit" value="import" >
</form>
FwUpgrade
/cgi-bin/CGIProxy.fcgi?cmd=fwUpgrade&usr=admin&pwd=
System will reboot automatically after this operation.
This action may takes about 120s when upgrade app firmware, takes about
60s when upgrade system firmware
<form name="form5" method="post" target="retframe" enctype="multipart/form-data"
action="cgi-bin/ CGIProxy.fcgi?cmd=fwUpgrade&usr=admin&pwd=" >
<input type="file" name="fw_file" >
<input type="submit" value="upgrade" >
</form>
/cgi-bin/CGIProxy.fcgi?cmd=removePatch
/cgi-bin/CGIProxy.fcgi?cmd=removePatch&usr=admin&pwd=
Foscam IPCamera CGI User Guide
removePatch
Copyright@ Shenzhen Foscam Intelligent Technology Limited

MISC
Get firewall config
/cgi-bin/CGIProxy.fcgi?cmd=getFirewallConfig
Only allow the ip list to access
The ip address(Network address) of list N
/cgi-bin/CGIProxy.fcgi?cmd=getFirewallConfig&usr=admin&pwd=
Set firewall config
/cgi-bin/CGIProxy.fcgi?cmd=setFirewallConfig
Only allow the ip list to access
The ip address(Network address) of list N
/cgi-bin/CGIProxy.fcgi?cmd=setFirewallConfig&isEnable=1&rule=0&ipList0=0
&ipList1=0&ipList2=0&ipList3=0&ipList4=0&ipList5=0&ipList6=0&ipList7=0&us
r=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=getLog
Where you want to start get log
getFirewallConfig
Foscam IPCamera CGI User Guide
setFirewallConfig
getLog
Copyright@ Shenzhen Foscam Intelligent Technology Limited

How many logs you want to get, must less then 20
log information, consist by
time+user+ip+logID
We can have 1000 record of log at most.
We can get 10 log at most one time
/cgi-bin/CGIProxy.fcgi?cmd=getLog&offset=0&count=20&usr=admin&pwd=
3. All platform except 3518A add cgi
getAudioVolume
/cgi-bin/CGIProxy.fcgi?cmd=getAudioVolume
/cgi-bin/CGIProxy.fcgi?cmd=getAudioVolume&usr=admin&pwd=
Set Audio Volume
/cgi-bin/CGIProxy.fcgi?cmd=setAudioVolume
/cgi-bin/CGIProxy.fcgi?cmd=setAudioVolume&volume=100&usr=admin&pwd=
Get Wifi Mode
Foscam IPCamera CGI User Guide
setAudioVolume
getWifiMode
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=getWifiMode
/cgi-bin/CGIProxy.fcgi?cmd=getWifiMode&usr=admin&pwd=
getTemperatureAlarmConfig
Get Temperature Alarm Config
/cgi-bin/CGIProxy.fcgi?cmd=getTemperatureAlarmConfig
Motion alarm linkage
( bit7| bit3 | bit2 | bit1 | bit0 )
Interval for snap picture
Interval for trigger alarm again,P.s.The true value of
triggerInterval time is the value of the cgi get add 5s.
/cgi-bin/CGIProxy.fcgi?cmd=getTemperatureAlarmConfig&usr=admin&pwd=
Set Temperature Alarm Config
/cgi-bin/CGIProxy.fcgi?cmd=setTemperatureAlarmConfig
Foscam IPCamera CGI User Guide
setTemperatureAlarmConfig
Copyright@ Shenzhen Foscam Intelligent Technology Limited

Foscam IPCamera CGI User Guide
( bit7| bit3 | bit2 | bit1 | bit0 )
Interval for snap picture
Interval for trigger alarm again,P.s.The true value
of triggerInterval time is the value of the cgi set
add 5s.
/cgi-bin/CGIProxy.fcgi?cmd=setTemperatureAlarmConfig&isEnable=1&linkag
e=129&topLimit=40&lowerLimit=20snapInterval=2&triggerInterval=5&schedul
e0=1023&schedule1=1023&schedule2=1023&schedule3=1023&schedule4=1023
&schedule5=1023&schedule6=1023&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=getTemperatureState
/cgi-bin/CGIProxy.fcgi?cmd=getTemperatureState&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=setMusicDefaultListRefresh
getTemperatureState
Music
setMusicDefaultListRefresh
Copyright@ Shenzhen Foscam Intelligent Technology Limited

/cgi-bin/CGIProxy.fcgi?cmd=setMusicDefaultListRefresh&usr=admin&pwd=
getMusicListsName
/cgi-bin/CGIProxy.fcgi?cmd=getMusicListsName
/cgi-bin/CGIProxy.fcgi?cmd=setMusicDefaultListRefresh&usr=admin&pwd=
Get Musics name of list
/cgi-bin/CGIProxy.fcgi?cmd=getMusicsNameOfList
Get music start from startNo
Expect to get music numbers
Musics number of current m
usic l
ist
Current CGI had get music numbers
Foscam IPCamera CGI User Guide
getMusicsNameOfList
Copyright@ Shenzhen Foscam Intelligent Technology Limited