Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

Get NX events to third party application ?

Answered

Comments

1 comment

  • Ichiro
    • Network Optix team

    Hi 

    You are on the right track. 
    The API endpoint you identified is indeed the standard way to retrieve detailed metadata for specific objects.

    That said, depending on your goal—such as building a real-time dashboard versus generating historical reports—there are several ways to extract data from Nx Meta / Nx Witness.

     

    1. Query-Based Approach (Nx REST Media Server API)

    As you mentioned, the REST API is the most straightforward option for historical analysis or on-demand data retrieval.

    • Endpoint: GET /rest/v4/events/log
    • Use case: Polling or retrieving events from the Mediaserver within a specific time range
    • Workflow:
      1. Query /rest/v4/events/log with filters such as time range, camera, or attributes.
      2. Use the returned results to build your own application logic or dashboard.

    This approach is well suited for reports, analytics, or dashboards that may not require real-time updates.

     

    2. Event-Push Approach (Semi-Real-Time via Rules Engine)

    If your goal is to send data to an external system immediately when an event occurs—without continuous API polling—you can use the built-in Rules Engine.

    • Workflow:

      Create a rule: When: an event occurs → Do: send an HTTP(S) request.

    • Available placeholders (examples):

      • {event.type} – Event type
      • {event.cameraId} – Unique camera ID
      • {event.timestamp} – Event timestamp
      • {event.caption} – Event caption
      • {event.description} – Can be used to embed custom or additional metadata

      This approach is simple to set up and allows near real-time data delivery. Your external system only needs a web endpoint (webhook) to receive the POST requests, with any additional business logic handled outside Nx.

     

    Hope this helps.

     

    0

Please sign in to leave a comment.