Newbie questions about thepub

100 views
Skip to first unread message

Jon Nall

unread,
Dec 3, 2012, 9:57:43 PM12/3/12
to untappd-api-d...@googlegroups.com
Hi all,
I just started playing with the API today and have some questions.

First an observation: in the docs for thepub, the descriptions of lat and lng seem to be backwards.

Now the quesiton: what do lat/lng actually search on? It appears to be brewery lat/lng and I was hoping to be able to filter to the lat/lng of particular checkins (ignoring where the actual brewery is located). Is this possible?

I'm ultimately just confused by the results of this query:
     thepub?lat=37.35917&lng=-121.92417&radius=20&limit=25

I see checkins that have seemingly no relation to San Jose CA (the lat/lng above).

Thanks for any clarifications.

nall.

Greg Avola

unread,
Dec 3, 2012, 10:32:58 PM12/3/12
to untappd-api-d...@googlegroups.com
This is actually an incorrect documentation. Try the following:

/v4/thepub/local?lat=XX&lng=XX&radius=20&limit=25 -I'll fix that one.

Thanks,

Greg Avola
CTO & Co-Founder
Untappd

Jon Nall

unread,
Dec 4, 2012, 12:28:04 AM12/4/12
to untappd-api-d...@googlegroups.com
Ah, that works much better. Thanks!

nall.

Jon Nall

unread,
Dec 4, 2012, 1:36:10 AM12/4/12
to untappd-api-d...@googlegroups.com
Greg,
Should I expect the offset parameter to work with /thepub/local?

I normally observe [response][checkins][items] to be a list of checkins in order of descending checkin_id values. Say I want 51 checkins. I can request the max of 50, and I assumed I'd take the last checkin_id, subtract one and then request again with this value as 'offset' and 'limit' of 1. Is that not how it's supposed to work?

Thanks,
nall.

Greg Avola

unread,
Dec 4, 2012, 7:03:14 AM12/4/12
to untappd-api-d...@googlegroups.com, untappd-api-d...@googlegroups.com
The offset doesn't work with /local - perhaps in the future!

Greg

Sent from my iPhone

Jon Nall

unread,
Dec 4, 2012, 7:42:32 PM12/4/12
to untappd-api-d...@googlegroups.com
OK, at least I'm not crazy :)

Say I want to find the last N checkins of a particular beer in some radius. Is that possible with the current API? I can't quite figure out how to do it.

Thanks,
nall. 

Greg Avola

unread,
Apr 27, 2013, 12:23:27 PM4/27/13
to untappd-api-d...@googlegroups.com
Jon,

Has this been answered? I know it's very old. :-)

Greg 

Sent from my iPhone

Matt

unread,
Jul 30, 2014, 10:20:22 AM7/30/14
to untappd-api-d...@googlegroups.com
I'm looking for an answer to this as well.  Anyway to pull any checkins for a beer in a certain lat/long radius? Thanks! 

Greg Avola

unread,
Jul 30, 2014, 10:42:15 AM7/30/14
to untappd-api-d...@googlegroups.com
No - we don't offer this at this time, only for The Pub for all beers.

Greg


--
You received this message because you are subscribed to the Google Groups "Untappd API Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to untappd-api-develop...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
--

Greg Avola
Co-Founder / CTO
Untappd

Reply all
Reply to author
Forward
0 new messages