fetch_finna: Fetch Finna Collection Data with Flexible Query

View source: R/fetch_finna_collection.R

fetch_finnaR Documentation

Fetch Finna Collection Data with Flexible Query

Description

This function retrieves data from the Finna API and formats it as a tidy tibble.

Usage

fetch_finna(
  query = NULL,
  limit = 0,
  facets = "building",
  lng = "fi",
  prettyPrint = TRUE
)

Arguments

query

The query string for filtering results. Defaults to NULL, which fetches data without a specific search term.

limit

Maximum number of results to fetch. Defaults to 0.

facets

Facet to retrieve, defaults to "building".

lng

Language for results, defaults to "fi".

prettyPrint

Logical, whether to pretty-print JSON responses.

Value

A tibble containing the fetched data with relevant fields.

Examples

## Not run: 
  fetch_finna(query = "record_format:ead", limit = 0)
  fetch_finna() # Fetches data with no specific query

## End(Not run)

finna documentation built on April 4, 2025, 2:33 a.m.