---
metadata:
  - name: generator
    content: Diplodoc Platform v5.48.2
alternate:
  - https://www.yandex.com/dev/metrika/en/logs/openapi/evaluate.md
  - https://www.yandex.com/dev/metrika/ru/logs/openapi/evaluate.md
---
> **Documentation Index:** Fetch the complete configuration index at https://www.yandex.com/dev/metrika/en/llms.txt

<div class="openapi">

# Checking whether a request can be created

<!-- markdownlint-disable-file -->

Checks whether a log request can be created based on the size.

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">

<div class="openapi__request">

GET {.openapi__method}
```text translate=no
https://api-metrika.yandex.net/management/v1/counter/{counterId}/logrequests/evaluate
```

</div>

</div>

</div>

### Path parameters

#|
|| **Name** | **Description** ||
||

_counterId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Tag ID.
{.table-cell}
||
|#{.json-schema-properties}

### Query parameters

#|
|| **Name** | **Description** ||
||

_date1_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

First day.

_Example:_{.json-schema-reset .json-schema-example} `2016-01-01T00:00:00.000Z`
{.table-cell}
||
||

_date2_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Last day (can't be the current day).

_Example:_{.json-schema-reset .json-schema-example} `2016-01-31T00:00:00.000Z`
{.table-cell}
||
||

_fields_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

List of fields separated by commas.

_Example:_{.json-schema-reset .json-schema-example} `ym:pv:dateTime,ym:pv:referer`
{.table-cell}
||
||

_source_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Log source.
Log source. Possible values:
- `hits` — Events.
- `visits` — Sessions.


_Example:_{.json-schema-reset .json-schema-example} `hits`
{.table-cell}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "log_request_evaluation": {
    "possible": true,
    "max_possible_day_quantity": 0
  }
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_log_request_evaluation_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [LogRequestEvaluation](#entity-LogRequestEvaluation)

Checking whether a log request can be created.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "possible": true,
  "max_possible_day_quantity": 0
}
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### LogRequestEvaluation {#entity-LogRequestEvaluation}

Checking whether a log request can be created.

#|
|| **Name** | **Description** ||
||

_max_possible_day_quantity_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

The maximum number of days in the time period that can be specified in log requests accounting for to the current quota.
{.table-cell}
||
||

_possible_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: boolean

Whether logs can be requested for the specified period.
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "possible": true,
  "max_possible_day_quantity": 0
}
```

{% endcut %}

</div>

</div>

</div>

[*Deprecated]: No longer supported, please use an alternative and newer version.