API Documentation

About

Tracker App is the easiest way to control how popular your web pages are, through searches in social networks control your shares, tweets and more, much more.

How it works

Copy the javascript code below to your website, and change the sample code at your discretion. Remember that the following social networks are available (at your right).

The second argument of the jQuery, "_networks", plugin is used to define the social networks that will be searched.

Available Networks:
var networks = {
  "delicious":"Delicious",
  "digg":"Digg",
  "facebook":"Facebook",
  "googleplus":"Google Plus",
  "linkedin":"LinkedIn",
  "reddit":"reddit",
  "stumbleupon":"StumbleUpon",
  "twitter":"Twitter"
};
  • API Output
  • JQuery Code
  • PHP Code
On Success
{
  status: true,
  msg: "You are doing it right!",
  url: "http://track.your.url/",
  shares: {
    delicious: 236,
    digg: 213,
    facebook: 430,
    googleplus: 105,
    linkedin: 478,
    reddit: 164,
    stumbleupon: 156,
    twitter: 302  }
}
On Error
{
  status: false,
  msg: "You are doing it wrong, or something like this."
}
jQuery.tracker = function(_url, _networks, _fn) {
  api_url = "http://tools.danielcardoso.net/tracker/api/";
  track_url = encodeURIComponent(_url || location.href);
  var post_arg = {
    url: track_url,
    api_key: "***",
    tracker: location.href,
    api_version: "v1",
    networks: _networks
  };
  return $.post(api_url, post_arg, _fn, "json");
};

jQuery(document).ready(function(){
  $.tracker(location.href, "twitter-facebook-googleplus", function(data){
    // YOUR TODO, something like
    $("#tracker").html(
      "Twitter: "+data.shares.twitter+" tweets, "+
      "Facebook: "+data.shares.facebook.shares+" shares, "+data.shares.facebook.likes+" likes, "+
      "Google Plus: "+data.shares.googleplus.plusones+" plusone's, "
    ).fadeIn();
  });
});
<?php
/*
 * PHP Code isn't available right now! But it will be, later!
 */
?>
Changes:
v1.00 2012-03-01
API Client is now available.
v0.90 2012-02-07
Only server service is available.

Request API Access

After registering you will receive a validation email, and later you will receive a new email with an access key to the API as well as the code in JQuery adapted to your case to access the API.
You will only be able to use this API on the domain you registered, otherwise you won’t be able to access it.

API Documentation
Request API Access

Tracker App

Tracker App is the easiest way to control how popular your web pages are, through searches in social networks control your shares, tweets and more, much more.