I am not a developer who is easily worried. But when you have a company who is consistently lowering the barriers to entry into the world of web development, maybe I should. I am of course talking about the juggernaut that is named google. Despite their obvious, [to me](http://www.simpltry.com/2007/01/17/google-ajax-search-api-in-theory/), naming debacle, they have once again knocked an [API](http://code.google.com/apis/ajaxfeeds/) out of the park.
They took something fairly straight forward, rss feeds, and made them stupid simple. If a site is using rss .94, 2.0 or one of those crazy atom people (we know it is superior, get over it), the API cares not. You pick any public feed, it says here are your well are your well formatted JSON objects. If you are super masochistic you could use xml, but then you would spend all your time cursing IE for not supporting [e4x](http://en.wikipedia.org/wiki/E4X).
Since [Simpltry](http://www.simpltry.com/ “Simpltry”) is a blog, it has an [rss feed](http://www.simpltry.com/?feed=rss2). Using this rss feed you could, my adoring fan, include a list of titles for my last 3 blog posts.
function initialize() {
google.load(”feeds”, “1″);
var feed = new google.feeds.Feed(”http://www.simpltry.com/?feed=rss2″);
feed.load(function(result) {
if (!result.error) {
var container = $(”feed”);
result.feed.entries.each(function(entry, i){
var div = document.createElement(”div”);
div.appendChild(document.createTextNode(entry.title));
container.appendChild(div);
if(i > 2) {
throw $break;
}
});
}
});
}
window.observe(”load”, initialize);
I updated google’s hello world example to make it a little more [Prototypical](http://prototypejs.org). It is beyond the scope of this article to explain what each line does, but suffice to say it gets simpltry’s rss feed and prints the first 3 titles into the **#feed** container.
Referring back to the first sentence of this article. Why am I worried? Is the question I find myself asking. Well coming from a server-side world I have always enjoyed a certain comfort that I have abilities and resources my client-side counterparts do not. But, as more and more companies add APIs similar to this, I may not enjoy that luxury forever. This API really gives me no new functionality, I could always write up a quick script to slurp an RSS file and display it on a web page. But now so can anybody, and not to mention they can do this all by hitting a super fast cached google server, instead of slow personal blog servers.
I really think this is going to produce some cool mash ups, there are some very creative people out there who haven’t had the opportunity to access this data from a programatic point of view.