How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Google Analytics userActivity API

The userActivity API from Google Analytics — 1 operation(s) for useractivity.

Google Analytics userActivity API is one of 13 APIs that Google Analytics publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include User Activity. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a getting-started guide, authentication docs, and rate-limit docs.

This API exposes 1 operation across 1 path, and defines 15 schemas. It is described by OpenAPI 3.0.0, at version v1.

Requests are made against a single base URL, https://analyticsadmin.googleapis.com/.

1 operations 1 paths 15 schemas 1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
v1
Base URL
https://analyticsreporting.googleapis.com
Authentication
OAuth 2.0, OAuth 2.0
Contact
Terms of Service
Resource Areas
1

Authentication & Security 2

Google Analytics userActivity API declares 2 security schemes for authenticating requests. It supports OAuth 2.0 (Oauth2) using the implicit flow, exposing 2 scopes. It supports OAuth 2.0 (Oauth2c) using the authorizationCode flow, exposing 2 scopes.

  • Oauth2 — Oauth 2.0 implicit authentication
  • Oauth2c — Oauth 2.0 authorizationCode authentication

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.

userActivity 1
POST
/v4/userActivity:search
Returns User Activity data.
analyticsreporting.userActivity.search 11 params body → 200

Schemas 15

The contract defines 15 schemas that model the data the API accepts and returns. The most detailed are Activity (15 properties), GoalData (8 properties), SearchUserActivityRequest (6 properties), UserActivitySession (6 properties). Each schema is shown below with its type and property counts.

Activity
object
An Activity represents data for an activity of a user. Note that an Activity is different from a hit. A hit might result in multiple Activity's. For example, i…
15 properties
ScreenviewData
object
4 properties
EcommerceData
object
E-commerce details associated with the user activity.
4 properties
PageviewData
object
Represents details collected when the visitor views a page.
2 properties
SearchUserActivityRequest
object
The request to fetch User Report from Reporting API userActivity:get call.
6 properties
ProductData
object
Details of the products in an e-commerce transaction.
4 properties
SearchUserActivityResponse
object
The response from userActivity:get call.
4 properties
EventData
object
Represents all the details pertaining to an event.
5 properties
DateRange
object
A contiguous set of days: startDate, startDate + 1 day, ..., endDate. The start and end dates are specified in [ISO8601](https://en.wikipedia.org/wiki/ISO8601)…
2 properties
CustomDimension
object
Custom dimension.
2 properties
User
object
Contains information to identify a particular user uniquely.
2 properties
GoalData
object
Represents all the details pertaining to a goal.
8 properties
TransactionData
object
Represents details collected when the visitor performs a transaction on the page.
4 properties
GoalSetData
object
Represents a set of goals that were reached in an activity.
1 property
UserActivitySession
object
This represents a user session performed on a specific device at a certain time over a period of time.
6 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

google-analytics-useractivity-api-openapi.yml Raw ↑

Other APIs Google Analytics publishes across the network.

Google Analytics accounts API
Google Analytics accountSummaries API
Google Analytics data API
Google Analytics Events API
Google Analytics management API
Google Analytics metadata API
Google Analytics properties API
Google Analytics provisioning API
Google Analytics reports API
Google Analytics User Deletion API
Google Analytics userDeletion API
Google Analytics Validation API
Where this information came from

This is an independent, third-party profile of Google Analytics userActivity API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.