API Documentation - MAP API
Only use &ts=UNIX_TIMESTAMP parameter to view archived data.
Get data for monitoirng map.
curl -i --header "device_token:MY-DEVICE-TOKEN" -X GET
https://volcanoes.usgs.gov/vsc/api/instrumentApi/data?lat1=46.1749&lat2=46.2250&long1=-122.2161&long2=-122.14386
OR
curl -i -X GET https://volcanoes.usgs.gov/vsc/api/instrumentApi/data?lat1=46.1749&lat2=46.2250&long1=-122.2161&long2=-122.14386
View Archived:
curl -i --header "device_token:MY-DEVICE-TOKEN" -X GET
https://volcanoes.usgs.gov/vsc/api/instrumentApi/data?lat1=46.1749&lat2=46.2250&long1=-122.2161&long2=-122.14386&ts=1747283517
OR
curl -i -X GET https://volcanoes.usgs.gov/vsc/api/instrumentApi/data?lat1=46.1749&lat2=46.2250&long1=-122.2161&long2=-122.14386&ts=1747283517
Returns JSON object used to make monitoring map.
Get data in GEO JSON Format Within Predefined Area
curl -i --header "device_token:MY-DEVICE-TOKEN" -X GET
https://volcanoes.usgs.gov/vsc/api/instrumentApi/geojson?lat1=46.1749&lat2=46.2250&long1=-122.2161&long2=-122.14386
OR
curl -i -X GET https://volcanoes.usgs.gov/vsc/api/instrumentApi/geojson/geojson?lat1=46.1749&lat2=46.2250&long1=-122.2161&long2=-122.14386
View Archived:
curl -i --header "device_token:MY-DEVICE-TOKEN" -X GET
https://volcanoes.usgs.gov/vsc/api/instrumentApi/geojson?lat1=46.1749&lat2=46.2250&long1=-122.2161&long2=-122.14386&ts=1747283517
OR
curl -i -X GET https://volcanoes.usgs.gov/vsc/api/instrumentApi/geojson?lat1=46.1749&lat2=46.2250&long1=-122.2161&long2=-122.14386&ts=1747283517
Get data in GEO JSON Format Within Polygon
curl -i --header "device_token:MY-DEVICE-TOKEN" -X POST
-d '{"coordinates":[[-121.76, 46.853],[-121.49, 46.206],[-122.18, 46.2]]}'
https://volcanoes.usgs.gov/vsc/api/instrumentApi/polygon
OR
curl -i -X POST -d '{"coordinates":[[-121.76, 46.853],[-121.49, 46.206],[-122.18, 46.2]]}'
https://volcanoes.usgs.gov/vsc/api/instrumentApi/polygon
View Archived:
curl -i --header "device_token:MY-DEVICE-TOKEN" -X POST
-d '{"coordinates":[[-121.76, 46.853],[-121.49, 46.206],[-122.18, 46.2]], "ts":1747283517}'
https://volcanoes.usgs.gov/vsc/api/instrumentApi/polygon
OR
curl -i -X POST -d '{"coordinates":[[-121.76, 46.853],[-121.49, 46.206],[-122.18, 46.2]], "ts":1747283517}'
https://volcanoes.usgs.gov/vsc/api/instrumentApi/polygon
Get data in GEO JSON Format By Volcano VNUM
curl -i --header "device_token:MY-DEVICE-TOKEN" -X GET
https://volcanoes.usgs.gov/vsc/api/instrumentApi/geojson?vnum=311060
OR
curl -i -X GET https://volcanoes.usgs.gov/vsc/api/instrumentApi/geojson/geojson?vnum=311060
View Archived:
curl -i --header "device_token:MY-DEVICE-TOKEN" -X GET
https://volcanoes.usgs.gov/vsc/api/instrumentApi/geojson?vnum=311060&ts=1747283517
OR
curl -i -X GET https://volcanoes.usgs.gov/vsc/api/instrumentApi/geojson?vnum=311060&ts=1747283517
Get data in GEO JSON Format By Volcano Group (Usually Volcano Observatory)
curl -i --header "device_token:MY-DEVICE-TOKEN" -X GET
https://volcanoes.usgs.gov/vsc/api/instrumentApi/geojson?vgroup=AVO
OR
curl -i -X GET https://volcanoes.usgs.gov/vsc/api/instrumentApi/geojson/geojson?vgroup=AVO
View Archived:
curl -i --header "device_token:MY-DEVICE-TOKEN" -X GET
https://volcanoes.usgs.gov/vsc/api/instrumentApi/geojson?vgroup=AVO&ts=1747283517
OR
curl -i -X GET https://volcanoes.usgs.gov/vsc/api/instrumentApi/geojson?vgroup=AVO&ts=1747283517
Notes:
TIMESTAMP values are optional. TIMESTAMP is seconds since January 1, 1970 UTC. Currently 1747283517
If not provided,
current data is returned. Add &ts=UNIX_TIMESTAMP as a parameter to view archived data.