To begin, all you need to do is create an account. Once you confirm and log in, you will find your API key on your account page. Make note of this key, you'll be using it in the API's url.
The API can be accessed by a specially formatted url, as follows:
http://izearanks.com/api?url1=ESCAPED_URL&start_date=YYYY-MM-DD&d
ays=NUMBER_OF_DAYS&type=DATA_TYPE&key=YOUR_API_KEY
It's that simple... but let's look at it a little deeper.
We return to you an XML file with the requested data. Here's a quick example, considering the following API call:
http://izearanks.com/api?url1=ESCAPED_URL&start_date=YYYY-MM-DD&d
ays=NUMBER_OF_DAYS&type=DATA_TYPE&key=YOUR_API_KEY
Will return:
<stats type="realrank">
<site url="http://simplekindoflife.com/">
<stat date="2007-12-15" value="115"/>
<stat date="2007-12-14" value="109"/>
<stat date="2007-12-13" value="110"/>
<stat date="2007-12-12" value="110"/>
<stat date="2007-12-11" value="119"/>
<stat date="2007-12-10" value="137"/>
</site>
</stats>
Did you notice that to specify the url in the API, you set the value of url1 and not just url? That's because you can query up to 10 urls at once. Just keep adding them to the API call. Here's an example:
http://izearanks.com/api?url1=ohgizmo.com&url2=simplekindoflife.c
om&url3=thedietdiary.com/blog&url4=site_that_doesnt_exist.com&sta
rt_date=2007-12-15&days=2&type=realrank&key=abc
Would return:
<stats type="realrank">
<site url="ohgizmo.com">
<stat date="2007-12-15" value="1"/>
<stat date="2007-12-14" value="2"/>
<stat date="2007-12-13" value="2"/>
</site>
<site url="simplekindoflife.com">
<stat date="2007-12-15" value="115"/>
<stat date="2007-12-14" value="109"/>
<stat date="2007-12-13" value="110"/>
</site>
<site url="thedietdiary.com/blog">
<stat date="2007-12-15" value="31"/>
<stat date="2007-12-14" value="32"/>
<stat date="2007-12-13" value="33"/>
</site>
<site url="site_that_doesnt_exist.com"></site>
</stats>
Currently, we only offer 5000 calls to the API a day. A day starts new at midnight EST, where our servers are located.
Have you created something cool with IZEARank's API? We want to know! If it's really really cool, we might even up your API call limit!