Unable to run API call to Giovanni
Posted: Tue Feb 10, 2026 7:35 pm America/New_York
Hi. Following the tutorial found here
https://disc.gsfc.nasa.gov/information/howto?title=How%20to%20Access%20the%20%22Giovanni%20in%20the%20Cloud:%20Time%20Series%22%20Service%20Using%20Python
I was trying to run a script to get time-series of GLDAS_NOAH025_3H_2_1_Tair_f_inst over Brazil region but the Giovanni API was returning empty.
here's part of the script that was used
```
auth = earthaccess.login()
token = earthaccess.get_edl_token()['access_token']
time_series_url = "https://api.giovanni.earthdata.nasa.gov/timeseries"
query_parameters = {
"data":data,
"location":"[{},{}]".format(round(lat, 4), round(lon, 4)),
"time":"{}/{}".format(time_start,time_end)
}
headers = {
'Authorization': f'Bearer {token}'
}
response=requests.get(time_series_url, params=query_parameters, headers=headers)
```
according to the script in the tutorial it's because of "The returned CSV is empty.
Please ensure that your subsetting bounds are within the extent of your dataset
or that your .netrc file is stored and contains valid credentials."
However, when I revert the configuration to use the same parameter as the one in tutorial, I still get the same error.
Is there anything I could do to fix this?
(for the context, I was planning to basically do an area-average time-series from Python script)
Thank you
https://disc.gsfc.nasa.gov/information/howto?title=How%20to%20Access%20the%20%22Giovanni%20in%20the%20Cloud:%20Time%20Series%22%20Service%20Using%20Python
I was trying to run a script to get time-series of GLDAS_NOAH025_3H_2_1_Tair_f_inst over Brazil region but the Giovanni API was returning empty.
here's part of the script that was used
```
auth = earthaccess.login()
token = earthaccess.get_edl_token()['access_token']
time_series_url = "https://api.giovanni.earthdata.nasa.gov/timeseries"
query_parameters = {
"data":data,
"location":"[{},{}]".format(round(lat, 4), round(lon, 4)),
"time":"{}/{}".format(time_start,time_end)
}
headers = {
'Authorization': f'Bearer {token}'
}
response=requests.get(time_series_url, params=query_parameters, headers=headers)
```
according to the script in the tutorial it's because of "The returned CSV is empty.
Please ensure that your subsetting bounds are within the extent of your dataset
or that your .netrc file is stored and contains valid credentials."
However, when I revert the configuration to use the same parameter as the one in tutorial, I still get the same error.
Is there anything I could do to fix this?
(for the context, I was planning to basically do an area-average time-series from Python script)
Thank you