Информация о последних загрузках

Информация о последних загрузках.

Request

GET

https://api-metrika.yandex.net/cdp/api/v1/counter/{counterId}/last_uploadings

Path parameters

Name

Description

counterId

Type: integer

Идентификатор счетчика.

Query parameters

Name

Description

datetime_offset

Type: string<date-time>

Сдвиг по времени. Все возвращаемые загрузки будут строго раньше указанного времени.

Example: 2020-02-10 10:00:00

limit

Type: integer

Количество возвращаемых загрузок. Допускаются значения от 1 до 1000 включительно.

Default: 10

source

Type: string

Источник загрузки. Все возвращаемые загрузки будут из указанного источника. Источник загрузки. Возможные значения: API.

Example: API

Responses

200 OK

OK

Body

application/json
{
  "uploadings": [
    {
      "uploading_id": "example",
      "datetime": "2025-01-01T00:00:00Z",
      "api_validation_status": "example",
      "elements_count": 0,
      "entity_type": "example",
      "entity_subtype": "example",
      "uploading_format": "example",
      "uploading_source": "example",
      "api_validation_errors": [
        "example"
      ],
      "uploading_title": "example"
    }
  ]
}

Name

Description

uploadings

Type: UploadingMetaExternal[]

Информация о загрузках.

Example
[
  {
    "uploading_id": "example",
    "datetime": "2025-01-01T00:00:00Z",
    "api_validation_status": "example",
    "elements_count": 0,
    "entity_type": "example",
    "entity_subtype": "example",
    "uploading_format": "example",
    "uploading_source": "example",
    "api_validation_errors": [
      "example"
    ],
    "uploading_title": "example"
  }
]

UploadingMetaExternal

Информация о загрузке

Name

Description

api_validation_status

Type: string

Статус валидации загрузки:

  • PASSED — валидация прошла успешно.
  • FAILED — валидация прошла не успешно.

Example: example

datetime

Type: string<date-time>

Время загрузки.

Example: 2025-01-01T00:00:00Z

elements_count

Type: integer

Количество элементов в загрузке.

entity_type

Type: string

Тип сущности:

  • SYSTEM — системная сущность, например, контакты или заказы.
  • CUSTOM_LIST — пользовательский список.
  • SYSTEM_LIST — системный список, например товары.

Example: example

uploading_format

Type: string

Формат загрузки. Возможные значения:

  • JSON.
  • CSV.

Example: example

uploading_id

Type: string

Идентификатор загрузки.

Example: example

uploading_source

Type: string

Источник загрузки. Возможные значения: API.

Example: example

Example
{
  "uploading_id": "example",
  "datetime": "2025-01-01T00:00:00Z",
  "api_validation_status": "example",
  "elements_count": 0,
  "entity_type": "example",
  "uploading_format": "example",
  "uploading_source": "example"
}

No longer supported, please use an alternative and newer version.