Google Admin SDK Admin Sdk Admin Reports Entity Usage Reports API
The Admin Sdk Admin Reports Entity Usage Reports API from Google Admin SDK — 1 operation(s) for admin sdk admin reports entity usage reports.
The Admin Sdk Admin Reports Entity Usage Reports API from Google Admin SDK — 1 operation(s) for admin sdk admin reports entity usage reports.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/google-admin-sdk:google-admin-sdk-admin-reports-entity-usage-reports-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.1.0
info:
title: Admin SDK API EntityUsageReports API
version: reports_v1
description: Generated from Google's published Discovery document for Admin SDK API (admin reports_v1, revision 20261109).
1 operation(s).
contact:
name: Google
url: https://developers.google.com/
termsOfService: https://developers.google.com/terms
externalDocs:
url: https://developers.google.com/workspace/admin/
servers:
- url: https://admin.googleapis.com
paths:
/admin/reports/v1/usage/{entityType}/{entityKey}/dates/{date}:
get:
operationId: reports.entityUsageReports.get
summary: Get entityUsageReports
description: Retrieves a report which is a collection of properties and statistics for entities used by users within
the account. For more information, see the Entities Usage Report guide. For more information about the entities report's
parameters, see the Entities Usage parameters reference guides.
parameters:
- name: entityType
in: path
required: true
description: Represents the type of entity for the report.
schema:
enum:
- gplus_communities
type: string
pattern: (gplus_communities)
- name: entityKey
in: path
required: true
description: Represents the key of the object to filter the data with. It is a string which can take the value `all`
to get activity events for all users, or any other value for an app-specific entity. For details on how to obtain
the `entityKey` for a particular `entityType`, see the Entities Usage parameters reference guides.
schema:
type: string
- name: date
in: path
required: true
description: Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in
the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`.
schema:
type: string
pattern: (\d){4}-(\d){2}-(\d){2}
- name: customerId
in: query
required: false
description: The unique ID of the customer to retrieve data for.
schema:
pattern: C.+|my_customer
type: string
- name: filters
in: query
required: false
description: 'The `filters` query string is a comma-separated list of an application''s event parameters where the
parameter''s value is manipulated by a relational operator. The `filters` query string includes the name of the
application whose usage is returned in the report. The application values for the Entities usage report include
`accounts`, `docs`, and `gmail`. Filters are in the form `[application name]:parameter name[parameter value],...`.
In this example, the `<>` ''not equal to'' operator is URL-encoded in the request''s query string (%3C%3E): GET
https://www.googleapis.com/admin/reports/v1/usage/gplus_communities/all/dates/2017-12-01 ?parameters=gplus:community_name,gplus:num_total_members
&filters=gplus:num_total_members%3C%3E0 The relational operators include: - `==` - ''equal to''. - `<>` - ''not
equal to''. It is URL-encoded (%3C%3E). - `<` - ''less than''. It is URL-encoded (%3C). - `<=` - ''less than or
equal to''. It is URL-encoded (%3C=). - `>` - ''greater than''. It is URL-encoded (%3E). - `>=` - ''greater than
or equal to''. It is URL-encoded (%3E=). Filters can only be applied to numeric parameters.'
schema:
pattern: (((gplus)):[a-z0-9_]+[<,<=,==,>=,>,!=][^,]+,)*(((gplus)):[a-z0-9_]+[<,<=,==,>=,>,!=][^,]+)
type: string
- name: maxResults
in: query
required: false
description: Determines how many activity records are shown on each response page. For example, if the request sets
`maxResults=1` and the report has two activities, the report has two pages. The response's `nextPageToken` property
has the token to the second page.
schema:
type: integer
maximum: 1000
minimum: 1
format: uint32
default: '1000'
- name: pageToken
in: query
required: false
description: Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response.
In your follow-on request getting the next page of the report, enter the `nextPageToken` value in the `pageToken`
query string.
schema:
type: string
- name: parameters
in: query
required: false
description: 'The `parameters` query string is a comma-separated list of event parameters that refine a report''s
results. The parameter is associated with a specific application. The application values for the Entities usage
report are only `gplus`. A `parameter` query string is in the CSV form of `[app_name1:param_name1], [app_name2:param_name2]...`.
*Note:* The API doesn''t accept multiple values of a parameter. If a particular parameter is supplied more than
once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid
request parameter is supplied in the API request, the API ignores that request parameter and returns the response
corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that
does not belong to the application. If no parameters are requested, all parameters are returned. '
schema:
type: string
pattern: (((gplus)):[^,]+,)*(((gplus)):[^,]+)
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/UsageReports'
4XX:
content: &id001
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id001
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/admin.reports.usage.readonly
- apiKey: []
tags:
- EntityUsageReports
components:
securitySchemes:
apiKey:
type: apiKey
in: query
name: key
description: API key; accepted by methods that do not need user data.
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.google.com/o/oauth2/auth
tokenUrl: https://oauth2.googleapis.com/token
scopes:
https://www.googleapis.com/auth/admin.reports.usage.readonly: View usage reports for your Google Workspace domain
https://www.googleapis.com/auth/admin.reports.audit.readonly: View audit reports for your Google Workspace domain
schemas:
GoogleRpcError:
type: object
description: The error envelope every Google API returns.
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
details:
type: array
items:
type: object
UsageReport:
properties:
kind:
default: admin#reports#usageReport
description: The type of API resource. For a usage report, the value is `admin#reports#usageReport`.
type: string
parameters:
readOnly: true
type: array
items:
properties:
msgValue:
readOnly: true
description: Output only. Nested message value of the parameter.
items:
additionalProperties:
description: Properties of the object.
type: object
type: array
boolValue:
type: boolean
readOnly: true
description: Output only. Boolean value of the parameter.
stringValue:
description: Output only. String value of the parameter.
type: string
readOnly: true
name:
type: string
description: The name of the parameter. For the User Usage Report parameter names, see the User Usage parameters
reference.
intValue:
description: Output only. Integer value of the parameter.
type: string
readOnly: true
format: int64
datetimeValue:
type: string
description: The RFC 3339 formatted value of the parameter, for example 2010-10-28T10:26:35.000Z.
readOnly: true
format: date-time
type: object
description: Output only. Parameter value pairs for various applications. For the Entity Usage Report parameters
and values, see [the Entity Usage parameters reference](https://developers.google.com/workspace/admin/reports/v1/reference/usage-ref-appendix-a/entities).
etag:
description: ETag of the resource.
type: string
entity:
type: object
readOnly: true
description: Output only. Information about the type of the item.
properties:
entityId:
type: string
description: 'Output only. Object key. Only relevant if entity.type = "OBJECT" Note: external-facing name of
report is "Entities" rather than "Objects".'
readOnly: true
customerId:
readOnly: true
description: Output only. The unique identifier of the customer's account.
type: string
type:
readOnly: true
description: Output only. The type of item. The value is `user`.
type: string
profileId:
description: Output only. The user's immutable Google Workspace profile identifier.
readOnly: true
type: string
userEmail:
description: Output only. The user's email address. Only relevant if entity.type = "USER"
type: string
readOnly: true
date:
description: Output only. The date of the report request.
type: string
readOnly: true
description: JSON template for a usage report.
type: object
UsageReports:
properties:
etag:
description: ETag of the resource.
type: string
warnings:
type: array
description: Warnings, if any.
items:
type: object
properties:
message:
type: string
description: 'The human readable messages for a warning are: - Data is not available warning - Sorry, data
for date yyyy-mm-dd for application "`application name`" is not available. - Partial data is available warning
- Data for date yyyy-mm-dd for application "`application name`" is not available right now, please try again
after a few hours. '
data:
description: Key-value pairs to give detailed information on the warning.
items:
type: object
properties:
key:
description: Key associated with a key-value pair to give detailed information on the warning.
type: string
value:
description: Value associated with a key-value pair to give detailed information on the warning.
type: string
type: array
code:
description: Machine readable code or warning type. The warning code value is `200`.
type: string
usageReports:
description: Various application parameter records.
items:
$ref: '#/components/schemas/UsageReport'
type: array
kind:
description: The type of API resource. For a usage report, the value is `admin#reports#usageReports`.
type: string
default: admin#reports#usageReports
nextPageToken:
description: Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response.
For your follow-on requests getting all of the report's pages, enter the `nextPageToken` value in the `pageToken`
query string.
type: string
type: object
x-provenance:
method: harvested
publisher: Google
source: https://admin.googleapis.com/$discovery/rest?version=reports_v1
note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261109)