---
schema: MinutesQuota
title: MinutesQuota
description: "The video you analysed in the current period. Each finished analysis counts its video's length, rounded up to a whole second, on the day (UTC) it finished. A failed or cancelled analysis counts nothing, and deleting an analysis does not give its seconds back."
url: "https://mediaseer.ai/docs/api/schemas/minutesquota/"
---

# MinutesQuota

The video you analysed in the current period. Each finished analysis counts its video's length, rounded up to a whole second, on the day (UTC) it finished. A failed or cancelled analysis counts nothing, and deleting an analysis does not give its seconds back.

| Field | Description |
| - | - |
| `usedSeconds` integer (int64), required | The seconds of video analysed in this period. |
| `limitSeconds` integer (int64), optional | The seconds of video your plan includes per period. Absent when there is no limit. Starting an analysis is refused (`QUOTA_EXCEEDED`, field `minutes`) when none are left. An analysis whose video is longer than what is left ends `FAILED` with the message "The video is longer than the minutes left in this period." as soon as its length is known, and counts nothing, so finished analyses never take `usedSeconds` above the limit; it is above it only when your limit was lowered or newly set during the period. Analyses still `QUEUED` or `PROCESSING` already hold their videos' lengths of what is left, rounded up to whole seconds, though `usedSeconds` counts them only once they finish. |
