Public
Edited
Apr 20, 2023
Insert cell
Insert cell
Insert cell
viewof checkURL = Inputs.url({label: "Carbon.txt URL to check"})
Insert cell
fetchOptions = {
return {
method: "POST",
headers: {
Accept: "application/json",
"Content-Type": "application/json",
},
body: JSON.stringify({ url: checkURL })
}
}
Insert cell
data = await fetch("https://api.thegreenwebfoundation.org/api/v3/carbontxt", fetchOptions).then(
(response) => response.json()
)
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