Public APIs are pretty new to us at the Swedish National Archives but we have published "curated" open datasets for some time now. Descriptions of the datasets are in Swedish only though, https://riksarkivet.se/psidata
These sets are suitable eg. for quantitative analyses and visualisations and cover very diverse topics, from reading habits to energy consumptions to name registers of Jaeger troops!