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 Activity API

Operations related to Activity

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

This API exposes 2 JSON Schema definitions.

Tagged areas include Activity. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, an API reference, and 2 JSON Schemas.

This API exposes 1 operation across 1 path, and defines 66 schemas. It is described by OpenAPI 3.2.0, at version v2.

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

1 operations 1 paths 66 schemas 1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
v2
Base URL
https://api.example.com
Authentication
OAuth 2.0, OAuth 2.0
Contact
Terms of Service
Resource Areas
1

Authentication & Security 2

Google Activity 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.

Activity 1

Operations related to Activity

POST
/v2/activity:query
Google Post Activity:query
googleDriveactivityActivityQuery 12 params body → 200

Schemas 66

The contract defines 66 schemas that model the data the API accepts and returns. The most detailed are ActionDetail (12 properties), FieldValue (8 properties), DriveItem (8 properties), DriveItemReference (6 properties). Each schema is shown below with its type and property counts.

Integer
object
Wrapper for Integer Field value.
1 property
ConsolidationStrategy
object
How the individual activities are consolidated. If a set of activities is related they can be consolidated into one combined activity, such as one actor perfor…
2 properties
Rename
object
An object was renamed.
2 properties
New
object
An object was created from scratch.
Delete
object
An object was deleted.
1 property
Owner
object
Information about the owner of a Drive item.
4 properties
SystemEvent
object
Event triggered by system operations instead of end users.
1 property
TargetReference
object
A lightweight reference to the target of activity.
3 properties
AnonymousUser
object
Empty message representing an anonymous user or indicating the authenticated user should be anonymized.
Action
object
Information about the action.
5 properties
TimeRange
object
Information about time ranges.
2 properties
Impersonation
object
Information about an impersonation, where an admin acts on behalf of an end user. Information about the acting admin is not currently available.
1 property
DriveActivity
object
A single Drive activity comprising one or more Actions by one or more Actors on one or more Targets. Some Action groupings occur spontaneously, such as moving…
6 properties
AppliedLabelChangeDetail
object
A change made to a Label on the Target.
4 properties
DriveReference
object
A lightweight reference to a shared drive.
2 properties
AppliedLabelChange
object
Label changes that were made on the Target.
1 property
File
object
This item is deprecated; please see DriveFile instead.
Restore
object
A deleted object was restored.
1 property
DriveItem
object
A Drive item, such as a file or folder.
8 properties
RestrictionChange
object
Information about restriction policy changes to a feature.
2 properties
Suggestion
object
A suggestion.
1 property
Domain
object
Information about a domain.
2 properties
TeamDriveReference
object
This item is deprecated; please see DriveReference instead.
2 properties
Copy
object
An object was created by copying an existing object.
1 property
Assignment
object
A comment with an assignment.
2 properties
Edit
object
An empty message indicating an object was edited.
Folder
object
This item is deprecated; please see DriveFolder instead.
1 property
FieldValueChange
object
Change to a Field value.
4 properties
DeletedUser
object
A user whose account has since been deleted.
Drive
object
Information about a shared drive.
3 properties
QueryDriveActivityRequest
object
The request message for querying Drive activity.
6 properties
FileComment
object
A comment on a file.
4 properties
DriveFolder
object
A Drive item which is a folder.
1 property
Post
object
A regular posted comment.
1 property
DataLeakPreventionChange
object
A change in the object's data leak prevention status.
1 property
ActionDetail
object
Data describing the type and additional information of an action.
12 properties
Upload
object
An object was uploaded into Drive.
UnknownUser
object
A user about whom nothing is currently known.
SingleUser
object
Wrapper for User Field value.
1 property
TextList
object
Wrapper for Text List Field value.
1 property
KnownUser
object
A known user.
2 properties
TeamDrive
object
This item is deprecated; please see Drive instead.
3 properties
User
object
Information about an end user.
3 properties
DriveItemReference
object
A lightweight reference to a Drive item, such as a file or folder.
6 properties
Comment
object
A change about comments on an object.
4 properties
ApplicationReference
object
Activity in applications other than Drive.
1 property
Create
object
An object was created.
3 properties
DriveFile
object
A Drive item which is a file.
Administrator
object
Empty message representing an administrator.
Text
object
Wrapper for Text Field value.
1 property
QueryDriveActivityResponse
object
Response message for querying Drive activity.
2 properties
SettingsChange
object
Information about settings changes.
1 property
Move
object
An object was moved.
2 properties
NoConsolidation
object
A strategy that does no consolidation of individual activities.
Permission
object
The permission setting of an object.
6 properties
UserList
object
Wrapper for UserList Field value.
1 property
Target
object
Information about the target of activity. For more information on how activity history is shared with users, see [Activity history visibility](https://develope…
4 properties
Date
object
Wrapper for Date Field value.
1 property
Selection
object
Wrapper for Selection Field value as combined value/displayname pair for selected choice.
2 properties
Anyone
object
Represents any user (including a logged out user).
Group
object
Information about a group.
2 properties
SelectionList
object
Wrapper for SelectionList Field value.
1 property
Legacy
object
A strategy that consolidates activities using the grouping rules from the legacy V1 Activity API. Similar actions occurring within a window of time can be grou…
PermissionChange
object
A change of the permission setting on an item.
2 properties
Actor
object
The actor of a Drive activity.
5 properties
FieldValue
object
Contains a value of a Field.
8 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

google-activity-api-openapi.yml Raw ↑

Other APIs Google publishes across the network.

Google Cloud API Gateway
Google Maps API
Google Aggregate Places API
Google Places Insights API
Google Street View Imagery API
Google Elevation API
Google Routes API
Google Geocoding API
Google Geolocation API
Google Address Validation API
Google Time Zone API
Google Air Quality API
Where this information came from

This is an independent, third-party profile of Google Activity 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.