Breakdown Stats
get_breakdownCross-tabulation aggregation grouped by one dimension
Returns record counts filtered by any combination of archive, source type, event type, event place and year range, grouped by ONE chosen dimension (archive, sourcetype, eventtype, place or year). Use this endpoint to answer questions such as "how many Bidprentjes per archive?" or "how many marriages per year in Amsterdam?". The response includes the total filtered record count, the total number of distinct groups (capped at 750) and the top-N groups according to the chosen sort.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"group_by": "<group_by>"
},
"name": "get_breakdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| sort | No | ||
| group_by | Yes | ||
| year_end | No | ||
| eventtype | No | ||
| min_count | No | ||
| eventplace | No | ||
| sourcetype | No | ||
| year_start | No | ||
| number_show | No | ||
| archive_code | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No | Echoes the filter parameters supplied by the caller. Only filters actually present in the request are echoed; defaults are not. | |
| results | No | Top-N groups according to the chosen sort, truncated to `number_show`. | |
| group_by | No | Dimension on which the results are grouped. | |
| total_groups | No | Total distinct groups matching `min_count`. Capped at 750 (the SOLR_FACET_MAX limit). When this equals 750 the true number of groups may be higher. | |
| total_records | No | Total number of records matching the supplied filters. |