Public
Edited
Jul 15, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
randomTitles = {
getRandomArticles;

let wikipediaRandomQueryResponse = JSON.parse(
await fetch(corsURL).then((response) => response.text())
);
return wikipediaRandomQueryResponse.query.random.map((d) => d.title);
}
Insert cell
corsURL = "https://corsproxy.io/?" +
encodeURIComponent(
`https://en.wikipedia.org/w/api.php?action=query&list=random&format=json&rnnamespace=0&rnlimit=${titlesToGet}`
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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