---
title: "Record count statistics per archive"
method: GET
path: "/stats/records.json"
tags: ["Stats"]
---

# Record count statistics per archive

`GET /stats/records.json`

## Request

- Base URL: `https://api.openarchieven.nl/1.1`
- URL: `https://api.openarchieven.nl/1.1/stats/records.json`
- Auth: none declared

Returns record count statistics. When no archive is specified, all archives are listed with their total number of records. When an archive code is specified, the source types available for that archive are returned with their individual record counts. Note: version 1.1 uses `archive_code` instead of `archive`.

## Query parameters

- `archive_code` string
- `callback` string

## Response `200`

Array of archive record counts. When archive_code is provided, includes a breakdown by source type.

- RecordStat[]
  - `archive_code` string
  - `archive` string
  - `count` integer
  - `sourcetypes` object[]: Only present when results are scoped to a specific archive.
    - `sourcetype` string
    - `count` integer

## Other responses

- `400`: Invalid archive code
- `429`: Too Many Requests — rate limit of 4 requests per second per IP exceeded.

---

[API](https://skmtc.dev/openarchieven/apis/open-archives-api.md) · [All operations](https://skmtc.dev/openarchieven/apis/open-archives-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openarchieven/apis/open-archives-api/revisions/4ff4685dd9e9?raw)
