How to get all label values in a given timerange in grafana variables

I need to get all label values as part of query_result in grafana dashboard variables. I can see that query_result is calling api/v1/query with specific timestamp(usually 11:59) when I selected full day as dashboard range.
Is there a way to get all label values that were create during the whole day ?