Get Grafana metric data via API

Hi Team,
I am using this API to get metric data
but in this query we have limited timestamp because we have specified start and end time but we need to get real time data. I have also tried using now function but it is not working.
Also not able to get cloudwatch metrics from grafana
Could anyone help me on this?