Ubidots Community

[SOLVED] Retrieve temporal data between $T_Start and $T_end

Is there an endpoint for retrieving data between two timestamps?

For e.g.
GET api/v1.6/variables/{variable_id/values/{tstart}/{tend}
I tried this - but it doesn’t work.

Statistics is available for time range, so why is just plain data not available as an endpoint?

This question was responded through our support channel. Copying the answer here for future reference:

Hi Jai,

Here’s the right command:


It turns out our GET values endpoint accepts “start” and “end” as url parameters. On the other hand, a newer endpoint used to compute statistics, accepts “start” and “end” as URL “folder”, as you were trying.



1 Like