diff --git a/toargridding/toar_rest_client.py b/toargridding/toar_rest_client.py
index 82b113a9a859d9bf64fcb38fe0d0776dccda4214..e4dad05596efb1c92a3c27ed598cdcd69bcfe02f 100644
--- a/toargridding/toar_rest_client.py
+++ b/toargridding/toar_rest_client.py
@@ -142,10 +142,12 @@ class AnalysisService:
         timeseries = self.get_clean_timeseries(timeseries, metadata)
         return AnalysisRequestResult(timeseries, coords, metadata)
 
-    def get_timeseries_and_metadata(self, metadata: Metadata):
+    def get_timeseries_and_metadata(
+        self, metadata: Metadata
+    ) -> tuple[pd.DataFrame, pd.DataFrame]:
         query_options = QueryOptions.from_metadata(metadata)
-        content = self.connection.get(query_options)
-        timeseries, timeseries_metadata = self.load_data(content, metadata)
+        result = self.connection.get(query_options)
+        timeseries, timeseries_metadata = self.load_data(result.content, metadata)
         return timeseries, timeseries_metadata
 
     def get_clean_coords(self, timeseries_metadata):