Feb
24th

Using Technorati’s API and PHP

UPDATE: March 3, 2007 – Released Technorati Rank WordPress Plugin.

UPDATE: Well it winds up that Technorati has a daily query limit. I found out the hard way, they shut me off. If you’ve installed the widget, you’ll see that it states Error with a link back to the Project Page so that you can download and host the code yourself. I’ve also updated the code so that once you reach the Daily allotment of API calls, it will simply change into an “Add to Favorites” link.

Being a database marketer by trade, I have two flaws (okay … many more than two, but these have to do with this post). I work well with numeric goals and I work well organizing and logically aligning projects, people, software, etc. Even my books are organized (left side of the book case is software and development, right-side top is business, bottom-right is fiction).

The numeric flaw keeps me looking at Technorati, Google Analytics, and Google Adsense all day, everyday. Techorati is one of those ones that really gets my interest because it provides me with who’s linking to me. I love to visit those sites and see what they are saying or what they found useful. In order to recognize whether or not my rank changed, though, I need to do a search on my blog.

I needed something quicker so I programmed a little ‘widget’ to Technorati’s API to obtain my rank quickly and easily. It’s actually what’s displaying the rank at the top of this post. If you’d like to see how, hit my project page up.

I built it using PHP5+ (It uses SimpleXML), cURL, and JavaScript. SimpleXML is an incredibly powerful XML engine! It’s much easier to program with than the old parsing engine. Code Samples are on the project page as well.

  • Thanks alot! This has helped me out loads.

    Now I just need to tweak it and it should be perfect
  • I found your little addon for Technorati, though I found out my server didn't have cURL compiled when the PHP5 was installed.

    So I'll see if I can get this one working: http://samanathon.com/2007/03/10/wordpress-plug... which you helped with for those who don't use PHP5 :)
  • Wow, Tyler! I knew cURL was a requirement but I did not realize that some folks wouldn't have it available to them. I thought that was a library that was loaded by default with PHP installs. I'm only guessing - but I bet that Samanthon's uses cURL as well.
  • Alright folks! I've totally rewritten this into a WordPress plugin and it has caching. Woohooo!

    Technorati Rank WordPress Plugin
  • I wonder how the Dapper guys are doing it? Maybe they only check once a day and cache the results.

    Dapper Screen Scraping for any Site
blog comments powered by Disqus