Re: Problem with retrieving data from beer DB

502 views
Skip to first unread message
Message has been deleted

Garrison Locke

unread,
Dec 15, 2013, 11:34:25 AM12/15/13
to brewer...@googlegroups.com
Hey Jake,

If you look at the docs for search (http://www.brewerydb.com/developers/docs-endpoint/search_index), you can see in the "example usage" section how to do a beer search.  You'd send a GET to "http://api.brewerydb.com/v2/search?q=Goosinator&type=beer.  Likewise, if you wanted to search breweries you'd do "/search?q=Lonerider&type=brewery.

Your "q" parameter is what you want to search for.  The "type" param is what type of thing you want to search for (either brewery, beer, guild, or event, or you can leave it empty to search across all the types).

So your URL should look like more like this: http://api.brewerydb.com/v2/search?key=[My Key]&type=brewery&q={the brewery you are searching for}

Hope that helps.

Cheers!

Garrison 

 
-- 
Garrison Locke

Co-Founder of PintLabs L.L.C.


On Sun, Dec 15, 2013 at 10:47 AM, Jake Welton <jwelt...@googlemail.com> wrote:
Hello,

I'm new to both google groups and the Brewery API so please excuse me if this is a basic question.

I've been playing around with trying to retrieve some data back from the API however I think i'm doing something wrong.

Heres the API call i'm making (i've blocked out my key for security reasons):

http://api.brewerydb.com/v2/search?key=[My Key]&q=/breweries

From what I can see when from documentation this should return a list of breweries however instead I get the following:

{"currentPage":1,"status":"success"}

Which is not much help to me.

Does anyone know what i might be doing wrong??

Thanks.

--
You received this message because you are subscribed to the Google Groups "Brewery DB API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brewerydb-ap...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Garrison Locke

Co-Founder of PintLabs L.L.C.
Message has been deleted

Garrison Locke

unread,
Dec 15, 2013, 12:04:27 PM12/15/13
to brewer...@googlegroups.com
Not at the moment, but that's something we have added to our list of possible features.

Garrison 


On Sun, Dec 15, 2013 at 12:01 PM, Anonymous <jwelt...@googlemail.com> wrote:
Thanks. Is it possible to search for something with a specific hop?
Message has been deleted

Shaun Farrell

unread,
Dec 15, 2013, 1:18:11 PM12/15/13
to brewer...@googlegroups.com
I would checkout the docs for the /beers resource - http://www.brewerydb.com/developers/docs-endpoint/beer_index

You can get all the beers but you have to be a premium member.  You can filter there by styleId.  If you don't have a premium account you will need to specify one of the following attributes "name, abv, ibu, srmId, availabilityId, styleId." on the /beer resource.

Checkout the docs its all there. 

Cheers,

-- 
Shaun Farrell
Co-Founder - PintLabs L.L.C.



On Sun, Dec 15, 2013 at 1:02 PM, Anonymous <jwelt...@googlemail.com> wrote:
Also (hopefully this will be my last question). How do I get a listing of all beers and is it possible to get a listing of beers within a specific category?
Message has been deleted

Shaun Farrell

unread,
Dec 15, 2013, 1:49:57 PM12/15/13
to brewer...@googlegroups.com, brewer...@googlegroups.com
/beers?key=yourkey&styleId=15


Sent from my iPhone

On Dec 15, 2013, at 1:41 PM, Anonymous <jwelt...@googlemail.com> wrote:

Okay i understand that but my problem is I cannot get the API call to work without using the q parameter.

Say for example I want all of the beers with style ID 15. Would i need to be a premium member for this?? if not, how would the api call look?
Message has been deleted
Message has been deleted
Message has been deleted

Shaun Farrell

unread,
Dec 15, 2013, 3:53:38 PM12/15/13
to brewer...@googlegroups.com
No worries... Glad you figured it out.  I recommend that you delete your API key and get a new one since you have posted it in the forum. You can do get a new key in the developer portal @  http://www.brewerydb.com/developers

Cheers


On Sun, Dec 15, 2013 at 1:59 PM, Anonymous <jwelt...@googlemail.com> wrote:
Nevermind, I forgot to remove the /search part.

Thanks for all of your help!! I really appreciate it.


On Sunday, December 15, 2013 6:58:21 PM UTC, Anonymous wrote:
Ahh okay I finally understand where the /beers comes into it. Thanks. I do still have a problem though. Heres the call im making:


and this is the result

{"errorMessage":"The endpoint you requested could not be found","status":"failure"}

Is there a problem?

Nate

unread,
Nov 2, 2018, 4:46:03 PM11/2/18
to Brewery DB API
Is something wrong with BreweryDB's /search endpoint? I have managed to get returns from the /beers endpoint, so I'm not sure if the problem is on my end or theirs.

capture.png

Garrison Locke

unread,
Nov 2, 2018, 5:15:05 PM11/2/18
to brewer...@googlegroups.com
Hey Nate,

We had a hiccup and were fixing an issue.  You should be good to go now.  Sorry about that!

Cheers,

Garrison


For more options, visit https://groups.google.com/d/optout.

robertbh...@gmail.com

unread,
Nov 5, 2018, 5:38:38 PM11/5/18
to Brewery DB API
Hi Garrison I am having this same problem. 
Exact same URL as Nate with my key in it. And it returns the same thing as Nate. 

robertbh...@gmail.com

unread,
Nov 5, 2018, 5:49:20 PM11/5/18
to Brewery DB API
Also just to show you searching by location does the same thing: where [mykey] is is my key without the [] but yeah. Having a similar issue. Not really sure what to do. 


Screen Shot 2018-11-05 at 2.42.40 PM.png



On Friday, November 2, 2018 at 2:15:05 PM UTC-7, Garrison Locke wrote:

Nickster65

unread,
Nov 5, 2018, 6:35:22 PM11/5/18
to Brewery DB API
I'm also having this issue currently with the search endpoint... Is something down?

Garrison Locke

unread,
Nov 5, 2018, 6:51:02 PM11/5/18
to brewer...@googlegroups.com
We’re looking into what’s going on. I’ll update when we get it resolved. Sorry about that!

Garrison Locke

unread,
Nov 6, 2018, 11:49:17 AM11/6/18
to brewer...@googlegroups.com
If your key is a sandbox key, there might not be any locations near your search point.  There are a limited number of breweries in the sandbox, so you’ll need to make sure you’re testing a location that has breweries.


Cheers,

Garrison

Nickster65 .

unread,
Nov 6, 2018, 12:47:28 PM11/6/18
to brewer...@googlegroups.com
Sorry i was actually using just the /search endpoint, not the search/geo/point endpoint. I ran my request again this morning and i am now getting data back.


Before i was getting nothing, now I'm getting about 10 results. Thanks for the speedy response (: Is there a different way I should reach you if I have problems in the future? or should i just keep replying to this thread?

Jason Austin

unread,
Nov 6, 2018, 1:36:21 PM11/6/18
to brewer...@googlegroups.com
Best way is to send an email to brew...@steadyserv.com. That goes into our support tools and ensures that someone follows up with you.

Cheers,
Jason
SteadyServ Jason Austin
Vice President of Product Engineering and Product Strategy
Office: 317.296.7474 x 720
828.234.2441
steadyserv.com

Burger Bach Increases Draft Efficiency
Powered by Sigstr
Reply all
Reply to author
Forward
0 new messages