You may want to get the raw event data out of SAFR so you can open it in Excel or put it in a SQL database to do reporting. There are several ways to do this such as:


  1. Use SAFR Actions to log every event to a CSV file.
  2. Use python scripts and pandas to convert JSON event data (obtained through REST API calls) to XLS or CSV format.
  3. Use the REST API to download the JSON event data and then convert the data to CSV format with online tools. (This process is described in detail below.)


This page will walk you through option #3.


  1. Go to the SAFR Download Portal.
  2. Go to the  "Developers" tab.
  3. Scroll to "SAFR Web API Reference" and click on "Events Service (CVEV) API".
  4. Click "Authorize" and enter your user and password in this format: <username>:<password>
    • Note: Type carefully. If the credentials are typed incorrectly you'll get a 401 error when submitting API calls.
  5. Click the "Authorize" button and then close.
  6. Expand the "Get /events" API.
  7. Click the "Try it out" button.
  8. Enter sinceTime (and if needed untilTime) as the start and end times you want events from.
    • You need to enter time in epoch as milliseconds (not seconds). You can use the Chrome tool utime or the EpochConverter online tool to do this.
  9. Click "Execute".
  10. The events will be listed in the response body. Click "Download" to get the JSON file.
  11. Use an online tool (e.g. this one) to convert the JSON data to CSV.