Feeds

How to get textual data instead of charts?

PerformancingAds
Submitted by splitbrain on May 9, 2006 - 7:16pm in

Hi!

I'd like to use the API to display the most popular pages of my blog, but I don't know how. Is it possible at all?

I'd like to get a response like this

<feed>
  <description>
    The 5 most popular posts in the last week
  </description>
  <totalhits>5456</totalhits>
  <item>
     <place>1</place>
     <title>The most popular post ever</title>
     <url>http://myblog.com/posts/the_most_popular_post</url>
     <hits>2357</hits>
  </item>
  <item>
     <place>2</place>
     <title>Think of the kittens</title>
     <url>http://myblog.com/posts/kittens</url>
     <hits>1234</hits>
  </item>
  <item>
     <place>3</place>
     <title>Anyone reading?</title>
     <url>http://myblog.com/posts/anyone_reading</url>
     <hits>578</hits>
  </item>
  <item>
     <place>4</place>
     <title>Foobar</title>
     <url>http://myblog.com/posts/foobar</url>
     <hits>355</hits>
  </item>
  <item>
     <place>5</place>
     <title>I'm out of stupid post titles</title>
     <url>http://myblog.com/posts/im_out_of_stupid</url>
     <hits>27</hits>
  </item>
</feed>

Hits are the number of visits in the given timeframe.


GetPostStats

Thanks! I think this should

Thanks! I think this should be linked from the FAQ entry about the API. Or is it?

All the functions are listed

All the functions are listed in the handbook http://performancing.com/metrics/handbook/api

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <h2> <h3> <h4> <img> <div> <a> <em> <strong> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <span> <table> <td> <tr> <caption> <th> <hr> <pre> <br> <p> <object> <param> <embed> <strike>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
4 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.