I am trying to use OSM Boundaries to get all US state and territory's boundary polygons in a front end app. It returns a gz archive. I have used axios to get the blob but I can't seem to find a way to extract it. I tried using browserify-zlib.
const osmBoundURI = `https://osm-boundaries.com/Download/Submit?apiKey=${process.env.REACT_APP_OSM_BOUNDARIES_API_KEY}&osmIds=-148838&recursive&minAdminLevel=4&maxAdminLevel=4`;
const states = await axios.get(osmBoundURI, {
responseType: "blob",
timeout: 30000,
});