# Camera API Current time

**URL:** <https://community.mobotix.com/t/camera-api-current-time/5878>\
**Category:** Administration\
**Created:** [October 4, 2022, 7:30pm UTC](https://community.mobotix.com/t/camera-api-current-time/5878 "2022-10-04T19:30:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![josefdz](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.mobotix.com/josefdz/32/1732_2.png) [@josefdz](https://community.mobotix.com/u/josefdz)\
**Post date:** [October 4, 2022, 7:30pm UTC](https://community.mobotix.com/t/camera-api-current-time/5878/1 "2022-10-04T19:30:57Z")

</div>

Hello,

Where can I find the camera current date time on the API?  
Thank You

---

<div class="post-metadata">

**Author:** ![Andrius](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@Andrius](https://community.mobotix.com/u/Andrius)\
**Post date:** [October 5, 2022, 5:51am UTC](https://community.mobotix.com/t/camera-api-current-time/5878/2 "2022-10-05T05:51:55Z")

</div>

do you need something like https://\<cam\_ip\>/api/json/status/camera/uptime/timestamp ?

---

<div class="post-metadata">

**Author:** ![josefdz](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.mobotix.com/josefdz/32/1732_2.png) [@josefdz](https://community.mobotix.com/u/josefdz)\
**Post date:** [October 5, 2022, 12:19pm UTC](https://community.mobotix.com/t/camera-api-current-time/5878/3 "2022-10-05T12:19:02Z")

</div>

@Andrius, do yo know why in some cameras I get this error?  
{  
“errors” :  
[  
{  
“code” : 2,  
“message” : “Error: json\_get(): No object or key is not in object.”,  
“module” : 3,  
“origin” : 1  
},  
{  
“code” : 2,  
“message” : “repository.json\_get(), request\_id=43380: core function returnd error.”,  
“module” : 4,  
“origin” : 1  
},  
{  
“code” : 1,  
“message” : “HTTPFrontend Error: json\_get() failed.”,  
“module” : 7,  
“origin” : 1  
}  
],  
“get” : false,  
“status” : 404  
}

Thank You!

---

<div class="post-metadata">

**Author:** ![Andrius](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@Andrius](https://community.mobotix.com/u/Andrius)\
**Post date:** [October 6, 2022, 6:54am UTC](https://community.mobotix.com/t/camera-api-current-time/5878/4 "2022-10-06T06:54:16Z")

</div>

It probably is related to FW version the camera is runing.

---

<div class="post-metadata">

**Author:** ![Mx-DirkG](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.mobotix.com/mx-dirkg/32/1343_2.png) [@Mx-DirkG](https://community.mobotix.com/u/Mx-DirkG)\
**Post date:** [October 6, 2022, 8:45am UTC](https://community.mobotix.com/t/camera-api-current-time/5878/5 "2022-10-06T08:45:28Z")

</div>

API/JSON does only exist on models x4 and newer.  
The more old fashioned but most compatible API would be  
http://_CamIP_/control/rcontrol?action=gettext&message=$(TMS)

_$(TMS)_ is a system wide Variable.  
Anything listed in Camera Online help @ http://_CamIP_/help/help?longvariable  
can be read this way.

Help for “rcontrol”  
http://_CamIP_/control/rcontrol?list

---

<div class="post-metadata">

**Author:** ![josefdz](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.mobotix.com/josefdz/32/1732_2.png) [@josefdz](https://community.mobotix.com/u/josefdz)\
**Post date:** [October 6, 2022, 11:18pm UTC](https://community.mobotix.com/t/camera-api-current-time/5878/6 "2022-10-06T23:18:27Z")

</div>

I tried both ways and it works.  
Thank You all for the help

👊.
