Published
Edited
Sep 22, 2020
1 star
Insert cell
md`
# Open Brewery API call

The first thing I'm going to do is fetch from the api
`
Insert cell
import {table} from "@tmcw/tables@513"
Insert cell
artistQuery = (await fetch("https://api.openbrewerydb.org/breweries/autocomplete?query=dog")).json()

Insert cell
table(
artistQuery.slice(0, 7).map(
({id, name}) => ({
Name: md`**${name}**`,
Id: md`**${id}**`,
})
)
)
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