Public
Edited
Apr 13
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
registration_response = {
if (!registration) return { error: "Please enter a valid registration code" };
return fetch(`https://hexdb.io/reg-hex?reg=${registration}`)
.then(response => {
if (!response.ok) throw new Error(`HTTP error! Status: ${response.status}`);
return response.text();
})
.catch(error => {
return { error: error.message };
});
}
Insert cell
hex_response = {
if (!hex) return { error: "Please enter a valid hex code" };
return fetch(`https://hexdb.io/api/v1/aircraft/${hex}`)
.then(response => {
if (!response.ok) throw new Error(`HTTP error! Status: ${response.status}`);
return response.json();
})
.catch(error => {
return { error: error.message };
});
}
Insert cell
image_response = {
if (!hex) return { error: "Please enter a valid hex code" };
return fetch(`https://hexdb.io/hex-image?hex=${hex}`)
.then(response => {
if (!response.ok) throw new Error(`HTTP error! Status: ${response.status}`);
return response.text();
})
.catch(error => {
return { error: error.message };
});
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more