analytics.data.realtime.get

GET {{baseUrl}}/data/realtime?ids=<string>&metrics=<string>&dimensions=<string>&filters=<string>&max-results=<integer>&sort=<string>&alt=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>&quotaUser=<string>&userIp=<string>

Returns real time data for a view (profile).

Request Params

KeyDatatypeRequiredDescription
idsstring(Required) Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
metricsstring(Required) A comma-separated list of real time metrics. E.g., 'rt:activeUsers'. At least one metric must be specified.
dimensionsstringA comma-separated list of real time dimensions. E.g., 'rt:medium,rt:city'.
filtersstringA comma-separated list of dimension or metric filters to be applied to real time data.
max-resultsstringThe maximum number of entries to include in this feed.
sortstringA comma-separated list of dimensions or metrics that determine the sort order for real time data.
altstringData format for the response.
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAn opaque string that represents a user for quota purposes. Must not exceed 40 characters.
userIpstringDeprecated. Please use quotaUser instead.

RESPONSES

status: OK

{&quot;columnHeaders&quot;:[{&quot;columnType&quot;:&quot;dolore Lorem sint ad&quot;,&quot;dataType&quot;:&quot;ea in&quot;,&quot;name&quot;:&quot;do cillum laboris nisi Lorem&quot;},{&quot;columnType&quot;:&quot;voluptate nostrud proident&quot;,&quot;dataType&quot;:&quot;veniam Lorem aute&quot;,&quot;name&quot;:&quot;ad reprehenderit Duis aliquip&quot;}],&quot;id&quot;:&quot;id tempor Duis irure&quot;,&quot;kind&quot;:&quot;analytics#realtimeData&quot;,&quot;profileInfo&quot;:{&quot;accountId&quot;:&quot;tempor irure in ad&quot;,&quot;internalWebPropertyId&quot;:&quot;velit labore&quot;,&quot;profileId&quot;:&quot;fugiat ex dolo&quot;,&quot;profileName&quot;:&quot;dolore ea exercitation Excepteur adipisicin&quot;,&quot;tableId&quot;:&quot;elit voluptate reprehenderit au&quot;,&quot;webPropertyId&quot;:&quot;in magna aliqua&quot;},&quot;query&quot;:{&quot;dimensions&quot;:&quot;do veniam proident&quot;,&quot;filters&quot;:&quot;sed labore&quot;,&quot;ids&quot;:&quot;cupidatat&quot;,&quot;max-results&quot;:-68455575,&quot;metrics&quot;:[&quot;nulla pariatur voluptate&quot;,&quot;do ips&quot;],&quot;sort&quot;:[&quot;id ut elit sunt nulla&quot;,&quot;in magna ipsum consectetur aliqu&quot;]},&quot;rows&quot;:[[&quot;minim deserun&quot;,&quot;occaecat sint&quot;],[&quot;occaecat veniam&quot;,&quot;cupidatat irure&quot;]],&quot;selfLink&quot;:&quot;Lorem&quot;,&quot;totalResults&quot;:69564883,&quot;totalsForAllResults&quot;:{}}