issue dowloading files trough HTTP API
issue dowloading files trough HTTP API
Hello,
We are used to download VIIRS data through the HTTP API and requests like https://ladsweb.modaps.eosdis.nasa.gov/api/v2/content/details?products=VJ103MOD®ions=[BBOX]W-65+N27+E-33.5+S0&temporalRanges=2025-04-29+00%3A00%3A00..2025-04-29+23%3A59%3A59&format=json&illuminations=D
But the result makes it impossible to get the files as the JSON we get is :
{
"content": [ ],
"downloadsLink": "https://ladsweb.modaps.eosdis.nasa.gov/api/v2/content/archives/%3Fproducts=VJ103MOD&temporalRanges=2025-04-29+00:00:00..2025-04-29+23:59:59&illuminations=D®ions=%5BBBOX%5DW-65+N27+E-33.5+S0&page=1",
"mtime": 1746016033,
"n_pages": 1,
"name": "",
"page": 1,
"resourceType": "Directory",
"self": "https://ladsweb.modaps.eosdis.nasa.gov/api/v2/content/details/?products=VJ103MOD&temporalRanges=2025-04-29+00%3A00%3A00..2025-04-29+23%3A59%3A59&illuminations=D®ions=%5BBBOX%5DW-65+N27+E-33.5+S0&page=1",
"size": 0
}
Is the something wrong on your side?
Thanks for your help.
We are used to download VIIRS data through the HTTP API and requests like https://ladsweb.modaps.eosdis.nasa.gov/api/v2/content/details?products=VJ103MOD®ions=[BBOX]W-65+N27+E-33.5+S0&temporalRanges=2025-04-29+00%3A00%3A00..2025-04-29+23%3A59%3A59&format=json&illuminations=D
But the result makes it impossible to get the files as the JSON we get is :
{
"content": [ ],
"downloadsLink": "https://ladsweb.modaps.eosdis.nasa.gov/api/v2/content/archives/%3Fproducts=VJ103MOD&temporalRanges=2025-04-29+00:00:00..2025-04-29+23:59:59&illuminations=D®ions=%5BBBOX%5DW-65+N27+E-33.5+S0&page=1",
"mtime": 1746016033,
"n_pages": 1,
"name": "",
"page": 1,
"resourceType": "Directory",
"self": "https://ladsweb.modaps.eosdis.nasa.gov/api/v2/content/details/?products=VJ103MOD&temporalRanges=2025-04-29+00%3A00%3A00..2025-04-29+23%3A59%3A59&illuminations=D®ions=%5BBBOX%5DW-65+N27+E-33.5+S0&page=1",
"size": 0
}
Is the something wrong on your side?
Thanks for your help.
Filters:
-
- Posts: 385
- Joined: Mon Sep 30, 2019 8:33 am America/New_York
- Has thanked: 3 times
Re: issue dowloading files trough HTTP API
Seems like you are missing version information in the request. So, try adding collection version information (like &archiveSets=5201) to the request.
https://ladsweb.modaps.eosdis.nasa.gov/api/v2/content/details?products=VJ103MOD&archiveSets=5201®ions=[BBOX]W-65+N27+E-33.5+S0&temporalRanges=2025-04-29+00%3A00%3A00..2025-04-29+23%3A59%3A59&format=json&illuminations=D
https://ladsweb.modaps.eosdis.nasa.gov/api/v2/content/details?products=VJ103MOD&archiveSets=5201®ions=[BBOX]W-65+N27+E-33.5+S0&temporalRanges=2025-04-29+00%3A00%3A00..2025-04-29+23%3A59%3A59&format=json&illuminations=D
Regards,
LAADS User Services
To receive news from LAADS DAAC direct to your inbox, email laadsdaac-join@lists.nasa.gov with “subscribe” in the subject line.
LAADS User Services
To receive news from LAADS DAAC direct to your inbox, email laadsdaac-join@lists.nasa.gov with “subscribe” in the subject line.
Re: issue dowloading files trough HTTP API
Thanks, it works with this extra parameter.
It seems that the API has changed recently. Are such information announced, for example in emails to a users list or in a newsletter?
Thanks again.
It seems that the API has changed recently. Are such information announced, for example in emails to a users list or in a newsletter?
Thanks again.
-
- User Services
- Posts: 38
- Joined: Fri Dec 13, 2024 2:40 pm America/New_York
- Has thanked: 6 times
Re: issue dowloading files trough HTTP API
Recently no change was made the to the API but if there is any change, it is announced on our website at:
https://ladsweb.modaps.eosdis.nasa.gov/alerts-and-issues/
https://ladsweb.modaps.eosdis.nasa.gov/alerts-and-issues/
Regards,
LAADS User Services
To receive news from LAADS DAAC direct to your inbox, email laadsdaac-join@lists.nasa.gov with “subscribe” in the subject line.
LAADS User Services
To receive news from LAADS DAAC direct to your inbox, email laadsdaac-join@lists.nasa.gov with “subscribe” in the subject line.
Re: issue dowloading files trough HTTP API
Thanks for your help.
Since you write no change was made, I wonder why my initial requests do not work anymore since 04/23/25. In any case, your suggestion works perfectly and this is the most important.
Thanks again.
Since you write no change was made, I wonder why my initial requests do not work anymore since 04/23/25. In any case, your suggestion works perfectly and this is the most important.
Thanks again.