Reports API 總覽
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Reports API 是一種 RESTful API,可讓您存取使用者的 Google Workspace 活動相關資訊。Reports API 是 Admin SDK API 的一部分。
Reports API 提供兩種報表:
- 活動報表:這類報表會列出特定應用程式或服務的事件,例如 Google 雲端硬碟或管理控制台。
- 使用情況報表,列出使用者造成的 Workspace 事件。
- 客戶使用情況報表會列出網域中所有使用者的事件。
- 使用者使用情況報表會列出依使用者分類的事件。
以下列出 Reports API 中常用的字詞:
- 活動報表
活動報告會列出特定 Google Workspace 應用程式或服務的活動資訊。活動報表會顯示活動的日期、時間、使用者和類型。如需活動報表的完整清單及其包含的資訊,請參閱 API 參考資料。以下列舉幾個活動報表範例,並依應用程式或服務分類:
- 管理員活動報表
會顯示管理員在管理控制台中執行的活動。舉例來說,您可以透過管理控制台取得管理員變更使用者名稱的所有記錄。
- Google 雲端硬碟活動報表
列出網域使用者編輯及查看雲端硬碟文件的活動。舉例來說,您可以取得特定使用者在雲端硬碟中的活動清單。
- 登入活動報告
提供帳戶使用者登入和登出帳戶的時間資訊。舉例來說,您可以取得特定時間範圍內網域的所有登入記錄報表。
- 行動裝置活動報告會顯示透過 Google 行動管理服務管理的行動裝置活動。舉例來說,使用者註冊新裝置時,您會收到通知。
- OAuth 權杖活動報表
列出使用者授予或撤銷第三方網站和應用程式所用授權權杖的事件。您可以使用 Reports API,取得使用者 Google Workspace 資料的所有第三方存取權清單。
- 用量報表
用量報表提供網域中 Google Workspace 事件的相關資訊。
您可以使用 API 要求特定使用者資訊。
- 客戶使用情況報告會列出帳戶中應用程式和服務的詳細活動。這類使用情況資訊會依應用程式類型整理,並包含該應用程式的專屬資訊。
- 使用者使用情形報表
會顯示帳戶使用者的活動。您可以自訂及篩選這些報表,取得特定使用資訊。這類使用資訊會依應用程式類型整理,並包含該應用程式的專屬資訊。
- 實體使用情況報告
會列出帳戶使用者在 Currents 應用程式中使用的實體相關活動。
- 通知
- Reports API 會提供通知,讓您監控資源變更等事件。當您監看資源時,如果該資源發生變化,Reports API 就會傳送通知。如要進一步瞭解如何設定及接收 Reports API 的通知,請參閱「接收推送通知」指南。
後續步驟
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[null,null,["上次更新時間: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)."]]