Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Offset limit on v2/user/likes
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Martin Spier  
View profile  
 More options Mar 29 2012, 4:05 pm
From: Martin Spier <spier...@gmail.com>
Date: Thu, 29 Mar 2012 13:05:31 -0700 (PDT)
Local: Thurs, Mar 29 2012 4:05 pm
Subject: Offset limit on v2/user/likes

I'm trying to implement a client that fetches all liked posts from a
specific user. Logic I'm using a loop that requests x posts from
 /v2/user/likes, increases the offset by x and makes another request, until
there are no more posts (empty response). POST body is "offset=y&limit=x",
y being increased by x every iteration and x being a fixed number of posts
to fetch each request, 20 for example.

This worked fine for users with less than 1000 likes. For other users, when
the loop reached an offset higher than 1000, API starts returning same
response as offset=0. Is this an API limit?

Regards,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
felix bonkoski  
View profile  
 More options Mar 30 2012, 10:12 am
From: felix bonkoski <felixschwer...@gmail.com>
Date: Fri, 30 Mar 2012 07:12:38 -0700 (PDT)
Local: Fri, Mar 30 2012 10:12 am
Subject: Re: Offset limit on v2/user/likes

Yes 1000 "likes" seems to be an API limit. Larger offsets just start
loading likes from the beginning again.

Why can't we fetch more than 1000? I don't know. Maybe Mr. Bunting has
something to add.  :)

felix


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Strigler  
View profile  
 More options Jun 22 2012, 2:43 am
From: Stefan Strigler <stefan.strig...@gmail.com>
Date: Thu, 21 Jun 2012 23:43:47 -0700 (PDT)
Local: Fri, Jun 22 2012 2:43 am
Subject: Re: Offset limit on v2/user/likes

Any updates on this? I'm about to write a tool that allows to backup all of
your likes but with this limit it's not very useful at the moment. Any
chances to get this limit raised or maybe even removed entirely? What's the
reason behind it anyway?

-Steve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Bunting  
View profile  
 More options Jun 22 2012, 6:58 am
From: John Bunting <jo...@tumblr.com>
Date: Fri, 22 Jun 2012 06:58:00 -0400
Subject: Re: Offset limit on v2/user/likes

Hey,

Yep 1000 likes is the upper limit of what we expose on the API. So it's the last 1000 likes the user has liked.

--
John Bunting

Simplicity is a prerequisite for reliability
   --Edsger W. Dijkstra


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
felix bonkoski  
View profile  
 More options Jun 22 2012, 7:53 am
From: felix bonkoski <felixschwer...@gmail.com>
Date: Fri, 22 Jun 2012 06:53:26 -0500
Local: Fri, Jun 22 2012 7:53 am
Subject: Re: Offset limit on v2/user/likes

The real question I think we are wondering is, will this be changed?  If
so, when?  If not, why not?

Felix


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Pears  
View profile  
 More options Jun 22 2012, 7:59 am
From: Steven Pears <steven.pe...@live.co.uk>
Date: Fri, 22 Jun 2012 04:59:36 -0700 (PDT)
Local: Fri, Jun 22 2012 7:59 am
Subject: Re: Offset limit on v2/user/likes

Where there are arbitrary limits in place on API calls like this, could we
add a request for an offset_limit property in the meta object that is
returned with the result? That way we could avoid giving duplicate data
back to our users - and stop the need for us asking for this kind of detail.

Thanks

Steven


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
felix bonkoski  
View profile  
 More options Jun 22 2012, 8:02 am
From: felix bonkoski <felixschwer...@gmail.com>
Date: Fri, 22 Jun 2012 07:02:56 -0500
Local: Fri, Jun 22 2012 8:02 am
Subject: Re: Offset limit on v2/user/likes

Really, that information *should* all be in the API documentation.  (*wink*
John)

Or ideally, there should be a JSON (or XML etc) interface to get all the
"documentation" information about the API.  Google provides such things for
their public API's -- a call to get the "description" the API.

Felix

On Fri, Jun 22, 2012 at 6:59 AM, Steven Pears <steven.pe...@live.co.uk>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Bunting  
View profile  
 More options Jun 22 2012, 9:55 am
From: John Bunting <jo...@tumblr.com>
Date: Fri, 22 Jun 2012 09:55:42 -0400
Local: Fri, Jun 22 2012 9:55 am
Subject: Re: Offset limit on v2/user/likes

You guys are right. This should be in the documentation. I've been working on getting some auto generated documentation handy for use internally as well as externally.  

The idea of the description route is quite interesting. I'll have to mull that one over, as well meta fields for things like rate limit and the such.

--
John Bunting

Simplicity is a prerequisite for reliability
   --Edsger W. Dijkstra


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
felix bonkoski  
View profile  
 More options Jun 22 2012, 10:22 am
From: felix bonkoski <felixschwer...@gmail.com>
Date: Fri, 22 Jun 2012 09:22:44 -0500
Local: Fri, Jun 22 2012 10:22 am
Subject: Re: Offset limit on v2/user/likes

The auto-generated documentation would probably feed quite nicely into an
"API Description" interface as well.

Felix


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Bunting  
View profile  
 More options Jun 22 2012, 11:03 am
From: John Bunting <jo...@tumblr.com>
Date: Fri, 22 Jun 2012 11:03:09 -0400
Local: Fri, Jun 22 2012 11:03 am
Subject: Re: Offset limit on v2/user/likes

I do want to take the time to thank you all for your suggestions and information.  I read every email that comes across the list and even if sometimes I don't respond right away (or at all because I get a lot of email >.<), I appreciate the input.  

Any other community improving ideas are welcome and you guys can always drop me a line on this email or the list.  

--
John Bunting

Simplicity is a prerequisite for reliability
   --Edsger W. Dijkstra


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mrjason  
View profile  
 More options Jun 22 2012, 11:37 am
From: mrjason <onejasonfors...@gmail.com>
Date: Fri, 22 Jun 2012 08:37:41 -0700 (PDT)
Local: Fri, Jun 22 2012 11:37 am
Subject: Re: Offset limit on v2/user/likes

+1 to John.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
felix bonkoski  
View profile  
 More options Jun 22 2012, 2:55 pm
From: felix bonkoski <felixschwer...@gmail.com>
Date: Fri, 22 Jun 2012 13:55:58 -0500
Local: Fri, Jun 22 2012 2:55 pm
Subject: Re: Offset limit on v2/user/likes

Yes. +1 for John. You deserve a raise :P  I'd drop a note on
http://www.davidslog.com/ask -- but somehow I doubt Mr. Karp reads those
hahaha.

But hey, since you're in such a good mood this afternoon...  maybe I'll
just put a tiny wish list here for you...

1. Ability to get the Post Author information on posts from Group Blogs
 (Now supported in Tumblr Themes, although it wasn't for a long time. Not
sure when they added it, but it must have been fairly recently. In the
Theme Code, you've got {PostAuthorName}  {PostAuthorTitle}  {PostAuthorURL}
etc.  That sure would be nice to get with the Blog post info through the
API)

   I've got a few clients who could use this feature.  Right now I just
have to use hacky workarounds.

2. Pwetty pweez let us fetch more than 50 blog posts at once again?  I know
it was a *bug* when i used to be able to fetch 250 posts at a time.... but
it was just soooo much faster that way.

I know you're not Santa Claus, though, so.... Anyway, thanks for all your
hard work. Everyone here in this group appreciates you very much!

Felix Bonkoski

--
Felix Bonkoski

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »