Dahua HTTP API

is there some simple example with curl that would work with every dahua IP cam? Thx. A general queury for example?
Just updatesd my post with an example, hope this helps! But this is of course only applicable for a ptz. I'm on my mobile now so hard to give another example.
 
but postman is just to test, my goal is to use cheap ESP32 alarm that can enable disable the recording and/or motion when switched on.

Will check if ESP32 can do this kind of authentication, it looks much more difficult than the basic one.
 
What is your device model & firmare version?
If it new you must enable auth & cgi
 
You have old ipc & must work old HTTP API.
Try to find the same or similar & check.
Happy Holydays!
 
  • Like
Reactions: genelit
I wanted to fetch the traffic flow data from dahua Camera API through python but got 401 error and I tried with Postman also. But the same error
 
The API i have it, but can't share to the end users based on dahua policy, i can share to some members here who help a lot to the IPCT.