---
title: "Record count statistics per source type"
method: GET
path: "/stats/sources.json"
tags: ["Stats"]
---

# Record count statistics per source type

`GET /stats/sources.json`

## Request

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

Returns statistics about source types. Without an archive_code all source types across the entire dataset are returned with total record counts. With an archive_code, only source types for that archive are returned. Note: version 1.1 uses `archive_code` instead of `archive`.

## Query parameters

- `archive_code` string
- `callback` string

## Response `200`

Array of source type statistics

- SourceTypeStat[]
  - `sourcetype` string: Source type code.
  - `sourcetypelocal` string: Localised source type label.
  - `sourcetypeenglish` string: English source type label.
  - `count` integer: Total number of records for this source type.

## 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)
