Open Brewery DB
GET https://api.openbrewerydb.org/breweries?by_state=california
Displays the n
cities with the largest number of bars (breweries) as a bar chart. n
is specified by the user, and counted from the JSON response.
Sample JSON response
[
{
"id": 281,
"name": "7 Sisters Brewing Co",
"brewery_type": "brewpub",
"street": "181 Tank Farm Rd Ste 110",
"city": "San Luis Obispo",
"state": "California",
"postal_code": "93401-7082",
"country": "United States",
"longitude": "-120.670637530612",
"latitude": "35.2467277959184",
"phone": "8058687133",
"website_url": "http://www.7sistersbrewing.com",
"updated_at": "2018-08-23T23:23:55.334Z",
"tag_list": []
},
{
"id": 286,
"name": "Abnormal Beer Company",
"brewery_type": "micro",
"street": "16990 Via Tazon Ste 123",
"city": "San Diego",
"state": "California",
"postal_code": "92127-1649",
"country": "United States",
"longitude": "-117.08575",
"latitude": "33.02391",
"phone": "8586182463",
"website_url": "http://abnormalbeer.co",
"updated_at": "2018-08-23T23:24:00.025Z",
"tag_list": []
},
...
]
Sample Bar Chart
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
by_state | string |