Reports API 概览
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Reports API 是一种 RESTful API,可用于访问有关用户 Google Workspace 活动的信息。Reports API 是 Admin SDK API 的一部分。
Reports API 提供两种类型的报告:
- 活动报告,用于报告特定应用或服务(例如 Google 云端硬盘或管理控制台)的事件。
- 使用情况报告,其中列出了由用户导致的工作区事件。
- 客户使用情况报告会列出您网域中所有用户的事件。
- 用户使用情况报告会列出按用户整理的事件。
以下是 Reports API 中使用的常见术语列表:
- 活动报告
活动报告会列出特定 Google Workspace 应用或服务中的活动信息。活动报告包括日期、时间、用户和活动类型。API 参考文档包含活动报告的完整列表以及其中包含的信息。
以下是一些活动报告示例,按应用或服务列出:
- 管理员活动报告会显示管理员使用管理控制台执行的活动。例如,您可以获取管理员使用管理控制台更改用户名称的所有时间点的列表。
- Google 云端硬盘活动报告会列出网域用户编辑和查看其云端硬盘文档的方式。例如,您可以获取特定用户在云端硬盘中的活动列表。
- 登录活动报告会提供有关您账号的用户何时登录和退出其账号的信息。例如,您可以获取网域在特定时间段内的所有登录记录报告。
- 移动设备活动报告会显示使用由 Google 移动设备管理服务管理的移动设备的活动。
例如,当用户注册新设备时,您可以收到通知。
- OAuth 令牌活动报告会列出用户授予或撤消第三方网站和应用使用的授权令牌时发生的事件。您可以使用 Reports API 获取用户 Google Workspace 数据的所有第三方访问权限的列表。
- 使用情况报告
使用情况报告会提供有关您网域中 Google Workspace 事件的信息。
您可以使用该 API 请求有关用户的特定信息。
- 客户使用情况报告会列出您账号中的详细应用和服务活动。此类使用情况信息按应用类型整理,包含特定于相应应用的信息。
- 用户使用情况报告会显示您账号中用户的活动。您可以自定义和过滤这些报告,以获取特定的使用情况信息。这些使用情况信息按应用类型整理,包含特定于相应应用的信息。
- 实体使用情况报告会列出与您账号的用户在 Currents 应用中使用的实体相关的活动。
- 通知
- Reports API 提供通知,可让您监控资源变化等事件。当您观看的资源发生变化时,Reports API 会向您发送通知。如需详细了解如何设置和接收来自 Reports API 的通知,请参阅接收推送通知指南。
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):2025-08-29。"],[],[],null,["# Reports API Overview\n\nThe Reports API is a RESTful API you can use to access information about the\nGoogle Workspace activities of your users. The Reports API is part of the Admin SDK API.\n\nThe Reports API provides two types of reports:\n\n- **Activity** reports, which report events for a specific application or service, such as Google Drive or the Admin console.\n- **Usage** reports, which list workspace events caused by users.\n - **Customer** usage reports list events for all users in your domain.\n - **User** usage reports list events organized by user.\n\nFollowing is a list of common terms used in the Reports API:\n\n*Activity reports*\n\n: Activity reports list information for activities in a specific Google Workspace\n application or service. Activity reports include the date, time, user, and type\n of activity. The\n [API reference](/workspace/admin/reports/v1/reference)\n contains a complete list of activity reports and the information they include.\n Here are some example activity reports, listed by application or service:\n\n- [Admin activity reports](/workspace/admin/reports/v1/guides/manage-audit-admin) show activities done by administrators using the Admin console. For example, you could get a list of all the times administrators changed a user's name using the Admin console.\n- [Google Drive activity reports](/workspace/admin/reports/v1/guides/manage-audit-drive) list how your domain's users edit and view their Drive documents. For example, you can get a list of a particular user's activity on Drive.\n- [Login activity reports](/workspace/admin/reports/v1/guides/manage-audit-login) provide information on when your account's users log in and out of their accounts. You can, for example, get a report of all the logins for your domain over a particular time period.\n- [Mobile activity reports](/workspace/admin/reports/v1/guides/manage-audit-mobile) show activities using mobile devices managed by [Google Mobile Management](https://workspace.google.com/products/admin/endpoint/). For example, you can get a notification when users register a new device.\n- [OAuth Token activity reports](/workspace/admin/reports/v1/guides/manage-audit-tokens) list events when your users have given or revoked authorization tokens used by third-party websites and applications. You can use the Reports API to get a list of all third-party access to a user's Google Workspace data.\n\n*Usage reports*\n\n: Usage reports provide information about Google Workspace events in your domain.\n You can use the API to request specific information about users.\n\n- [Customers usage reports](/workspace/admin/reports/v1/guides/manage-usage-customers) list detailed application and service activities in your account. This usage information is organized by application type and contains information specific to that application.\n- [Users usage reports](/workspace/admin/reports/v1/guides/manage-usage-users) show activities by your account's users. These reports can be customized and filtered for specific usage information. This usage information is organized by application type and contains information specific to that application.\n- [Entities usage reports](/workspace/admin/reports/v1/guides/manage-usage-entities) list activities related to entities used by your account's users in the Currents application.\n\n*Notifications*\n: The Reports API provides notifications that let you watch for events, such as\n changes to resources. When you're watching a resource and that resource changes,\n the Reports API sends you a notification. For more information on setting up and\n receiving notifications from the Reports API, see the guide to\n [Receiving Push Notifications](/workspace/admin/reports/v1/guides/push).\n\nNext steps\n----------\n\n- To learn about the Reports API and see it work, use a Quickstart,\n which are listed by programming language on the left navigation bar. You can\n also continue through this section to read general information about setting up\n your account.\n\n- The\n [authorization](/workspace/admin/reports/v1/guides/authorizing)\n section shows you how to use OAuth 2.0 access tokens to obtain user data from\n Google Workspace applications and services.\n\n- To find the details of a specific resource type or method, see the\n [API reference](/workspace/admin/reports/v1/reference).\n\n- For more information, see the\n [Admin SDK API issue tracker](https://issuetracker.google.com/savedsearches/566232),\n the\n [Google Workspace Developers blog](https://cloud.google.com/blog/topics/workspace-developers),\n and the\n [Google Workspace Admin help center](https://support.google.com/a)."]]