How to fetch Influxdb data using Api

Hi,

I am trying to fetch CPU data using below Influxdb query but getting result 0 as given below.
Also how can we pass timefilter to the query.

curl -GET ‘http://localhost:8086/query?db=telegraf&u=admin&p=admin1234’ --data-urlencode ‘q=SELECT mean(“usage_idle”) * -1+ 100 FROM “cpu” WHERE (“host” =’*******') ’

Result----- {“results”:[{“statement_id”:0}]}

Any help is appreciated.