Author:Shane O’Sullivan

The GoogleFeedStore is a store designed to work against Google’s feed reading AJAX API. This store is an extension of GoogleSearchStore.

Note: These stores make use of Google’s AJAX search and feed services. In order to use them in your web-sites, please make sure to read Google’s terms and conditions and agree to them before using these stores.

Constructor Params

The following parameters are supported by the GoogleFeedStore implementation.

name description type
label The attribute of the search returns to use as the item’s label. Defaults to titleNoFormatting. string
key Your Google API key (optional) string
lang The language locale to use. Defaults to the browser locale. string

Item Attributes

The following attributes are available on items returned from the GoogleFeedStore

Attribute Description
title The feed entry title.
link The URL for the HTML version of the feed entry.
content The full content of the blog post, in HTML format
summary A snippet of information about the feed entry, in plain text
The string date on which the entry was published.
You can parse the date with new Date(store.getValue(item, “published”).
categories An array of string tags for the entry

Query Syntax

The query syntax for this store is simple. It takes a single object with the attribute ‘url’, where the value of the feed to retrieve

Query Example

  "url" : ""

Example Usage


function hrefFormatter(value){
  value = unescape(value);
  return "<a href=\"" + value + "\" target=\"_blank\">Link</a>";

var layoutResults = [
    { field: "title", name: "Title", width: 20 },
    { field: "link", name: "URL", width: 5, formatter: hrefFormatter},
    { field: "summary", name: "Summary", width: 'auto' }

function init(){
   function search(){
      var text = dijit.byId("urlText").getValue();
      text = dojo.trim(text);
      if(text !== "" ){
        var query = { url: text };
   dojo.connect(dijit.byId("searchButton"), "onClick", search);
<b>Input feed URL here:</b>
<input data-dojo-type="dijit.form.TextBox" style="width:50em;" id="urlText" value=";tab=wn&amp;output=atom"></input>
<div data-dojo-type="dijit.form.Button" id="searchButton">Search!</div>
<div data-dojo-type="" data-dojo-id="feedStore"></div>
<div style="width: 750px; height: 300px;">
  <div id="feedGrid"
@import "{{baseUrl}}dojox/grid/resources/Grid.css";
@import "{{baseUrl}}dojox/grid/resources/nihiloGrid.css";

.dojoxGrid table {
  margin: 0;

The following example shows wiring the GoogleFeedStore to

Error in the documentation? Can’t find what you are looking for? Let us know!