Source: site.view [edit]
Function name: bingWebSearch
Arguments: query
Description: Find links to webpages matching 'query'
Page type: webl
Render function:  
Module: global

Page source:

var P = GetURL("http://api.bing.net/xml.aspx",   [. appId="6B9BBC081ABFE19273DEF660066BC4A652ED47B3", Sources="Web", query=query,  .]);

var res = [];
var WebResult = Elem(P, "web:WebResult");

every wr in WebResult do
   var wres = [. .];
   wres.title := Str_Trim(Text(Elem(P, "web:Url")[0])) ? "";
   wres.url := Str_Trim(Text(Elem(P, "web:Url")[0])) ? "";
   wres.description := Str_Trim(Text(Elem(P, "web:Description")[0])) ? "";
   wres.title := Str_Trim(Text(Elem(P, "web:CacheUrl")[0])) ? "";
   wres.date := Str_Trim(Text(Elem(P, "web:DateTime")[0])) ? "";
   res = res + [wres]
end;

res;