stats

GET /v1/stats/index

Changed on

Gets indexed item statistics aggreggated across all data sources. This API only returns statistics for previous dates; it doesn't return statistics for the current day. Note: This API requires a standard end user account to execute.

Request

  • Base URL
    https://cloudsearch.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud_search
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud_search
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud_search.stats
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud_search.stats
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud_search.stats.indexing
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud_search.stats.indexing

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

fromDate.day, integer

Day of month. Must be from 1 to 31 and valid for the year and month.

fromDate.month, integer

Month of date. Must be from 1 to 12.

fromDate.year, integer

Year of date. Must be from 1 to 9999.

toDate.day, integer

Day of month. Must be from 1 to 31 and valid for the year and month.

toDate.month, integer

Month of date. Must be from 1 to 12.

toDate.year, integer

Year of date. Must be from 1 to 9999.

Response

Successful response

GetCustomerIndexStatsResponse required
averageIndexedItemCount, string int64

Average item count for the given date range for which billing is done.

stats, CustomerIndexStats[]

Summary of indexed item counts, one for each day in the requested range.

Changes

    • info

      the security scope https://www.googleapis.com/auth/cloud_search was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud_search was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/cloud_search.stats.indexing was removed from the endpoint's security scheme Oauth2

    1 more change in this revision