How do I get Hikvision ANPR plate data via the HTTP API?

Answered by ANPR AI·Sourced

Short answer

Use the event interface documented for your exact model and firmware. Hikvision's 7-series ANPR integration guide describes two routes: a persistent GET event stream from the camera, and camera-initiated delivery to a listening server you run. It is a historical guide and does not settle support in every newer firmware build, so confirm the route in the ISAPI documentation for your camera.

Explanation

In event-stream mode your software holds open a GET request to /ISAPI/Event/notification/alertStream and the camera sends each plate event down that connection as it happens. In listening mode the camera connects to your HTTP server and posts each event, typically as a multipart message containing the plate XML and images. Streaming events is different from polling historical records, which uses a separate search request.

The reviewed documentation does not establish a general Hikvision deprecation of GET, and it does not guarantee that every endpoint works on every newer firmware either. In listening mode, acknowledge each event promptly with an HTTP 200 response; otherwise the camera may treat the delivery as failed and send it again.

Things to check

  • Check the camera model and firmware.
  • Check the API capabilities the camera reports.
  • Check the authentication method.
  • Check the event type you need.
  • Check connectivity from the camera to your listening server.

What to do

Test a documented event route with a fresh plate read. Choose streaming or push delivery according to what the model supports: open the GET event stream with digest authentication and parse each event, or set the camera's listening server to your server's address and port and parse the multipart XML and images it posts. Handle reconnection as the documentation describes.

Source

Hikvision: ANPR Camera Integration Solution for 7 series (sections 4.1.2 and 4.2); Hikvision: product-specific ISAPI documentation finder

Scope and version

Historical 7-series guide, checked through indexed manufacturer text because direct retrieval failed. Verify newer firmware separately.

Was this answer helpful?

Your vote decides which questions we answer next.

Comments

Add a comment

Share what worked for you, or ask about a detail in this answer.

Comments are reviewed before they appear.

Cloud API

Test plate and vehicle recognition on your own images.

Send a photo or camera frame to our API and get the plate, country, make and model back as JSON. Start free, or run the same models on your own servers.

  • 100 free credits every month, no card
  • Plates for Saudi Arabia, Qatar, Kuwait, Bahrain and Oman
  • Cloud API or on-premise deployment

Related questions

Browse all ANPR questions