X Results in the last Y days

0 views
Skip to first unread message

@jot

unread,
Jan 5, 2010, 7:54:51 AM1/5/10
to collecta developer
Is there a way to get the "X Results in the last Y days" data shown at
the top of web search results via either of the APIs?

Jon.

Jack Moffitt

unread,
Jan 5, 2010, 11:45:45 AM1/5/10
to collecta-...@googlegroups.com
> Is there a way to get the "X Results in the last Y days" data shown at
> the top of web search results via either of the APIs?

There are a bunch of user interaction guidelines that dictate how that
is calculated on our own site, but I can tell you how we do the
calculation.

Each Atom payload has a <timesaved> element, which contains a
millisecond-resolution timestamp (milliseconds since the epoch). A
simple version of the calculation we do would be to take request
enough results from archive to fill a local cache. This may return X
records. The value of <timesaved> in the last returned record is T. So
we'd now "X results in the last NOW - T timeunits".

Does that help? Or were you looking for the user interaction details?

jack.

Jonathan Markwell

unread,
Jan 5, 2010, 3:33:57 PM1/5/10
to collecta-...@googlegroups.com
Hi Jack,

That's really helpful, everything I need to know.

Cheers!

Jon.

--
Jonathan Markwell
Engineer | Founder | Connector

Inuda Innovations Ltd, Brighton, UK

Web application development & support
Twitter & Facebook integration specialists
http://inuda.com

Organising the world's first events for the Twitter developer Community
http://TwitterDeveloperNest.com

Providing a nice little place to work in the middle of Brighton -
http://theskiff.org

Measuring your brand's visibility on the social web - http://HowSociable.com

mob: 07766 021 485 | tel: 01273 704 549 | fax: 01273 376 953
skype: jlmarkwell | twitter: http://twitter.com/jot

Reply all
Reply to author
Forward
0 new messages