Access the item metadata from an Internet Archive item

ia_metadata(items)

Arguments

items

A list object describing an Internet Archive items returned from the API.

Value

A data frame containing the metadata, with columns id for the item identifier, field for the name of the metadata field, and value for the metadata values.

Examples

ats_query <- c("publisher" = "american tract society") ids <- ia_search(ats_query, num_results = 3)
#> 1270 total items found. This query requested 3 results.
items <- ia_get_items(ids)
#> Getting MN40284ucmf_3
#> Getting historyofamerica0000bear
#> Getting gloryofmangerstu0000zwem
metadata <- ia_metadata(items)
#> Warning: `data_frame()` was deprecated in tibble 1.1.0. #> Please use `tibble()` instead.
metadata
#> # A tibble: 136 x 3 #> id field value #> <chr> <chr> <chr> #> 1 MN40284ucmf_3 identifier MN40284ucmf_3 #> 2 MN40284ucmf_3 mediatype texts #> 3 MN40284ucmf_3 collection1 microfilm #> 4 MN40284ucmf_3 collection2 additional_collections #> 5 MN40284ucmf_3 identifier-access http://www.archive.org/details/MN40284ucmf_3 #> 6 MN40284ucmf_3 identifier-ark ark:/13960/t0ks6kg50 #> 7 MN40284ucmf_3 publicdate 2007-03-09 18:55:54 #> 8 MN40284ucmf_3 title Letters to a young Christian [microform] #> 9 MN40284ucmf_3 creator S. J. (Sarah Jackson) #> 10 MN40284ucmf_3 publisher Boston : American Tract Society #> # … with 126 more rows