Skip to main content
GET
/
api
/
zostavajuce-id
/
vyrocne-spravy
Count annual reports
curl --request GET \
  --url https://www.registeruz.sk/cruz-public/api/zostavajuce-id/vyrocne-spravy
{
  "pocetZostavajucichId": 123
}
Use this endpoint to estimate how many records a sync will process before starting. For example, you can use it to show a progress bar, build structured logs, or decide whether to run a full sync or a targeted one. It accepts the same filters as List annual reports and returns a single count. It is not required for pagination.

Common patterns

Fetch the count before starting a sync to know how many records you’ll process.
Counting annual reports
// 1. Fetch the count of remaining annual reports
const { pocetZostavajucichId } = await fetch(
  `/api/zostavajuce-id/vyrocne-spravy?zmenene-od=2025-01-01`
).then(r => r.json());

// 2. Log the number of remaining records
console.log(`${pocetZostavajucichId} records to process`);

Query Parameters

zmenene-od
string
required

Return IDs changed on or after this date. Accepts YYYY-MM-DD or YYYY-MM-DDThh:mm:ssZ.

Example:

"2000-01-01"

pokracovat-za-id
integer

Pagination cursor. Pass the last id from the previous response.

Response

200 - application/json

Remaining count returned successfully.

Count of remaining IDs matching the given filters.

pocetZostavajucichId
integer

Number of remaining IDs.