API Directory › 🍔 Food & Drink › Open Brewery DB
No authHTTPSCORS

Open Brewery DB API

Free, no-key API of breweries with locations and details worldwide.

Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open Open Brewery DB docs ↗

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

https://api.openbrewerydb.org/v1

Authentication

None. Endpoints: /breweries (list + filters), /breweries/{id}, /breweries/search?query=, /breweries/random, /breweries/meta (counts).

Code examples

curl
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"
Python
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_typemicro, brewpub, large, closed…
street / city / state_province / postal_code / countryLocation
longitude / latitudeCoordinates (may be null for some entries)
phone / website_urlContact info

Common errors

404Unknown brewery id.
(empty array)No breweries match the filters — check the by_* value spelling (use underscores for spaces).
400Invalid 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.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Food & Drink APIs

← Back

More Food & Drink APIs · All 196 APIs