[SOLVED] Get data multi variable


#1

I have 4 variable, how to get last value at multi data with simple code? FYI I use python


#2

Greetings @yoelblack,

You cannot make a GET request to multiple variables, if you need values from different variables you should make a request per every one of them. Also, if you need the last value of the variable simply add a page_size=1 inside your endpoint, as shown below:

http://things.ubidots.com/api/v1.6/variables/PUT_HERE_YOUR_VAR_ID/values/?token=PUT_HERE_YOUR_TOKEN&page_size=1

Regards