[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:

http://things.ubidots.com/api/v1.6/variables/5582e589762542477ffac644/values?token=XXXXXXXXXXXXXX&start=1434755858569&end=1437760339623

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.

Best,

David
@Ubidots

1 Like