Template sensor from API

I am trying to create a template sensor using a response from an API. One of the keys is a datetime that is dynamic and I am not sure how to handle that in the template. This is the response that I get back, and the first datetime key is where the problem is, and I am trying to get “value”:“72.1”. Any help is appreciated.

{
   "data":{
      "SALI":{
         "2022-05-21 08:28:47":{
            "soiltempavg":{
               "location":"SALI",
               "datetime":"2022-05-21 08:28:47",
               "var":"soiltempavg",
               "value":"72.1",
               "unit":"F",
               "score":"-1",
               "nettype":"C",
               "paramtype":"avg",
               "obtime":"2022-05-21 07:59:00",
               "obtype":"O",
               "obnum":"27",
               "value_accum":"72.1",
               "name":"Average Surface Soil Temperature",
               "flag":"MV",
               "agg_num":"NA",
               "agg_max":"NA",
               "agg_min":"NA",
               "agg_avg":"NA",
               "agg_sum":"NA",
               "agg_accum":"NA",
               "agg_stat":"NA",
               "agg_int":"NA"
            }
         }
      }
   }
}