GET
/data/ga
Returns Analytics data for a view (profile).
ids query · required — Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.start-date query · required — Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.end-date query · required — End date for fetching Analytics data. Request can should specify an end date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is yesterday.metrics query · required — A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must be specified.dimensions query — A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.filters query — A comma-separated list of dimension or metric filters to be applied to Analytics data.include-empty-rows query — The response will include empty rows if this parameter is set to true, the default is truemax-results query — The maximum number of entries to include in this feed.output query — The selected format for the response. Default format is JSON.samplingLevel query — The desired sampling level.segment query — An Analytics segment to be applied to data.sort query — A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.start-index query — An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
GET
/data/mcf
Returns Analytics Multi-Channel Funnels data for a view (profile).
ids query · required — Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.start-date query · required — Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.end-date query · required — End date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.metrics query · required — A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.dimensions query — A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.filters query — A comma-separated list of dimension or metric filters to be applied to the Analytics data.max-results query — The maximum number of entries to include in this feed.samplingLevel query — The desired sampling level.sort query — A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.start-index query — An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
GET
/data/realtime
Returns real time data for a view (profile).
ids query · 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 query · required — A comma-separated list of real time metrics. E.g., 'rt:activeUsers'. At least one metric must be specified.dimensions query — A comma-separated list of real time dimensions. E.g., 'rt:medium,rt:city'.filters query — A comma-separated list of dimension or metric filters to be applied to real time data.max-results query — The maximum number of entries to include in this feed.sort query — A comma-separated list of dimensions or metrics that determine the sort order for real time data.