Scraping the Open Brewery DB API
There seems to be an API for everything these days, and a beer API is no exception. The Open Brewery DB API is a totally free and anonymous (no authentication required) API that anyone can use to search for Breweries in any location.
BreweryDB can be a great source for finding leads if you’re looking for businesses that are breweries. You simply provide the city / state and the API will return brewery data, complete with contact information like phone number and website. You can see an example of the output below:
{
"id": "echo-brewing-cask-and-barrel-erie",
"name": "Echo Brewing Cask and Barrel",
"brewery_type": "brewpub",
"street": "600 Briggs St",
"address_2": null,
"address_3": null,
"city": "Erie",
"state": "Colorado",
"county_province": null,
"postal_code": "80516-0794",
"country": "United States",
"longitude": "-105.0477679",
"latitude": "40.05042825",
"phone": "7203612332",
"website_url": null,
"updated_at": "2022-08-20T02:56:08.975Z",
"created_at": "2022-08-20T02:56:08.975Z"
}
While you’re welcome to query the API on your own, you may find it difficult to work with this JSON data. This is where our service comes in, which will query the API on your behalf and allow you to download the above data as CSV files you can open in Excel and use with a variety of programs. You can run a single search for a location you want to scrape breweries for, or check out the workflow which will automate all of this and allow you to search by multiple cities.
Note: The video on this page was originally made for another API that is no longer available, but the concepts remain the same and you can use it as a guide for scraping breweries from this API.