Open Brewery DB API

⭐ Beginner's Pick Food & Drink / No Auth Required Beginner HTTPS CORS
Free to Use Varies (check documentation)

Overview

Open Brewery DB is a free, open-source API that provides data on breweries, cideries, and bottle shops across multiple countries. No authentication is required, making it one of the easiest APIs to start with. You can search by city, state, type, or name and get back address, coordinates, and website details.

💡

Beginner Tip

Use the by_city or by_state query parameters to narrow results — calling the list endpoint without filters returns thousands of records and will slow down your app.

Available Data

Open Brewery DB data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Open Brewery DB",
    "description": "Breweries, Cideries and Craft Beer Bottle Shops",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

id Unique UUID identifying the brewery record.
name Official name of the brewery, cidery, or bottle shop.
brewery_type Classification such as "micro", "nano", "regional", "brewpub", "large", or "closed".
city City where the brewery is located.
state State or province of the brewery.
latitude GPS latitude as a string; may be null if coordinates are unavailable.
website_url Official website URL of the brewery; may be null.

Implementation Example

const url = "https://www.openbrewerydb.org/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Too many results or slow response The breweries list endpoint can return up to 200 results per page by default.
Add per_page=10 to limit results and use the page parameter to paginate: ?per_page=10&page=2.
latitude and longitude fields are null Not all brewery records have GPS coordinates in the database.
Always null-check latitude and longitude before passing them to a map library. Use the address fields as a fallback for geocoding.
404 on brewery lookup by ID Brewery IDs are UUIDs (not sequential integers) and may change when records are merged or corrected.
Store the full UUID returned by the API rather than an index number, and re-fetch if a 404 occurs.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 20/20
🔒 Security 15/15
🛠 Developer XP 20/20
✓ Reliability 7/15
Response Time 70ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Food & Drink
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →