DailyCounts Query

The dailycounts query provides daily counts of posts containing the queried keyword.

The call is made using a REST-ful interface. Send either a HTTP GET or a HTTP POST to http://api.technorati.com/dailycounts?key=[apikey]&q=[keyword query] with mandatory parameters "key" and "q" and optional parameters to request various formats and to specify days of data requested.

Please note: the count for the current date is a count for a partial day. Currently, the dates are in PST (UTC - 8 hours) / PDT (UTC - 7 hours)(U.S. Pacific timezone)

Parameters

Mandatory

key
Your Technorati API key, which you can obtain on our API key page.
q
Set this to the keyword query. The query should be url-escaped UTF-8.

Optional

days
Used to specify the number of days in the past to request daily count data for. Can be any integer between 1 and 180, default is 180
format
Results are returned in XML by default. You may optionally request the results in CSV using a parameter value of csv.

Response

Success

 <?xml version="1.0" encoding="utf-8"?>
 <!-- generator="Technorati API version 1.0 /dailycounts" -->
 <tapi version="1.0">
 <document>
   <result>
   <queryterm>[keyword query] </queryterm>
   <days>[number of days for which counts provided] </days>
   <searchurl>[technorati search URL for given query]  </searchurl>
   </result>
   <items>
     <item>
     <date>[date of count] </date>
     <count>[number of posts containing query on given date] </count>
    </item>
   </items>
 </document>
 </tapi>

Error

Technorati's API server may return an error message for a variety of reasons outlined in our common API error page.