Why did my Dahua ANPR HTTP API stop working after a firmware update?
Answered by ANPR AI·Sourced
Short answer
In recent firmware updates (late 2023 onward), Dahua intentionally deprecated and removed the local unencrypted HTTP/CGI endpoints that developers traditionally used to extract license plate events. This breaks custom third-party integrations that rely on these legacy scripts.
Explanation
For years, systems integrators relied on simple CGI scripts and local HTTP GET requests to pull ANPR data directly from Dahua ITC series edge cameras. However, under the guise of bolstering cybersecurity and pushing enterprise users toward proprietary, subscription-based ITS (Intelligent Transportation System) frameworks and SDKs, Dahua systematically removed the functionality of these local API endpoints in recent firmware builds.
If your parking application or access control script suddenly fails to authenticate or retrieve data immediately following a routine camera firmware upgrade, the API has likely been patched out. Transitioning to Dahua's proprietary SDK is often not a viable workaround for many developers, as the SDK heavily favors Windows environments, effectively breaking deployments that rely on Linux-based servers or lightweight edge computing.
Things to check
- Check the build date of the camera firmware.
- Builds from August 2023 (e.g., 2023-08-19) and later are highly likely to have the CGI API removed.
- Verify if your third-party application is throwing 401 Unauthorized or 404 Not Found errors when attempting to reach the previously working CGI endpoint.
What to do
The most immediate and reliable solution to restore custom API functionality is to manually downgrade the camera firmware to a previously stable version (e.g., builds prior to mid-2023) that still supports the unencrypted HTTP/CGI API. If a downgrade is impossible due to hardware restrictions, developers must completely rewrite their integration utilizing the Dahua ITS API or SDK, which requires significant architectural changes and operating system dependencies.
ANPR Edge
Skip the dedicated ANPR camera. Read plates from the cameras you already have.
ANPR Edge is plate-recognition software that runs on a PC at your site and works with ordinary IP cameras, so plate reads no longer depend on one vendor's camera, NVR or firmware.
- Works with standard IP cameras over RTSP
- One license per location covers every camera
- Runs on a Windows PC or Mac you own