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>"aUser=<string>&userIp=<string>
Returns real time data for a view (profile).
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
ids | string | (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. | |
metrics | string | (Required) A comma-separated list of real time metrics. E.g., 'rt:activeUsers'. At least one metric must be specified. | |
dimensions | string | A comma-separated list of real time dimensions. E.g., 'rt:medium,rt:city'. | |
filters | string | A comma-separated list of dimension or metric filters to be applied to real time data. | |
max-results | string | The maximum number of entries to include in this feed. | |
sort | string | A comma-separated list of dimensions or metrics that determine the sort order for real time data. | |
alt | string | Data format for the response. | |
fields | string | Selector specifying which fields to include in a partial response. | |
key | string | API 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_token | string | OAuth 2.0 token for the current user. | |
prettyPrint | string | Returns response with indentations and line breaks. | |
quotaUser | string | An opaque string that represents a user for quota purposes. Must not exceed 40 characters. | |
userIp | string | Deprecated. Please use quotaUser instead. |
RESPONSES
status: OK
{"columnHeaders":[{"columnType":"dolore Lorem sint ad","dataType":"ea in","name":"do cillum laboris nisi Lorem"},{"columnType":"voluptate nostrud proident","dataType":"veniam Lorem aute","name":"ad reprehenderit Duis aliquip"}],"id":"id tempor Duis irure","kind":"analytics#realtimeData","profileInfo":{"accountId":"tempor irure in ad","internalWebPropertyId":"velit labore","profileId":"fugiat ex dolo","profileName":"dolore ea exercitation Excepteur adipisicin","tableId":"elit voluptate reprehenderit au","webPropertyId":"in magna aliqua"},"query":{"dimensions":"do veniam proident","filters":"sed labore","ids":"cupidatat","max-results":-68455575,"metrics":["nulla pariatur voluptate","do ips"],"sort":["id ut elit sunt nulla","in magna ipsum consectetur aliqu"]},"rows":[["minim deserun","occaecat sint"],["occaecat veniam","cupidatat irure"]],"selfLink":"Lorem","totalResults":69564883,"totalsForAllResults":{}}