NPAW icon

NPAW

Consume NPAW/Youbora API

Actions4

  • Data Actions
  • Events Actions
  • Raw Data Actions
  • Alerts Actions

Events → Get

AI-generated

Summary

Fetch events from the NPAW rawdata/events endpoint.

Inputs

  • fromDate — Starting date for data retrieval (inclusive). Accepts YYYY-MM-DD HH:mm:ss format. Default: last6hours. Passed to API if provided; defaults to 'last6hours' in UI but runtime passes truthy values as-is.
  • toDate — Final date limit. Accepts YYYY-MM-DD HH:mm:ss. Set to 'none' to omit. Default: none in UI; source explicitly skips if value is 'none'.
  • filter — Filter data by dimensions and metrics using JSON format. Supports logical operators. Default: empty string; passed to API if non-empty.
  • limit — Maximum number of results to return. Max 500 for events/alerts. Default: 100. Passed to API if set.

Output shape

JSON array of event records retrieved from the NPAW rawdata/events endpoint.

Returned data is wrapped via helpers.returnJsonArray and reflects the API's response shape for the /{accountCode}/rawdata/events endpoint.

Examples

Example 1: Retrieve events from the last 24 hours with a country filter.

fromDate: '2024-01-01 00:00:00', toDate: '2024-01-02 00:00:00', filter: '[{name:Country,rules:{country:[Spain]}]', limit: 200

Links

Discussion