Google AJAX Feed API

John Musser
Apr. 20 2007, 12:41AM EDT

Google this week announced the release of the Google AJAX Feed API. What is it? It's a JavaScript library that lets you mashup RSS and Atom feeds entirely on the client, thus no need for server-side coding. In addition, one of the useful core features is that it can automatically map XML attributes to a JSON result format. To get a sense of what it can do, one of their example mashups has been added to our listings: the Google AJAX Tune Bar that lets you add iTunes RSS feeds to any page.

If you're familiar with JavaScript programming you'll note that typically this sort of client-side mashup would have some limitations due to browser security constraints restricting data to only come from the same server a given page was delivered. But Google works-around this by having their servers act as a proxy cache for all feed requests made via the API. Which leads to a couple of other implications: "The AJAX Feed API, like Google Reader and the Google personalized homepage, caches individual entries within feeds and reconstructs feeds based on those entries. Consequently, feeds from the AJAX Feed API may not reflect the exact XML file from the URL you request. In many cases, you can request more entries from the AJAX Feed API than are currently available in the live feed." It is also interesting that we're seeing more JavaScript-based APIs from Google, including the AJAX Search API and the ever-popular Google Maps API. We'll probably see more in the future given that they've introduced a new base url of google.com/jsapi and a generalized JavaScript API load process: "Loading the API requires two steps because Google is moving to a new model of loading AJAX APIs to make it easier to include multiple Google APIs on your pages. Subscribe to the Google AJAX APIs Blog for announcements as we start rolling out this new AJAX API loading mechanism." This is one of those very useful but somewhat subtle APIs that has more power than may be initially apparent.

John Musser

Comments

Comments(8)

User HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
tom

As it stands it's a sort of Yahoo Pipes (or Grazr) for "real programmers". But what if they added in the option to write as well as read via the API i.e. a persistence engine. Think about it, the ability to easily update your Google Spreadsheets/Base/Calendar and mix in other external data at the same time could lead to whole new world of "server-less" JavaScript apps. Exciting times.

Tom

[...] It's very difficult to keep up with the world of public APIs and mashups -- even for someone like me who is writing a book on the topic and teaching a course on the subject! Now that I have a bit more time to work on the topic, I turn now to being more assiduous in my reading of online news sources. My first priority is a consistent read of John Musser's ProgrammableWeb. I already make steady use of its database of APIs and often point others to the Mashup Dashboard when people ask me for concrete examples of mashups. Now I want to keep up with his blog. Today (April 20)'s post concerns Google AJAX Feed API, which is described thus by the Google documentation: With the AJAX Feed API, you can download any public Atom or RSS feed using only JavaScript, so you can easily mash up feeds with your content and other APIs like the Google Maps API. [...]

Hmm it appears like your blog ate my first comment (it was extremely long)
so I guess I'll just sum it up what I submitted and say, I'm thoroughly enjoying your blog.
I as well am an aspiring blog blogger but I'm still new to the whole thing. Do you have any points for rookie blog writers? I'd definitely appreciate
it.

The Tao of Badass is usually a pattern connected
with training videos that offers you actually, the standard guy,
this brief course throughout male appeal that every lady wants and
finds ideal. Often used your pet, this ready person that’s smooth seeing that
dark-colored ice-cubes along with continually near girls in
the clubhouse. Women continually imagine which usually gentleman, in their suitable intellect, wouldn’t want
to be along with her. That wouldn’t aim for his personal choice of this head any time
women of all ages in the celebration examine the pup out
and about? It has the possible ways to ensure that you get plenty of secrets and techniques passed down in recent times and also superior
through scientific discipline allowing you to definitely always be in which dude, and also to reside
you of owning the particular impressive dating furthermore sex life which
you will want although not become brilliant adequate to
obtain.