Data Source

Generic HTTP GET data feed. Fetches on server-side render (GAS surface via UrlFetchApp) then refreshes client-side via google.script.run.fetchDataSource(). Publishes to window.A2UI_DATA[name] and calls window.A2UI_CALLBACKS[name]. Other surfaces would use fetch() or requests instead.

Surfaces
apps-script-web
Fields
FieldType
namestring. Feed identifier — other atoms subscribe to this name (required).required
urlstring. HTTP GET endpoint.required
formatstring. json | text. Default json.optional
pathstring. Dot-notation path into parsed response (e.g. data.items).optional
refreshinteger. Client refresh interval seconds. 0 = initial load only. Default 0.optional
cacheinteger. Server-side CacheService TTL seconds. Default 15.optional
Example payload
{
  "type": "data_source",
  "name": "Data Source",
  "url": 1
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:data_source",
  "displayName": "Data Source",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/data_source",
  "capabilities": [
    "apps-script-web"
  ],
  "description": "Generic HTTP GET data feed. Fetches on server-side render (GAS surface via UrlFetchApp) then refreshes client-side via google.script.run.fetchDataSource(). Publishes to window.A2UI_DATA[name] and calls window.A2UI_CALLBACKS[name]. Other surfaces would use fetch() or requests instead.",
  "representativeQueries": [
    "show a generic HTTP feed \u2014 server-side initial fetch, client-side refresh via surface transport",
    "generic http get data feed. fetches on server-side render (gas surface via urlfetchapp) then refresh",
    "render a data source"
  ]
}
← Full ARD catalog Try it live →
Deploy your own renderer

The renderer is open source. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.

git clone https://github.com/a2uicatalog/a2ui
cd apps-script-surface/gas-schema-renderer
clasp push && clasp deploy
Full deploy guide →