Open Brewery DB

FREE
By brianiswu
Updated 5 months ago
Data
7.5/10
Popularity Score
577ms
Latency
100%
Success Rate

Open Brewery DB API Documentation

Looking for a Beer API? Open Brewery DB is a free API for public information on breweries, cideries, brewpubs, and bottleshops. Currently it is focused to the United States, but future plans are to import world-wide data.

View API Details
GETBreweries
GETGet a brewery
GETAutocomplete
GETSearch
GETBreweries

List of Breweries

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
by_stateSTRING
OPTIONALSearch by State
by_nameSTRING
OPTIONALSearch by Name
by_tagSTRING
OPTIONALMust be one of: dog-friendly, patio, food-service, food-truck, tours
by_typeSTRING
OPTIONALMust be one of: micro, regional, brewpub, large, planning, bar, contract, proprietor
sortSTRING
OPTIONAL+ for acending order (default order); - for decending order comma-separated. Example: sort=-name,+type,city
Code Snippet
unirest.get("https://brianiswu-open-brewery-db-v1.p.rapidapi.com/breweries?by_state=NY&by_name=cooper&by_tag=patio&by_type=micro")
.header("X-RapidAPI-Host", "brianiswu-open-brewery-db-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://brianiswu-open-brewery-db-v1.p.rapidapi.com/breweries
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://brianiswu-open-brewery-db-v1.p.rapidapi.com/breweries?by_state=NY&by_name=cooper&by_tag=patio&by_type=micro")
.header("X-RapidAPI-Host", "brianiswu-open-brewery-db-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication