total story count ?

1 view
Skip to first unread message

Linux

unread,
Jul 29, 2009, 10:23:12 AM7/29/09
to Digg API
hello,
how can i retrieve the total count of stories digged from a specific
domain using digg api?

it is 42 for doitmyway.net

see this link:

http://digg.com/search?s=doitmyway.net&submit=Search&section=news&type=url&area=all&sort=new

Steve Williams

unread,
Jul 29, 2009, 11:54:53 AM7/29/09
to dig...@googlegroups.com
At 07:23 AM 7/29/2009, Linux wrote:
>how can i retrieve the total count of stories digged from a specific
>domain using digg api? it is 42 for doitmyway.net

See the "domain" argument:

http://apidoc.digg.com/ListStories#Arguments

In general, the List Stories endpoints implicitly have limited time frames:

http://apidoc.digg.com/BasicConcepts#ImplicitTimePeriods

But List Stories is exempt from implicit time periods when the
"domain" argument is used. You can see that in the documentation of
the min/max date arguments:

http://apidoc.digg.com/ListStories#Arguments

"min_submit_date, max_submit_date ... Defaults: ... All time, in the
following cases: ... If a domain is specified."

Here's the API request URL for the domain you mentioned:

http://services.digg.com/stories?domain=doitmyway.net&appkey=http%3A%2F%2Fapidoc.digg.com

Note that the total in the API response agrees with the search
results you mentioned:

<stories timestamp="1248882483" total="42" offset="0" count="10">

Note also that the <stories> element does NOT have min/max date
attributes. That's how the API lets you know that no implicit time
period was applied.

Does that make sense?

Linux

unread,
Jul 29, 2009, 2:33:51 PM7/29/09
to Digg API
thanks alot

On Jul 29, 7:54 pm, Steve Williams <s...@digg.com> wrote:
> At 07:23 AM 7/29/2009, Linux wrote:
>
> >how can i retrieve the total count of stories digged from a specific
> >domain using digg api?  it is 42 for doitmyway.net
>
> See the "domain" argument:
>
> http://apidoc.digg.com/ListStories#Arguments
>
> In general, the List Stories endpoints implicitly have limited time frames:
>
> http://apidoc.digg.com/BasicConcepts#ImplicitTimePeriods
>
> But List Stories is exempt from implicit time periods when the
> "domain" argument is used.  You can see that in the documentation of
> the min/max date arguments:
>
> http://apidoc.digg.com/ListStories#Arguments
>
> "min_submit_date, max_submit_date ... Defaults: ... All time, in the
> following cases: ... If a domain is specified."
>
> Here's the API request URL for the domain you mentioned:
>
> http://services.digg.com/stories?domain=doitmyway.net&appkey=http%3A%...
Reply all
Reply to author
Forward
0 new messages