Tổng quan về API Báo cáo
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Reports API là một API dựa trên REST mà bạn có thể dùng để truy cập vào thông tin về hoạt động của người dùng trên Google Workspace. Reports API là một phần của Admin SDK API.
Reports API cung cấp 2 loại báo cáo:
- Báo cáo hoạt động, báo cáo các sự kiện cho một ứng dụng hoặc dịch vụ cụ thể, chẳng hạn như Google Drive hoặc Bảng điều khiển dành cho quản trị viên.
- Báo cáo Mức sử dụng, liệt kê các sự kiện trong không gian làm việc do người dùng gây ra.
- Báo cáo khách hàng liệt kê các sự kiện của tất cả người dùng trong miền của bạn.
- Người dùng: Báo cáo mức sử dụng liệt kê các sự kiện được sắp xếp theo người dùng.
Sau đây là danh sách các thuật ngữ thường dùng trong Reports API:
- Báo cáo hoạt động
Báo cáo hoạt động liệt kê thông tin về các hoạt động trong một ứng dụng hoặc dịch vụ cụ thể của Google Workspace. Báo cáo hoạt động bao gồm ngày, giờ, người dùng và loại hoạt động. Tài liệu tham khảo API có danh sách đầy đủ các báo cáo hoạt động và thông tin mà các báo cáo này cung cấp.
Dưới đây là một số ví dụ về báo cáo hoạt động, được liệt kê theo ứng dụng hoặc dịch vụ:
- Báo cáo hoạt động của quản trị viên cho biết những hoạt động mà quản trị viên thực hiện bằng Bảng điều khiển dành cho quản trị viên. Ví dụ: bạn có thể nhận được danh sách tất cả những lần quản trị viên thay đổi tên người dùng bằng Bảng điều khiển dành cho quản trị viên.
- Báo cáo hoạt động trên Google Drive cho biết cách người dùng trong miền của bạn chỉnh sửa và xem tài liệu trên Drive. Ví dụ: bạn có thể xem danh sách hoạt động của một người dùng cụ thể trên Drive.
- Báo cáo hoạt động đăng nhập cung cấp thông tin về thời điểm người dùng tài khoản của bạn đăng nhập và đăng xuất khỏi tài khoản của họ. Ví dụ: bạn có thể nhận được báo cáo về tất cả các lượt đăng nhập cho miền của mình trong một khoảng thời gian cụ thể.
- Báo cáo hoạt động trên thiết bị di động cho biết các hoạt động sử dụng thiết bị di động do Google Mobile Management quản lý.
Ví dụ: bạn có thể nhận được thông báo khi người dùng đăng ký một thiết bị mới.
- Báo cáo hoạt động của mã thông báo OAuth liệt kê các sự kiện khi người dùng đã cấp hoặc thu hồi mã thông báo uỷ quyền mà các trang web và ứng dụng bên thứ ba sử dụng. Bạn có thể sử dụng Reports API để lấy danh sách tất cả quyền truy cập của bên thứ ba vào dữ liệu của người dùng trên Google Workspace.
- Báo cáo về mức sử dụng
Báo cáo sử dụng cung cấp thông tin về các sự kiện trên Google Workspace trong miền của bạn.
Bạn có thể sử dụng API này để yêu cầu thông tin cụ thể về người dùng.
- Báo cáo về mức sử dụng của khách hàng liệt kê thông tin chi tiết về hoạt động của ứng dụng và dịch vụ trong tài khoản của bạn. Thông tin sử dụng này được sắp xếp theo loại ứng dụng và chứa thông tin dành riêng cho ứng dụng đó.
- Báo cáo về mức sử dụng của người dùng cho biết hoạt động của người dùng trong tài khoản của bạn. Bạn có thể tuỳ chỉnh và lọc các báo cáo này để xem thông tin sử dụng cụ thể. Thông tin sử dụng này được sắp xếp theo loại ứng dụng và chứa thông tin cụ thể cho ứng dụng đó.
- Báo cáo về việc sử dụng thực thể liệt kê các hoạt động liên quan đến thực thể mà người dùng tài khoản của bạn sử dụng trong ứng dụng Currents.
- Thông báo
- Reports API cung cấp các thông báo cho phép bạn theo dõi các sự kiện, chẳng hạn như thay đổi đối với tài nguyên. Khi bạn đang theo dõi một tài nguyên và tài nguyên đó thay đổi, Reports API sẽ gửi cho bạn một thông báo. Để biết thêm thông tin về cách thiết lập và nhận thông báo từ Reports API, hãy xem hướng dẫn về Cách nhận thông báo đẩy.
Các bước tiếp theo
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-29 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-29 UTC."],[],[],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)."]]