API Sensors History

I’m using the /sensors/id/history API call and I’ve noticed sometimes there are missing records. I’m not sure if this is a Purple AIr unit issue or a QAQC issue. Calling the “real time” API seems like overkill to be able to get the confidence indicator. For example platform id: 35359 I pull data from every 30 minutes. There are records missing, however there is no indication as to why that is. My guess is you’re doing some sort of QAQC and not storing them in database. It would really be useful to have some sort of indication on those records.

I can’t say for sure whether it’s QAQC or the unit, but one thing that helps narrow it down is re-requesting just the gap window with the smallest average the history endpoint allows (e.g. 10 minutes) and comparing timestamps. If the 10-minute rows are also missing, the sensor most likely wasn’t reporting then (WiFi drop or power), rather than anything being filtered out at 30 minutes. It’s also worth confirming that your start/end timestamps and time zone handling line up, since an off-by-one boundary can look like a missing row. Staff may be able to confirm whether flagged data is excluded from history.

Thanks, I’ll give a retry a go. I’m pulling the “real time”/no average data.
I wish staff would chime in for sure. Really need to add QC flags into the API results if they are available.