-
Notifications
You must be signed in to change notification settings - Fork 1
API
Alex Justesen edited this page Feb 24, 2025
·
7 revisions
Working on coverage for the existing v1
API documented here https://www.openbrewerydb.org/documentation.
Returns information on the API including count of breweries in the database and the last time the dataset was updated.
Request type: get
https://obdb-api.alexjustesen.com/about
Request type: get
https://obdb-api.alexjustesen.com/v1/breweries/{id}
Request type: get
https://obdb-api.alexjustesen.com/v1/breweries
page
-
per_page
- default 50, max 500
- Fields:
id
,name
,city
,province
,country
,postal_code
,type
https://obdb-api.alexjustesen.com/v1/breweries?filter[province]=Connecticut&filter[city]=Hartford
Default sort order is asc
, to use desc append a -
to the field: example -name
.
- Default:
name
- Fields:
id
,name
,city
,province
,country
,postal_code
,type
https://obdb-api.alexjustesen.com/v1/breweries?sort=province&sort=city
Request type: get
https://obdb-api.alexjustesen.com/v1/breweries/random
- Query string parameter should be url encoded.
Request type: get
https://obdb-api.alexjustesen.com/v1/breweries/search?query=Broad%20Brook
/autocomplete
endpoint was removed as it is essentially a duplicate of /search
just with less fields.