- [HTTP request](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchDomainsTimingStats#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchDomainsTimingStats#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchDomainsTimingStats#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchDomainsTimingStats#body.request_body)
- [Response body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchDomainsTimingStats#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchDomainsTimingStats#body.LegacySearchDomainsTimingStatsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchDomainsTimingStats#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchDomainsTimingStats#body.aspect_1)

**Full name**: projects.locations.instances.legacy.legacySearchDomainsTimingStats

Given a list of domain names, returns time-related statistics for those domains (ex: the first seen in the enterprise time).

### HTTP request

`GET https://{endpoint}/v1alpha/{instance}/legacy:legacySearchDomainsTimingStats`

Where `{endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/chronicle/docs/reference/rest#rest_endpoints).

### Path parameters

| Parameters ||
|---|---|
| `instance` | `string` Required. Chronicle instance this request is sent to. Format: projects/{project}/locations/{location}/instances/{instance} |

### Query parameters

| Parameters ||
|---|---|
| `domains[]` | `string` Required. The list of domains we want to get statistics for. At least one domain is required. |
| `endTimestamp` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Optional. Cut off timestamp for filtering the response. Only return domains that have first-seen time after this timestamp. If unset or 0, all domains and their first-seen times will be returned. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

### Request body

The request body must be empty.

### Response body

The response to a request for time-related statistics for a given list of domains.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "domainTimingStats": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/DomainAndTime`) } ] } ``` |

| Fields ||
|---|---|
| `domainTimingStats[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/DomainAndTime`)`` A list of domains along with their first-seen-in-the-enterprise time. We may later add more statistics to this API, in which case we would use a new message in the response. No guaranteed order |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `
  https://www.googleapis.com/auth/chronicle`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `instance` resource:

- `chronicle.legacies.legacySearchDomainsTimingStats`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).