Open Brewery DB API
Free, no-key API of breweries with locations and details worldwide.
What it does
Open Brewery DB is a free, open dataset of breweries, cideries, brewpubs and bottle shops — mostly US, with growing international coverage — including name, type, address, coordinates, phone and website. Search, filter, paginate or grab a random one.
Base URL
Authentication
None. Endpoints: /breweries (list + filters), /breweries/{id}, /breweries/search?query=, /breweries/random, /breweries/meta (counts).
Code examples
curl -s "https://api.openbrewerydb.org/v1/breweries?by_city=san_diego&per_page=3" curl -s "https://api.openbrewerydb.org/v1/breweries/search?query=dogfish" curl -s "https://api.openbrewerydb.org/v1/breweries/random"
import requests
r = requests.get("https://api.openbrewerydb.org/v1/breweries", params={
"by_state": "colorado", "by_type": "micro", "per_page": 5}, timeout=10)
for b in r.json():
print(b["name"], "-", b["city"], b.get("website_url"))Rate limits & quotas
Free and open with generous but unspecified limits — be polite: cache, and use pagination (page, per_page up to 200) rather than hammering. /breweries/meta returns the total count so you can size your paging.
Key response fields
| id / name / brewery_type | micro, brewpub, large, closed… |
| street / city / state_province / postal_code / country | Location |
| longitude / latitude | Coordinates (may be null for some entries) |
| phone / website_url | Contact info |
Common errors
| 404 | Unknown brewery id. |
| (empty array) | No breweries match the filters — check the by_* value spelling (use underscores for spaces). |
| 400 | Invalid sort or by_dist parameter format. |
When to use it (and alternatives)
Good for ‘breweries near me’ maps, beer-trip planners and directory features. For the beers themselves (ABV, style, ingredients, brewing method) see PunkAPI; for cocktails, TheCocktailDB.
FAQ
How do I search near a coordinate?
Use by_dist=lat,lng on /breweries, which sorts results by distance from that point. Combine with per_page to get the nearest N.
Why are some coordinates missing?
The data is crowd-sourced and geocoding is incomplete for some entries. Fall back to the postal address, or geocode it yourself with a geocoding API.
Can I contribute or correct data?
Yes — the dataset is open source on GitHub and accepts pull requests and issue reports for additions and fixes.
New to APIs?
Short guides for working with this API — and any other.