Learn R Programming

finna

The finna package provides tools to access and analyze metadata from the Finna API, which aggregates content from Finnish archives, libraries, and museums.

Installation instructions

Install the released version from CRAN:

install.packages("finna")

The devel version of finna can be installed from GitHub as follows:

# Install finna if not already installed
if (!requireNamespace("finna", quietly = TRUE)) {
  remotes::install_github("rOpenGov/finna")
}
remotes::install_github("rOpenGov/finna")

Example

The basic functionality of finna can be explored as follows:

N.B In the search_finna() default limit of 100 records is being used. Specify 'limit' argument for more records.

# Load the package
library(finna)
# Perform a simple search and print a table

record <- search_finna("sibelius")
head(record)
TitleAuthorYearLanguageFormatsSubjectsLibrarySeries
Sibelius favourites: Sibelius collectionSibelius2001N/AÄänite (audio)OrkesterimusiikkiLapinN/A
SIBELIUSTAWASTSTJERNA1997FinnishKirja (book)SIBELIUSAnders ChydeniusN/A
SibeliusTAWASTSTJERNA1997FinnishKirja (book)SibeliusAnders ChydeniusN/A
SibeliusLampila1984FinnishKirja (book)SibeliusHelka-arkistoN/A
SibeliusTAWASTSTJERNA2003FinnishKirja (book)SibeliusKansalliskirjastoN/A
SibeliusRingbom1948FinnishKirja (book)SibeliusKirkesN/A

To search all related in descending order

record <- search_finna("sibelius", sort = "main_date_str des")
head(record)
TitleAuthorYearLanguageFormatsSubjectsLibrarySeries
He selvisivät sodastaKirves, Jenni, Werner Söderström2024FinnishKirja (book)SotilaatAnders ChydeniusN/A
Yli-ihmisiä ja traagisia kuolevaisia: esseitä ja kirjoituksia 1901-1945Frosterus, Sigurd, Sarje Maaria2024FinnishKirja (book)Wagner, etc.Helka-arkistoN/A
Eero JärnefeltJärnefelt, Eero, Selkokari2024FinnishKirja (book)JärnefeltAnders ChydeniusAteneum
Eero JärnefeltJärnefelt, Eero, Selkokari2024SwedishKirja (book)JärnefeltHelle-kirjastotAteneum
Eero JärnefeltJärnefelt, Eero, Selkokari2024EnglishKirja (book)JärnefeltHelmet-kirjastoAteneum
SolaceN/A2024No language (zxx)Äänite (audio)N/AAnders ChydeniusN/A

Contribute

Contributions are very welcome:

Acknowledgements

This work has been supported by the Research Council of Finland (decisions 358720, 348946). The work is part of FIN-CLARIAH research infrastucture for digital humanities. This functionality related to music data has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 101095295 (OpenMUSE).

Disclaimer

This package is in no way officially related to or endorsed by Finna.

When using metadata retrieved from Finna database in your work, please indicate that the metadata source is Finna. If your re-use involves some kind of modification to data or text, please state this clearly to the end user. See Finna policy on copyright and free re-use of metadata for more detailed information and certain exceptions.

Copy Link

Version

Install

install.packages('finna')

Monthly Downloads

145

Version

0.1.1

License

BSD_2_clause + file LICENSE

Maintainer

Akewak Jeba

Last Published

January 22nd, 2025

Functions in finna (0.1.1)

top_plot

Plot Top Entries
load_offline_data

Load 'Finna' Search Results from Offline File
refine_metadata

Refine Finna Metadata
get_finna_records

Get Finna Records by IDs with Extended Options
harvest_oai_pmh

Harvest Metadata from an OAI-PMH Server
fetch_viola_records

Fetch Records by Year Ranges from Finna API (Including NA Dates)
fetch_all_records

Fetch All Records from Finna API
fetch_finna

Fetch Finna Collection Data with Flexible Query
analyze_metadata

Analyze Refined Finna Metadata
finna_as_json

Convert Finna query object to JSON
finna_interactive

Interactive Finna Search and Data Download
finna_cite

Cite a Finna collection
check_api_access

Check Access to the Finna API
enrich_author_name

Enrich Author Name from 'Finna' API and Save Results
search_publisher

Finna Publisher Search
search_finna

Finna Index Search with Total Limit Option
save_for_offline

Save 'Finna' Search Results for Offline Access
analyze_trends_over_time

Analyze Trends Over Time with Binned Years (Decades)