Information about the latest uploads

Information about the latest uploads.

Request

GET

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

Path parameters

Name

Description

counterId

Type: integer

Counter ID.

Query parameters

Name

Description

datetime_offset

Type: string<date-time>

Time offset. Any returned upload will be strictly before the specified time.

Example: 2020-02-10T10:00:00.000Z

limit

Type: integer

Number of returned uploads. Allowed values: 1–1000 (inclusive).

Default: 10

source

Type: string

Upload source. Any returned upload will have the specified source. Upload source. Possible values: 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[]

Information about uploads.

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

Upload information

Name

Description

api_validation_status

Type: string

Upload validation status:

  • PASSED: Validation passed.
  • FAILED: Validation failed.

Example: example

datetime

Type: string<date-time>

Upload time.

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

elements_count

Type: integer

Number of elements within the upload.

entity_type

Type: string

Entity type:

  • SYSTEM: System entity, such as contacts or orders.
  • CUSTOM_LIST: Custom list.
  • SYSTEM_LIST: System list, such as products.

Example: example

uploading_format

Type: string

Upload format. Possible values:

  • JSON
  • CSV

Example: example

uploading_id

Type: string

Upload ID.

Example: example

uploading_source

Type: string

Upload source. Possible values: 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.