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
What do the response fields {w, h, a, d, m} for for Resource /searchcount mean?
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
  3 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
 
Ed  
View profile  
 More options Mar 21 2012, 5:00 am
From: Ed <macker...@gmail.com>
Date: Wed, 21 Mar 2012 02:00:21 -0700 (PDT)
Local: Wed, Mar 21 2012 5:00 am
Subject: What do the response fields {w, h, a, d, m} for for Resource /searchcount mean?
Hello

I am wanting to find out the total number of Topsy Response objects
from /search for a given time period, defined by query parameters
[minTime,maxTime].

In looking at the API docs for the /searchcount Resource, I am left
with a few questions:

1) Will this call be able to take the time window for the search based
on a  [minTime,  maxTime] ?

2) What do the fields {w,h,a,d,m} mean in the response?

Thanks in advance for any help you can offer !

Ed

{
   "request" : {
      "parameters" : {
         "q" : "Barack Obama"
      },
      "response_type" : "json",
      "resource" : "searchcount",
      "url" : "http://otter.topsy.com/searchcount.json?q=Barack+Obama"
   },
   "response" : {
      "w" : 2085,
      "h" : 6,
      "a" : 572027,
      "d" : 330,
      "m" : 9122
   }


 
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.
Ed MacKerrow  
View profile  
 More options Mar 21 2012, 12:09 pm
From: Ed MacKerrow <macker...@gmail.com>
Date: Wed, 21 Mar 2012 10:09:46 -0600
Local: Wed, Mar 21 2012 12:09 pm
Subject: Re: What do the response fields {w, h, a, d, m} for for Resource /searchcount mean?

When I run this query:

http://otter.topsy.com/searchcount.json?mintime=1288591200&maxtime=12...

It seems like the /searchcount Resource returned does not take into account
the [mintime,maxtime] window, and instead returns

a = all tweets from the current time
m = the tweets from the last month
w = the tweets from the last week
d = the tweets from the last day
h = the tweets from the last hour

Not 100% sure that /searchcount does indeed ignore any [mintime, maxtime]
though, but I think so at this point...

Thanks
Ed


 
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.
vanessa  
View profile  
 More options Mar 21 2012, 8:31 pm
From: vanessa <vane...@topsy.com>
Date: Wed, 21 Mar 2012 17:31:50 -0700 (PDT)
Local: Wed, Mar 21 2012 8:31 pm
Subject: Re: What do the response fields {w, h, a, d, m} for for Resource /searchcount mean?

Correct, /searchcount does not take regular list parameters that a lot of
other calls do, so it will ignore mintime and maxtime. Instead, it does the
different time windows. You can also get a dynamic window that will pick
the best window based on recent activity spikes.

More documentation
here: http://code.google.com/p/otterapi/wiki/Resources#/searchcount


 
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 »